#include <config.h>
#include <time.h>
#include <unistd.h>
Include dependency graph for dsound.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Compounds | |
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... | |
Variables | |
unsigned | dsound_16th_ms |
length of 1/16 note in ms. More... | |
unsigned | dsound_internote_ms |
length of internote spacing in ms. More... | |
volatile note_t * | dsound_next_note |
pointer to current note. More... | |
volatile time_t | dsound_next_time |
when to play next note. More... | |
const note_t * | dsound_system_sounds [] |
system sound data. More... |
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. References dsound_next_time. Referenced by dsound_system(), and Sound::play(). |
|
returns nonzero value if a sound is playing.
Definition at line 258 of file dsound.h. Referenced by Sound::playing(). |
|
set duration of a 16th note in ms.
Definition at line 246 of file dsound.h. References dsound_16th_ms. Referenced by Sound::duration(). |
|
set duration of inter-note spacing (subtracted from note duration). set to 0 for perfect legato. Definition at line 253 of file dsound.h. References dsound_internote_ms. 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(). |
|
length of 1/16 note in ms.
Definition at line 217 of file dsound.h. Referenced by dsound_set_duration(). |
|
length of internote spacing in ms.
Definition at line 218 of file dsound.h. Referenced by dsound_set_internote(). |
|
pointer to current note.
|
|
when to play next note.
Definition at line 220 of file dsound.h. Referenced by dsound_play(). |
|
system sound data.
|
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |