Hello Morita,
 thanks alot for reporting this and supplying a patch!
I will push this upstream ASAP.

-Pascal

On Jan 13, 2008 4:14 PM, Morita Sho
<[EMAIL PROTECTED]> wrote:
> I have made a patch.
> This patch allows play(1) to determine audio device to use at run-time.
>
> Actually, this patch changes behavior of set_device function.
> What changes is:
>    * To use audio device only when it is available,
>      add this for each one.
>        if (sox_find_format("name", sox_false)) {
>          ...
>          return;
>        }
>
>    * To try next device if previous one is unavailable,
>      replace
>        #elif
>      with
>        #endif
>        #if
>
> After the patch applied,
> play(1) works correctly while at least one of
> libsox-fmt-alsa, libsox-fmt-ao or libsox-fmt-oss is installed.
>
> I hope this helps.
>
> --
> Morita Sho <[EMAIL PROTECTED]>
>



-- 
Homepage (http://organact.mine.nu)
Debian GNU/Linux (http://www.debian.org)
LACIME: École de technologie supérieure (http://lacime.etsmtl.ca)


Reply via email to