CC-3074: Give users the choice of which hardware sound API they wish to

use (instead of hardcoded to ALSA)

- finished everything except LS part(including upgrade and UI)
This commit is contained in:
James 2011-11-30 19:01:40 -05:00 committed by Martin Konecny
parent 06cbe215a3
commit 043f0c29a1
10 changed files with 62 additions and 2 deletions

View file

@ -53,6 +53,34 @@ add_skip_command(s)
s = map_metadata(append_title, s)
if output_sound_device then
output.prefered=output.dummy
%ifdef output.alsa
if output_sound_device_type == "ALSA" then
output.prefered=output.alsa
end
%endif
%ifdef output.ao
if output_sound_device_type == "AO" then
output.prefered=output.ao
output.prefered(mksafe(s))
end
%endif
%ifdef output.oss
if output_sound_device_type == "OSS" then
output.prefered=output.oss
end
%endif
%ifdef output.portaudio
if output_sound_device_type == "Portaudio" then
output.prefered=output.portaudio
end
%endif
%ifdef output.pulseaudio
if output_sound_device_type == "Pulseaudio" then
output.prefered=output.pulseaudio
end
%endif
ignore(out(s))
end