Commit 6c2f2991 authored by Felix Paul Kühne's avatar Felix Paul Kühne

auhal: implement audio device selection using the new aout API (close #8037)

parent 2f3a4815
......@@ -1041,9 +1041,13 @@ static void RebuildDeviceList(audio_output_t * p_aout)
static int SwitchAudioDevice(audio_output_t *p_aout, const char *name)
{
msg_Warn(p_aout, "we should switch to device '%s'", name);
if (name)
p_aout->sys->i_selected_dev = atoi(name);
else
p_aout->sys->i_selected_dev = 0;
aout_DeviceReport(p_aout, name);
aout_RestartRequest(p_aout, AOUT_RESTART_OUTPUT);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment