shithub: sox

Download patch

ref: 634f308a032bd49ef5ca1c5c5ad38eceb5e4a2e3
parent: 6473d74a9108c394dc2983f7364ae2f871900cd5
author: cbagwell <cbagwell>
date: Sun Jan 3 15:24:17 EST 2010

Prefer OpenBSD's sndio over older sunau drivers.

--- a/src/sox.c
+++ b/src/sox.c
@@ -2394,10 +2394,10 @@
   if (!f->filetype && sox_find_format("coreaudio", sox_false)) f->filetype = "coreaudio";
   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("sndio", sox_false)) f->filetype = "sndio";
   if (!f->filetype && sox_find_format("ao"  , sox_false) && file_count) /*!rec*/
     f->filetype = "ao";