mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Set the desired channel count when opening audio on Android
This commit is contained in:
parent
e2c9a0a427
commit
abd2ac5992
1 changed files with 1 additions and 1 deletions
|
|
@ -308,8 +308,8 @@ static bool BuildAAudioStream(SDL_AudioDevice *device)
|
|||
}
|
||||
ctx.AAudioStreamBuilder_setFormat(builder, format);
|
||||
ctx.AAudioStreamBuilder_setSampleRate(builder, device->spec.freq);
|
||||
ctx.AAudioStreamBuilder_setChannelCount(builder, device->spec.channels);
|
||||
#endif
|
||||
ctx.AAudioStreamBuilder_setChannelCount(builder, device->spec.channels);
|
||||
|
||||
const aaudio_direction_t direction = (recording ? AAUDIO_DIRECTION_INPUT : AAUDIO_DIRECTION_OUTPUT);
|
||||
ctx.AAudioStreamBuilder_setDirection(builder, direction);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue