wxSound
generated from ../src/mod_io/sound.cppThis class represents a short sound (loaded from Windows WAV file), that can be stored in memory and played.
Constants
Flags
| Name | Description |
|---|---|
| ASYNC | |
| LOOP | |
| SYNC |
Class Methods
stop
stop()
Stops the sound
Constructor
wxSound
wxSound()
wxSound(Filename)
| Name | Type | Default | Description |
|---|---|---|---|
| Filename | String | The name of the soundfile. |
Constructs a new wxSound object. When no argument is specified, use create afterwards.
Properties
| Name | Type | Description |
|---|---|---|
ok ![]() |
Boolean | Returns true when the soundfile is successfully loaded. |
Methods
create
create(FileName) : Boolean
| Name | Type | Default | Description |
|---|---|---|---|
| FileName | String | The name of the soundfile |
Constructs a sound object.
play
play(Flags = wxSound.ASYNC) : Boolean
| Name | Type | Default | Description |
|---|---|---|---|
| Flags | wxSound.ASYNC |
Plays the sound.

© 2002 - 2007 Franky Braem.