AnalyzerQueue should only request framesToRead instead of kAnalysisFramesPerBlock frames. On the other hand SoundSourceFFmpeg should limit the requested number of frames appropriately and only return what is actually available.
A typical example of lazy implementation meets careless caller. Both could do better to prevent these kind of errors.
AnalyzerQueue should only request framesToRead instead of kAnalysisFrames PerBlock frames. On the other hand SoundSourceFFmpeg should limit the requested number of frames appropriately and only return what is actually available.
A typical example of lazy implementation meets careless caller. Both could do better to prevent these kind of errors.