All the engine to be used with MA_NO_DEVICE_IO.

This allows the engine to be used independent of a device which might
be useful for tools.
This commit is contained in:
David Reid
2021-08-14 17:23:13 +10:00
parent 0b880d6a2c
commit eac61ddc52
2 changed files with 167 additions and 102 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ ma_result do_conversion(ma_decoder* pDecoder, ma_encoder* pEncoder)
}
/* At this point we have the raw data from the decoder. We now just need to write it to the encoder. */
ma_encoder_write_pcm_frames(pEncoder, pRawData, framesReadThisIteration);
ma_encoder_write_pcm_frames(pEncoder, pRawData, framesReadThisIteration, NULL);
/* Get out of the loop if we've reached the end. */
if (framesReadThisIteration < framesToReadThisIteration) {