[BUSH User Guide]
 
Home Page Introduction Tutorials Reference Packages Hacking
 
  Packages  
4.1 Using Packages
4.2 text_io (Console I/O)
4.3 text_io (File I/O)
4.4 sound
4.5 source_info
4.6 System
4.7 numerics
4.8 strings
4.9 command_line
4.10 lock_files
4.11 cgi
4.12 calendar
4.13 units
4.14 arrays
4.15 files
4.16 db (Database)
4.17 stats
4.18 pen
4.19 mysql
4.20 os
4.21 directory_operations
 
This part of the guide contains detailed descriptions of the BUSH built-in packages.
 

4.4 Sound Package

The BUSH sound package plays music and sounds and controls the sound hardware on your computer. Under Linux/UNIX, you will probably have to be logged in as the superuser to access the sound devices on your computer.


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" );
Ada Equivalent: none (BUSH extension)
Parameters:
f in universal_string required the sound file to play
p in integer highest integer real-time priority


sound.playcd [( f )]

Play an audio CD in /dev/cdrom (or an alternative CD device if specified).
Example: sound.playcd;
Ada Equivalent: none (BUSH extension)
Parameters:
f in universal_string /dev/cdrom the name of the CD device


sound.stopcd

Stop the current audio CD.
Example: sound.stopcd;
Ada Equivalent: none (BUSH extension)
Parameters: none

 

 Back to Top