This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sox - package is broken


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]