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:
parent
06cbe215a3
commit
043f0c29a1
10 changed files with 62 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
# Output settings #
|
||||
###########################################
|
||||
output_sound_device = false
|
||||
output_sound_device_type = "ALSA"
|
||||
s1_output = "icecast"
|
||||
s2_output = "icecast"
|
||||
s3_output = "icecast"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue