videoSpectrumEventsFor method

  1. @override
Stream<VideoSpectrumEvent> videoSpectrumEventsFor(
  1. int textureId
)
override

Implementation

@override
Stream<VideoSpectrumEvent> videoSpectrumEventsFor(int textureId) {
  return _eventChannelSpectrumFor(textureId).receiveBroadcastStream().map((dynamic event) {
    final Map<dynamic, dynamic> map = event;
    return VideoSpectrumEvent(
      channelCount: map["channelCount"],
      fft: map["fft"],
      sampleRateHz: map["sampleRateHz"],
    );
  });
}