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
217extern unsigned dsound_16th_ms;
218extern unsigned dsound_internote_ms;
219extern volatile note_t *dsound_next_note;
220extern volatile time_t dsound_next_time;
222extern const note_t *dsound_system_sounds[];
235 dsound_next_note=(
volatile note_t*) notes;
247 unsigned orig_duration = dsound_16th_ms;
248 dsound_16th_ms=duration;
249 return orig_duration;
256 dsound_internote_ms=duration;
261 return dsound_next_note!=0;
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)
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.