ref: e1e99f623be2e277b55f1b5142c934558da74590
parent: 4de92cb7833368d1c460db52ba5b0c7f179f3d52
author: Chris Bagwell <chris@cnpbagwell.com>
date: Sat Sep 24 09:27:25 EDT 2011
make pusleaudio driver highest priority audio driver
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,12 @@
o Mention in man pages that WAV files support floating point encodings.
+Audio device drivers:
+
+ o Give pulseaudio driver higher priority than alsa or oss now that
+ its proven stable and gives user more features; such as per app
+ volume control. (cbagwell)
+
Effects:
o Improvements to man pages for tempo effect. Really made in 14.3.2.
--- a/src/sox.c
+++ b/src/sox.c
@@ -2402,11 +2402,11 @@
/* Default audio driver type in order of preference: */
if (!f->filetype) f->filetype = getenv("AUDIODRIVER");
if (!f->filetype && sox_find_format("coreaudio", sox_false)) f->filetype = "coreaudio";
+ if (!f->filetype && sox_find_format("pulseaudio" , sox_false)) f->filetype = "pulseaudio";
if (!f->filetype && sox_find_format("alsa", sox_false)) f->filetype = "alsa";
if (!f->filetype && sox_find_format("waveaudio" , sox_false)) f->filetype = "waveaudio";
if (!f->filetype && sox_find_format("sndio", sox_false)) f->filetype = "sndio";
if (!f->filetype && sox_find_format("oss" , sox_false)) f->filetype = "oss";
- if (!f->filetype && sox_find_format("pulseaudio" , sox_false)) f->filetype = "pulseaudio";
if (!f->filetype && sox_find_format("sunau",sox_false)) f->filetype = "sunau";
if (!f->filetype && sox_find_format("ao" , sox_false) && file_count) /*!rec*/
f->filetype = "ao";