wxSound

wxSound

This class represents a short sound (loaded from Windows WAV file), that can be stored in memory and played. Currently this class is implemented on Windows and Unix (and uses either Open Sound System or Simple DirectMedia Layer).

Creation Parameters
Functions/Procedures
Supertopics

wxSound

[func]
sound_create
( atom sound, object file, atom isResource )

Category: wxSound

Constructs a wave object from a file or resource.


wxSound

[func]
sound_is_ok
( atom sound )

Category: wxSound

Returns true if the object contains a successfully loaded file or resource, false otherwise.


wxSound

[func]
sound_play
( atom sound, atom flags )

Category: wxSound

Plays the sound file. If another sound is playing, it will be interrupted. Returns true on success, false otherwise. Note that in general it is possible to delete the object which is being asynchronously played any time after calling this function and the sound would continue playing, however this currently doesn't work under Windows for sound objects loaded from memory data.

The possible values for flags are:


wxSound

[proc]
sound_stop
( )

Category: wxSound

If a sound is played, this function stops it.