Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: sound on startup, how to play sound streem?< Next Oldest | Next Newest >
dougvega Offline





Group: Members
Posts: 85
Joined: Sep. 2003
Posted: Aug. 10 2005,01:55 QUOTE

How can I  play a small sound file on start up ?.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 10 2005,04:05 QUOTE

Depends on when you want it to play.  If you want it after boot has succeeded, add a command to /opt/bootlocal.sh.  If you want it during X load, put the command in /home/dsl.xinitrc

The command for mp3 would be "mpg321 /path/to/file.mp3".
For ogg, "ogg123 /path/to/file.ogg".
For wav you'll need additional software unless you can deal with xmms starting up to play a single sound.  xmms also doesn't work from bootlocal.  For console wav/ogg/mp3 you could try the sox extension, which has the "play" command.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Aug. 10 2005,16:05 QUOTE

Or (this may be obvious) you can convert your WAV file into an mp3 or an ogg file and then use the builtin commandline tools to play the converted file.

And as a bonus, the converted file should be much smaller in size.
Back to top
Profile PM 
2 replies since Aug. 10 2005,01:55 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: sound on startup

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code