#include <config.h>
#include <time.h>
#include <unistd.h>
Include dependency graph for dsound.h:

Go to the source code of this file.
Classes | |
| struct | note_t |
| the note structure describing a single note. More... | |
Defines | |
| #define | PITCH_PAUSE 97 |
| specify a pause (rest) | |
| #define | PITCH_MAX 98 |
| maximum pitch value | |
| #define | PITCH_END 255 |
| mark the end of a list of note_t entries | |
| #define | DSOUND_BEEP 0 |
| system sounds | |
| #define | DSOUND_SYS_MAX 1 |
| max system sound | |
| #define | DSOUND_DEFAULT_16th_ms 200 |
| default duration of 1/16th note in ms | |
| #define | DSOUND_DEFAULT_internote_ms 15 |
| default duration internote spacing in ms | |
Functions | |
| void | dsound_play (const note_t *notes) |
| play a sequence of notes | |
| void | dsound_system (unsigned nr) |
| play a system sound | |
| unsigned | dsound_set_duration (unsigned duration) |
| set duration of a 16th note in ms; return the previous duration. | |
| void | dsound_set_internote (unsigned duration) |
| set duration of inter-note spacing (subtracted from note duration) | |
| int | dsound_playing (void) |
| returns nonzero value if a sound is playing | |
| wakeup_t | dsound_finished (wakeup_t data) |
| sound finished event wakeup function | |
| void | dsound_stop (void) |
| stop playing sound | |
Definition in file dsound.h.
|
|
system sounds
Definition at line 197 of file dsound.h. Referenced by Sound::beep(). |
|
|
default duration of 1/16th note in ms
|
|
|
default duration internote spacing in ms
|
|
|
max system sound
Definition at line 200 of file dsound.h. Referenced by dsound_system(). |
|
|
Eighth note in terms of sixteenths.
|
|
|
Half note in terms of sixteenths.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
mark the end of a list of note_t entries
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
Note Pitch Value.
|
|
|
maximum pitch value
|
|
|
specify a pause (rest)
|
|
|
Quater note in terms of sixteenths.
|
|
|
Whole note in terms of sixteenths.
|
|
|
sound finished event wakeup function
|
|
|
play a sequence of notes
Definition at line 234 of file dsound.h. Referenced by dsound_system(), and Sound::play(). |
|
|
returns nonzero value if a sound is playing
Definition at line 260 of file dsound.h. Referenced by Sound::playing(). |
|
|
set duration of a 16th note in ms; return the previous duration.
Definition at line 246 of file dsound.h. Referenced by Sound::duration(). |
|
|
set duration of inter-note spacing (subtracted from note duration) set to 0 for perfect legato. Definition at line 255 of file dsound.h. Referenced by Sound::internote(). |
|
|
stop playing sound
Referenced by Sound::stop(). |
|
|
play a system sound
Definition at line 240 of file dsound.h. References dsound_play(), and DSOUND_SYS_MAX. Referenced by Sound::beep(). |
|
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |
1.3.5