Fixed order and constness of parameters to SDL_ConvertAudioSamples()

This commit is contained in:
Sam Lantinga committed 2023-02-09 17:49:35 -08:00
1 parent fa599c7548
commit 5b77ad54c4
5 files changed
+23 -23

No files matched your search

+2 -2
View File
@@ -70,8 +70,8 @@ should be changed to:
```c
Uint8 *dst_data = NULL;
int dst_len = 0;
if (SDL_ConvertAudioSamples(src_format, src_channels, src_rate, src_len, src_data
dst_format, dst_channels, dst_rate, &dst_len, &dst_data) < 0) {
if (SDL_ConvertAudioSamples(src_format, src_channels, src_rate, src_data, src_len
dst_format, dst_channels, dst_rate, &dst_data, &dst_len) < 0) {
/* error */
}
do_something(dst_data, dst_len);