This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: sox - package is broken
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 18 Mar 2014 20:55:12 -0400
- Subject: Re: sox - package is broken
- Authentication-results: sourceware.org; auth=none
- References: <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> <1395190188105-107200 dot post at n5 dot nabble dot com>
- Reply-to: cygwin at cygwin dot com
On Tue, Mar 18, 2014 at 05:49:48PM -0700, PolarStorm wrote:
>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?
Actually it was the improper passing of /dev/dsp file data to an execed
process that was the problem.
cgf
--
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