Maxmod streaming: format discrepancies between init and callback
bugmaxmod
https://github.com/blocksds/sdk/blob/master/examples/maxmod/streaming/source/main.c#L302
https://github.com/blocksds/sdk/blob/master/examples/maxmod/streaming/source/main.c#L69
The format passed to the callback is not immediately the format assigned to the mm_stream do not coincide when the format is not MM_STREAM_8BIT_MONO. For a few first runs at least.
Using a config define directly in place of interpreting the callback format has resulted in half a week of broken audio and broken heart(debug pain).
I request that the API always pass to the callback the format used for the init.
And if this is intended design(albeit bad), then how should chunk of foreign format be treated?
Rendered as usual? Filled with silence?
关闭于 2025-12-14 7 条评论