mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
Fixed order and constness of parameters to SDL_ConvertAudioSamples()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user