#include <c++/Sound.H>
Static Public Member Functions | |
| static void | play (const note_t *notes) |
| Play a list of notes (song). | |
| static int | playing () |
| Determine if a sound is currently playing. | |
| static void | beep () |
| Play the system_beep sound. | |
| static void | stop () |
| Stop a currently playing sound. | |
| static void | duration (const unsigned int len) |
| Set the default duration. | |
| static void | internote (const unsigned int len) |
| Set the amount of time between notes. | |
Sound Generation Class interface
Definition at line 37 of file Sound.H.
| static void Sound::play | ( | const note_t * | notes | ) | [inline, static] |
Play a list of notes (song).
| notes | pointer to an array of note_t elements |
Definition at line 46 of file Sound.H.
References dsound_play().
| static int Sound::playing | ( | ) | [inline, static] |
Determine if a sound is currently playing.
Definition at line 52 of file Sound.H.
References dsound_playing().
| static void Sound::beep | ( | ) | [inline, static] |
Play the system_beep sound.
Definition at line 57 of file Sound.H.
References DSOUND_BEEP, and dsound_system().
| static void Sound::stop | ( | ) | [inline, static] |
Stop a currently playing sound.
Definition at line 62 of file Sound.H.
References dsound_stop().
| static void Sound::duration | ( | const unsigned int | len | ) | [inline, static] |
Set the default duration.
| len | the duration in mSec? |
Definition at line 69 of file Sound.H.
References dsound_set_duration().
| static void Sound::internote | ( | const unsigned int | len | ) | [inline, static] |
Set the amount of time between notes.
| len | the duration in mSec? |
Definition at line 76 of file Sound.H.
References dsound_set_internote().
|
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2005 by the authors. |
1.5.4