most direct way to get audio file to sound card?

Dan Nelson dnelson at allantgroup.com
Sun Oct 19 12:19:13 PDT 2003


In the last episode (Oct 19), BSD baby said:
> What's the most direct way to cat an audio file into the sound card?
> 
> The FreeBSD manual talks about wavplay or mpg123 or xmms, but what
> if I just want to send an audio file to the sound card without an
> application inbetween?
> 
> (Reason why - I want to make a quick shell script to play my flac
> audio files.  I can use sox to convert to wav or raw on the fly,
> but still can't get it to the sound card.)

sox file.flac -t ossdsp /dev/dsp

or use the /usr/local/bin/play command installed by the sox port, which
does the same thing.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list