Accepting request 122751 from home:tiwai:branches:multimedia:libs

- Add the setup for SoX to setup-pulseaudio script

OBS-URL: https://build.opensuse.org/request/show/122751
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pulseaudio?expand=0&rev=89
This commit is contained in:
Ismail Dönmez 2012-05-29 16:32:30 +00:00 committed by Git OBS Bridge
parent 7da932cfed
commit 254b096f1e
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 29 13:01:46 CEST 2012 - tiwai@suse.de
- Add the setup for SoX to setup-pulseaudio script
------------------------------------------------------------------- -------------------------------------------------------------------
Sat May 19 20:45:28 UTC 2012 - pascal.bleser@opensuse.org Sat May 19 20:45:28 UTC 2012 - pascal.bleser@opensuse.org

View File

@ -156,6 +156,11 @@ enable_festival() {
EOF EOF
} }
enable_sox() {
echo "Enabling PulseAudio for SoX..."
set_variable AUDIODRIVER pulseaudio
}
enable_autospawn() { enable_autospawn() {
echo "Enabling PulseAudio autospawn..." echo "Enabling PulseAudio autospawn..."
if grep -q ^autospawn /etc/pulse/client.conf; then if grep -q ^autospawn /etc/pulse/client.conf; then
@ -236,6 +241,11 @@ disable_festival() {
/usr/bin/sed --in-place /"(Parameter.set 'Audio_Required_Format 'snd)"/d /etc/festival.scm /usr/bin/sed --in-place /"(Parameter.set 'Audio_Required_Format 'snd)"/d /etc/festival.scm
} }
disable_sox() {
echo "Disabling PulseAudio for SoX..."
set_variable AUDIODRIVER alsa
}
disable_autospawn() { disable_autospawn() {
echo "Disabling PulseAudio autospawn..." echo "Disabling PulseAudio autospawn..."
if grep -q ^autospawn /etc/pulse/client.conf; then if grep -q ^autospawn /etc/pulse/client.conf; then
@ -258,6 +268,7 @@ enable_all() {
enable_autospawn enable_autospawn
enable_phonon enable_phonon
enable_speechd enable_speechd
enable_sox
} }
disable_all() { disable_all() {
@ -273,6 +284,7 @@ disable_all() {
disable_autospawn disable_autospawn
disable_phonon disable_phonon
disable_speechd disable_speechd
disable_sox
} }
case $1 in case $1 in