LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-27-2004, 07:29 AM   #1
clausawits
Member
 
Registered: Jun 2001
Posts: 147

Rep: Reputation: 16
cat blah.wav > /dev/audio gives crap..


From slashdot, I ran across this article: http://www.linuxgazette.com/node/view/9074

In it, it discusses playing wav files in a shell script by simply saying:
system("cat /usr/share/sounds/KDE_Beep_Pop.wav > /dev/audio");

Well, I don't have KDE currently installed on my FC2 machine, so I tried it with /usr/share/sounds/warning.wav, and all I get out is crap.. which makes me curious:

Is his /dev/audio set up differently than mine, or is the KDE_Beep_Pop.wav, or is the difference that warning.wav is 16 bit, and according to the article, KDE_Beep_Pop.wav is 8 bit? If so, is there a command line app that can downsample to the appropriate bit rate?

Yeah, I know I can just use "aplay", but I've had screwy results with that in the past, and I like the simplicity of cat blah > /dev/audio (false difference?).. and besides all that, I'm mildly curious about the internals of /dev/audio..

Thanks for any help you can give...
 
Old 12-29-2005, 07:29 PM   #2
buskmann
LQ Newbie
 
Registered: Mar 2005
Location: Norway
Distribution: FC5
Posts: 27

Rep: Reputation: 16
I know this thread is a bit old, but it doesn't for for me either. Any suggestion to solve this would be very welcome.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What would happen if I where to cat /dev/mem > /dev/null Joey.Dale Linux - General 11 07-26-2009 12:46 PM
cat /dev/ts lyang1981 Linux - Software 2 03-17-2005 01:13 AM
Bad Display Name balh.blah.blah.com in remove command 0.o *BSD 2 12-08-2004 01:37 PM
Expanding file names in a script? ../blah -> /home/blah Bebo Linux - General 24 03-29-2004 05:39 PM
newbie issues....kernel panic: blah blah blah Rio Nishida Slackware 16 11-29-2002 12:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration