back to io 

wxSound

generated from ../src/mod_io/sound.cpp

This 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 read only 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.



SourceForge.net Logo Support This Project

Table of Contents

Class Methods

stop

Constructor

wxSound

Properties

ok

Methods

create
play


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.