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
217 extern unsigned dsound_16th_ms;
218 extern unsigned dsound_internote_ms;
219 extern volatile note_t *dsound_next_note;
220 extern volatile time_t dsound_next_time;
222 extern const note_t *dsound_system_sounds[];
224 #endif // DOXYGEN_SHOULD_SKIP_INTERNALS
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;
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
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
static void dsound_system(unsigned nr)
play a system sound
Interface: reduced UNIX standard library.
the note structure describing a single note.
static unsigned dsound_set_duration(unsigned duration)
set duration of a 16th note in ms; return the previous duration.
Generated for brickOS C by
1.8.16