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