#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.
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 | |
Variables | |
| unsigned | dsound_16th_ms |
| length of 1/16 note in ms | |
| unsigned | dsound_internote_ms |
| length of internote spacing in ms | |
| volatile note_t * | dsound_next_note |
| pointer to current note | |
| volatile time_t | dsound_next_time |
| when to play next note | |
| const note_t * | dsound_system_sounds [] |
| system sound data | |
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
Definition at line 204 of file dsound.h. Referenced by show_on(). |
|
|
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_note, and dsound_next_time. Referenced by dsound_system(), and Sound::play(). |
|
|
returns nonzero value if a sound is playing
Definition at line 260 of file dsound.h. References dsound_next_note. Referenced by Sound::playing(). |
|
|
set duration of a 16th note in ms; return the previous duration.
Definition at line 246 of file dsound.h. References dsound_16th_ms. Referenced by Sound::duration(), and show_on(). |
|
|
set duration of inter-note spacing (subtracted from note duration) set to 0 for perfect legato. Definition at line 255 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(), DSOUND_SYS_MAX, and dsound_system_sounds. 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
Definition at line 219 of file dsound.h. Referenced by dsound_play(), and dsound_playing(). |
|
|
when to play next note
Definition at line 220 of file dsound.h. Referenced by dsound_play(). |
|
|
system sound data
Definition at line 222 of file dsound.h. Referenced by dsound_system(). |
|
brickOS is released under the
Mozilla Public License.
Original code copyright 1998-2002 by the authors. |
1.3.5