[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. It currently uses gstreamer.

  play( f [, p] )
  playcd [( f )]
  stopcd
 
Help Command: Contents of the sound package

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]

 Summary

 arrays

 btree_io

 calendar

 cgi

 chains

 command_line

 db/ postgresql

 dbm

 directory_operations

 doubly_linked...

 dynamic_hash_...

 enums

 exceptions

 files

 gnat.cgi

 gnat.crc32

 hash_io

 lock_files

 memcache

 memcache.highread

 mysql

 mysqlm

 numerics

 os

 pen

 pen (OpenGL)

 records

 sound

 source_info

 stats

 strings

 System

 teams

 templates

 text_io

 units

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