sound on startupForum: Multimedia Topic: sound on startup started by: dougvega Posted by dougvega on Aug. 10 2005,01:55
How can I play a small sound file on start up ?.
Posted by mikshaw on Aug. 10 2005,04:05
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.xinitrcThe 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. Posted by cbagger01 on Aug. 10 2005,16:05
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. |