wxSound
Implements methods from the following classes
wxObject
Methods
wxSound
Default ctor.
Create
Constructs a wave object from a file or resource.
IsOk
Returns true if the object contains a successfully loaded file or resource, false otherwise.
Play
Plays the sound file.
Static Methods
Stop
If a sound is played, this function stops it.
wxSound
wxSound
( )
Default ctor.
wxSound
(
string
$fileName
,
bool
$isResource
=
false
)
Constructs a wave object from a file or, under Windows, from a Windows resource.
wxSound
(
integer
$size
,
)
Constructs a wave object from in-memory data.
Create
bool
Create
(
string
$fileName
,
bool
$isResource
=
false
)
Constructs a wave object from a file or resource.
IsOk
bool
IsOk
( )
Returns true if the object contains a successfully loaded file or resource, false otherwise.
Play
bool
Play
(
integer
$flags
=
wxSOUND_ASYNC
)
Plays the sound file.
static
bool
Play
(
string
$filename
,
integer
$flags
=
wxSOUND_ASYNC
)
Plays the sound file.
Stop
static
Stop
( )
If a sound is played, this function stops it.