Skip to content
Alessandro Febretti edited this page Feb 8, 2014 · 4 revisions

module omega

These global functions are used to handle the sound environment.

getSoundEnvironment()

Returns an instance of the SoundEnvironment class if sound support is available on the system. Return None otherwise. On cluster systems with sound enabled, this function returns a valid SoundEnvironment instance only on the master node. Slave nodes do not have a sound interface. To create cluster-aware code users should skip sound code in their scripts when sound is disabled (for instance with an if(isSoundEnabled()): block. For more information on sound support check the omicron Sound Reference Page

isSoundEnabled()

Returns True if sound is enabled and available on the system. On cluster systems with sound enabled, this function returns true only on the head node.

Clone this wiki locally