187#define PITCH_PAUSE 97
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
249 return orig_duration;
kernel configuration file
unsigned dsound_internote_ms
length of internote spacing in ms
const note_t * dsound_system_sounds[]
system sound data
volatile time_t dsound_next_time
when to play next note
static int dsound_playing(void)
returns nonzero value if a sound is playing
#define DSOUND_SYS_MAX
max system sound
wakeup_t dsound_finished(wakeup_t data)
sound finished event wakeup function
static void dsound_set_internote(unsigned duration)
set duration of inter-note spacing (subtracted from note duration)
volatile note_t * dsound_next_note
pointer to current note
unsigned dsound_16th_ms
length of 1/16 note in ms
static void dsound_system(unsigned nr)
play a system sound
static void dsound_play(const note_t *notes)
play a sequence of notes
static unsigned dsound_set_duration(unsigned duration)
set duration of a 16th note in ms; return the previous duration.
void dsound_stop(void)
stop playing sound
the note structure describing a single note.
unsigned char pitch
note pitch, 0 ^= A_0 (~55 Hz)
unsigned char length
note length in 1/16ths
Interface: Time-related data and types.
unsigned long time_t
time type
unsigned long wakeup_t
wakeup data area type
Interface: reduced UNIX standard library.