Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Oct 2003 14:19:12 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        BSD baby <bsdlap@hitmedia.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: most direct way to get audio file to sound card?
Message-ID:  <20031019191912.GH90762@dan.emsphone.com>
In-Reply-To: <20031019191435.GA92677@mail.hitmedia.com>
References:  <20031019191435.GA92677@mail.hitmedia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031019191912.GH90762>