This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: sox - package is broken
- From: PolarStorm <developer at clinicsearch dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 18 Mar 2014 17:49:48 -0700 (PDT)
- Subject: Re: sox - package is broken
- Authentication-results: sourceware.org; auth=none
- References: <20140310111427 dot GE2828 at calimero dot vinschen dot de> <5324E98D dot 2090806 at tiscali dot co dot uk> <20140316114332 dot GB400 at calimero dot vinschen dot de> <5326276F dot 1050103 at tiscali dot co dot uk> <20140317015736 dot GA8086 at ednor dot casa dot cgf dot cx> <20140317022829 dot GB8086 at ednor dot casa dot cgf dot cx> <20140317044230 dot GA1235 at ednor dot casa dot cgf dot cx> <53278AE6 dot 9040509 at tiscali dot co dot uk> <20140318175353 dot GA1051 at ednor dot casa dot cgf dot cx> <53289E8A dot 1010601 at tiscali dot co dot uk>
David Stacey wrote
> I was testing with
> cat ding.wav > /dev/dsp
> This gives a segmentation fault with the latest (2014-03-18) snapshot;
> no sound is heard However, if I repeat your test:
> cp ding.wav /dev/dsp
> Then that works and the ding dings. Which confuses me greatly - I've
> been using *nix for nearly 20 years, and I honestly would have said that
> the two lines above were synonymous - they're obviously not!
Two things I can think of:
1) With "cat" the output file is created/handled by the shell, whereas "cp"
is doing its own file creation. You should see what's going on by:
strace cat ding.wav > /dev/dsp
strace cp ding.wav /dev/dsp
2) Cat is trying to expand sparse files and perhaps it thinks of your
ding.wav as containing sparse data?
Also, I would guess, that the dsp driver should handle bit streamed input
differently than a block copy/dump?
--
View this message in context: http://cygwin.1069669.n5.nabble.com/Re-sox-package-is-broken-tp106970p107200.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple