mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
API CHANGE: Reorder parameters for some APIs.
The APIs that have changed are those that take an output pointer and an input count in the format of "some_read_function(handle, pBuf, count)". The updated APIs include: * mal_decoder_read_pcm_frames() * mal_pcm_converter_read() Some APIs are scheduled to be replaced in a future version so I have decided not to replace this at this time since it will be a waste of time to do so.
This commit is contained in:
@@ -81,7 +81,7 @@ void data_callback(mal_device* pDevice, void* pOutput, const void* pInput, mal_u
|
||||
return;
|
||||
}
|
||||
|
||||
mal_decoder_read_pcm_frames(pDecoder, frameCount, pOutput);
|
||||
mal_decoder_read_pcm_frames(pDecoder, pOutput, frameCount);
|
||||
|
||||
(void)pInput;
|
||||
}
|
||||
@@ -189,7 +189,7 @@ decoding backend.
|
||||
Data is read from the decoder as PCM frames:
|
||||
|
||||
```
|
||||
mal_uint64 framesRead = mal_decoder_read_pcm_frames(pDecoder, framesToRead, pFrames);
|
||||
mal_uint64 framesRead = mal_decoder_read_pcm_frames(pDecoder, pFrames, framesToRead);
|
||||
```
|
||||
|
||||
You can also seek to a specific frame like so:
|
||||
|
||||
Reference in New Issue
Block a user