[SparForte][Banner]
[Top Main Menu] Intro | Tutorials | Reference | Packages | Examples | Contributors   [Back Page]      [Next Page]  

Sound Package

The SparForte 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 (SparForte 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 (SparForte 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 (SparForte extension)
Parameters: none
 
[Right Submenu]

 Summary

 arrays

 calendar

 cgi

 command_line

 db/ postgresql

 directory_operations

 enums

 files

 lock_files

 mysql

 numerics

 os

 pen

 sound

 source_info

 stats

 strings

 System

 text_io

 units

[Back to Top] Back To Top [Small Forte Symbol]