mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Fixed order and constness of parameters to SDL_ConvertAudioSamples()
This commit is contained in:
parent
fa599c7548
commit
5b77ad54c4
5 changed files with 23 additions and 23 deletions
|
|
@ -53,8 +53,8 @@ int main(int argc, char **argv)
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (SDL_ConvertAudioSamples(spec.format, spec.channels, spec.freq, len, data,
|
||||
spec.format, cvtchans, cvtfreq, &dst_len, &dst_buf) < 0) {
|
||||
if (SDL_ConvertAudioSamples(spec.format, spec.channels, spec.freq, data, len,
|
||||
spec.format, cvtchans, cvtfreq, &dst_buf, &dst_len) < 0) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "failed to convert samples: %s\n", SDL_GetError());
|
||||
ret = 4;
|
||||
goto end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue