|
From: Chris B. <ch...@cn...> - 2008-01-14 03:32:14
|
In SoX-14.0.1-rc2 and beyond I will have bumped down the priority of the
libao driver because its also giving some problems on
Fedora+Pulseaudio. So it will chose OSS first again. That should help
you a little.
On the cygwin OSSDSP header files: I only tried that one time in the
past when the author of the OSSDSP simulator code first added it to
cygwin. It compiled with no special work from me first time but audio
played a little iffy. I haven't tried since then.
I'm surprised that you had to copy over the header files... I'll keep an
eye out for that and see if I can find an automated way of compiling
OSSDSP for cygwin.
Chris
D. S. wrote:
> Now that i have sox 14, streaming from a .pls url using sox->play
> works great. This will be nice for talk shows too; I use compand
> 0.1,0.3 -60,-60,-30,-15,-20,-12,-4,-8,-2,-7 to give audio a consistent
> high volume. (I hate it when one talk show speaker is too loud,
> another too soft.) Now I can more easily use it for streaming,
>
> I did have a little "play" -related snag in Cygwin where I use -t
> ossdsp /dev/dsp to play to the soundcard, but, I also have libao
> installed. In sox.c, I needed to make set_device() not attempt using
> ao for the play device (I have libao, so not sure why that was a
> problem).
>
> Before I got:
>
> $ ./play monkey.wav
> ./play ao: Could not find a default driver
> ./play soxio: Can't open output file `default':
>
> So, as a work-around for cygwin (which has ossdsp*) I changed
> set_device to not use ao in Cygwin.(sox.c:373)
>
> 371 static void set_device(file_t f, sox_bool recording UNUSED)
> 372 {
> 373 #if defined(HAVE_LIBAO) && !defined(__CYGWIN__)
> 374 if (!recording) {
>
> So now it uses -t ossdsp /dev/dsp for the v14.0.1 sox play, and works fine.
>
> (* Cygwin OSSDSP hint: I had to copy over /usr/include/sys/soundcard.h
> and /usr/include/machine/soundcard.h headers from a linux system to
> the Cygwin system before I could get -t ossdsp /dev/dsp to work in
> sox.)
>
>
> On Dec 24, 2007 1:34 AM, robs <aq...@ya...> wrote:
>
>> --- "D. S." <new...@gm...> wrote:
>>
>>
>>> Here's one way I've listened to shoutcast (icecast)
>>> mp3 streams using
>>> nothing but wget and sox (mine is v12.18).
>>>
>> Hey, great minds think alike ;) With SoX v14, this is
>> largely built-in, so you can do this:
>>
>> $ play -t mp3 http://somewhere/somestream.pls
>>
>> It doesn't do the "tail" though, so you'll need 2
>> Ctrl-C's to quit.
>>
>> /Rob
>>
|