#include <config.h>
#include <time.h>
#include <unistd.h>
Include dependency graph for dsound.h:
Go to the source code of this file.
Data Structures | |
struct | note_t |
the note structure describing a single note.
| |
Defines | |
#define | PITCH_PAUSE 97 |
specify a pause (rest). More... | |
#define | PITCH_MAX 98 |
maximum pitch value. More... | |
#define | PITCH_END 255 |
mark the end of a list of note_t entries. More... | |
#define | DSOUND_BEEP 0 |
system sounds. More... | |
#define | DSOUND_SYS_MAX 1 |
max system sound. More... | |
#define | DSOUND_DEFAULT_16th_ms 200 |
default duration of 1/16th note in ms. More... | |
#define | DSOUND_DEFAULT_internote_ms 15 |
default duration internote spacing in ms. More... | |
Functions | |
void | dsound_play (const note_t *notes) |
play a sequence of notes. More... | |
void | dsound_system (unsigned nr) |
play a system sound. More... | |
void | dsound_set_duration (unsigned duration) |
set duration of a 16th note in ms. More... | |
void | dsound_set_internote (unsigned duration) |
set duration of inter-note spacing (subtracted from note duration). More... | |
int | dsound_playing (void) |
returns nonzero value if a sound is playing. More... | |
wakeup_t | dsound_finished (wakeup_t data) |
sound finished event wakeup function. More... | |
void | dsound_stop (void) |
stop playing sound. More... |
Definition in file dsound.h.
|
system sounds.
|
|
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(). |
|
returns nonzero value if a sound is playing.
|
|
set duration of a 16th note in ms.
|
|
set duration of inter-note spacing (subtracted from note duration). set to 0 for perfect legato. |
|
stop playing sound.
|
|
play a system sound.
Definition at line 240 of file dsound.h. References dsound_play(), and DSOUND_SYS_MAX. |
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |