Go to the documentation of this file.
187 #define PITCH_PAUSE 97
193 #define PITCH_END 255
197 #define DSOUND_BEEP 0
200 #define DSOUND_SYS_MAX 1
204 #define DSOUND_DEFAULT_16th_ms 200
207 #define DSOUND_DEFAULT_internote_ms 15
215 #ifndef DOXYGEN_SHOULD_SKIP_INTERNALS
224 #endif // DOXYGEN_SHOULD_SKIP_INTERNALS
249 return orig_duration;
270 #endif // CONF_DSOUND
unsigned char pitch
note pitch, 0 ^= A_0 (~55 Hz)
#define DSOUND_SYS_MAX
max system sound
static int dsound_playing(void)
returns nonzero value if a sound is playing
const note_t * dsound_system_sounds[]
system sound data
unsigned dsound_16th_ms
length of 1/16 note in ms
void dsound_stop(void)
stop playing sound
wakeup_t dsound_finished(wakeup_t data)
sound finished event wakeup function
unsigned char length
note length in 1/16ths
unsigned long wakeup_t
wakeup data area type
unsigned long time_t
time type
Interface: Time-related data and types.
static void dsound_set_internote(unsigned duration)
set duration of inter-note spacing (subtracted from note duration)
static void dsound_play(const note_t *notes)
play a sequence of notes
volatile note_t * dsound_next_note
pointer to current note
static void dsound_system(unsigned nr)
play a system sound
Interface: reduced UNIX standard library.
the note structure describing a single note.
kernel configuration file
volatile time_t dsound_next_time
when to play next note
unsigned dsound_internote_ms
length of internote spacing in ms
static unsigned dsound_set_duration(unsigned duration)
set duration of a 16th note in ms; return the previous duration.
Generated for brickOS Kernel Developer by
1.8.16