Audio: Stop setting capture config options.
Since the device is being configured as a playback device, all capture config options are unused and therefore need to not be set.
This commit is contained in:
parent
29b9c050c7
commit
094b9db951
|
|
@ -477,9 +477,6 @@ void InitAudioDevice(void)
|
|||
config.playback.pDeviceID = NULL; // NULL for the default playback AUDIO.System.device
|
||||
config.playback.format = AUDIO_DEVICE_FORMAT;
|
||||
config.playback.channels = AUDIO_DEVICE_CHANNELS;
|
||||
config.capture.pDeviceID = NULL; // NULL for the default capture AUDIO.System.device
|
||||
config.capture.format = ma_format_s16;
|
||||
config.capture.channels = 1;
|
||||
config.sampleRate = AUDIO_DEVICE_SAMPLE_RATE;
|
||||
config.dataCallback = OnSendAudioDataToDevice;
|
||||
config.pUserData = NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user