videoSpectrumEventsFor method
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"],
);
});
}