Sound Package
The SparForte sound package plays music and sounds and controls the sound hardware
on your computer. It currently uses gstreamer.
sound.play( f [, p] )
|
Play a WAV or AU sound file through /dev/dsp. If priority is given, use real-time scheduling to sechedule the playback priority. |
Example |
sound.play( "waterfall.wav" ); |
Parameters |
Param |
Mode |
Type |
Default |
Description |
f |
in |
universal_string |
required |
the sound file to play |
p |
in |
integer |
highest integer |
ignored. Obsolete: will be removed |
|
Exceptions |
- |
See Also |
- |
Compare With |
- |
sound.playcd [( f )]
|
Play an audio CD in /dev/cdrom (or an alternative CD device if specified). |
Example |
sound.playcd; |
Parameters |
Param |
Mode |
Type |
Default |
Description |
f |
in |
universal_string |
/dev/cdrom |
the name of the CD device |
|
Exceptions |
- |
See Also |
sound.stopcd |
Compare With |
- |
sound.stopcd [( f )]
|
Stop playing the current audio CD. |
Example |
sound.stopcd; |
Parameters |
none |
Exceptions |
- |
See Also |
sound.playcd |
Compare With |
- |
|
![[Right Submenu]](art/right_menu_top.png)
|