Discussion:
Sound support in Cygwin?
s***@telering.at
2003-10-10 14:32:25 UTC
Permalink
Hi,

I want to port a program to cygwin that writes to /dev/dsp. So far I
have not found any soundsupport in cygwin. Is there any such thing?

br,
stephan
Lapo Luchini
2003-10-10 14:35:38 UTC
Permalink
Post by s***@telering.at
I want to port a program to cygwin that writes to /dev/dsp. So far I
have not found any soundsupport in cygwin. Is there any such thing?
Last message I read abuot this said "experimental reading of /dev/dsp,
no one is mantaining it and code is rotting" or something like that
(AFAIR!!).
sound writing was never there, I think.
--
Lapo 'Raist' Luchini
***@lapo.it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)
Vince Hoffman
2003-10-10 14:39:41 UTC
Permalink
yes, try
cat wavfile.wav > /dev/dsp


(obviously replace wavfile.wav with a real wavfile)
dont try an mp3 though ;)

dont know any details beyound that though.
-----Original Message-----
Sent: 10 October 2003 15:32
Subject: Sound support in Cygwin?
Hi,
I want to port a program to cygwin that writes to /dev/dsp. So far I
have not found any soundsupport in cygwin. Is there any such thing?
br,
stephan
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
Igor Pechtchanski
2003-10-10 17:06:33 UTC
Permalink
Post by s***@telering.at
Hi,
I want to port a program to cygwin that writes to /dev/dsp. So far I
have not found any soundsupport in cygwin. Is there any such thing?
br,
stephan
/dev/dsp is supposed to be working, but the format of the data is
completely different from what you'd find on Unix. The Windows DSP
accepts Wave files (.wav) as the raw data. You can try "cat
/cygdrive/c/WINNT/Media/tada.wav > /dev/dsp" to see if it works on your
machine.

If your Unix program generates the data it writes to /dev/dsp, substantial
parts of it may need to be rewritten.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ ***@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ ***@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
Continue reading on narkive:
Loading...