Interface: direct control of sound.
More...
#include <config.h>
#include <time.h>
#include <unistd.h>
Go to the source code of this file.
|
struct | note_t |
| the note structure describing a single note. More...
|
|
Interface: direct control of sound.
- Author
- Markus L. Noga marku.nosp@m.s@no.nosp@m.ga.de
Definition in file dsound.h.
◆ DSOUND_BEEP
◆ DSOUND_DEFAULT_16th_ms
#define DSOUND_DEFAULT_16th_ms 200 |
default duration of 1/16th note in ms
Definition at line 204 of file dsound.h.
◆ DSOUND_DEFAULT_internote_ms
#define DSOUND_DEFAULT_internote_ms 15 |
default duration internote spacing in ms
Definition at line 207 of file dsound.h.
◆ DSOUND_SYS_MAX
max system sound
Definition at line 200 of file dsound.h.
◆ EIGHTH
Eighth note in terms of sixteenths.
Definition at line 75 of file dsound.h.
◆ HALF
Half note in terms of sixteenths.
Definition at line 69 of file dsound.h.
◆ PITCH_A0
\defgoup notePitches standard note pitch values
Note Pitch Value
Definition at line 86 of file dsound.h.
◆ PITCH_A1
◆ PITCH_A2
◆ PITCH_A3
◆ PITCH_A4
◆ PITCH_A5
◆ PITCH_A6
◆ PITCH_A7
◆ PITCH_A8
◆ PITCH_Am0
◆ PITCH_Am1
◆ PITCH_Am2
◆ PITCH_Am3
◆ PITCH_Am4
◆ PITCH_Am5
◆ PITCH_Am6
◆ PITCH_Am7
◆ PITCH_C1
◆ PITCH_C2
◆ PITCH_C3
◆ PITCH_C4
◆ PITCH_C5
◆ PITCH_C6
◆ PITCH_C7
◆ PITCH_C8
◆ PITCH_Cm1
◆ PITCH_Cm2
◆ PITCH_Cm3
◆ PITCH_Cm4
◆ PITCH_Cm5
◆ PITCH_Cm6
◆ PITCH_Cm7
◆ PITCH_Cm8
◆ PITCH_D1
◆ PITCH_D2
◆ PITCH_D3
◆ PITCH_D4
◆ PITCH_D5
◆ PITCH_D6
◆ PITCH_D7
◆ PITCH_D8
◆ PITCH_Dm1
◆ PITCH_Dm2
◆ PITCH_Dm3
◆ PITCH_Dm4
◆ PITCH_Dm5
◆ PITCH_Dm6
◆ PITCH_Dm7
◆ PITCH_Dm8
◆ PITCH_E1
◆ PITCH_E2
◆ PITCH_E3
◆ PITCH_E4
◆ PITCH_E5
◆ PITCH_E6
◆ PITCH_E7
◆ PITCH_E8
◆ PITCH_END
◆ PITCH_F1
◆ PITCH_F2
◆ PITCH_F3
◆ PITCH_F4
◆ PITCH_F5
◆ PITCH_F6
◆ PITCH_F7
◆ PITCH_F8
◆ PITCH_Fm1
◆ PITCH_Fm2
◆ PITCH_Fm3
◆ PITCH_Fm4
◆ PITCH_Fm5
◆ PITCH_Fm6
◆ PITCH_Fm7
◆ PITCH_Fm8
◆ PITCH_G1
◆ PITCH_G2
◆ PITCH_G3
◆ PITCH_G4
◆ PITCH_G5
◆ PITCH_G6
◆ PITCH_G7
◆ PITCH_G8
◆ PITCH_Gm1
◆ PITCH_Gm2
◆ PITCH_Gm3
◆ PITCH_Gm4
◆ PITCH_Gm5
◆ PITCH_Gm6
◆ PITCH_Gm7
◆ PITCH_Gm8
◆ PITCH_H0
◆ PITCH_H1
◆ PITCH_H2
◆ PITCH_H3
◆ PITCH_H4
◆ PITCH_H5
◆ PITCH_H6
◆ PITCH_H7
◆ PITCH_MAX
maximum pitch value
Definition at line 190 of file dsound.h.
◆ PITCH_PAUSE
specify a pause (rest)
Definition at line 187 of file dsound.h.
◆ QUARTER
Quater note in terms of sixteenths.
Definition at line 72 of file dsound.h.
◆ WHOLE
Whole note in terms of sixteenths.
Definition at line 66 of file dsound.h.
◆ dsound_finished()
sound finished event wakeup function
◆ dsound_play()
static void dsound_play |
( |
const note_t * |
notes | ) |
|
|
inlinestatic |
◆ dsound_playing()
static int dsound_playing |
( |
void |
| ) |
|
|
inlinestatic |
returns nonzero value if a sound is playing
Definition at line 260 of file dsound.h.
◆ dsound_set_duration()
static unsigned dsound_set_duration |
( |
unsigned |
duration | ) |
|
|
inlinestatic |
set duration of a 16th note in ms; return the previous duration.
Definition at line 246 of file dsound.h.
◆ dsound_set_internote()
static void dsound_set_internote |
( |
unsigned |
duration | ) |
|
|
inlinestatic |
set duration of inter-note spacing (subtracted from note duration)
set to 0 for perfect legato.
Definition at line 255 of file dsound.h.
◆ dsound_stop()
void dsound_stop |
( |
void |
| ) |
|
|
extern |
◆ dsound_system()
static void dsound_system |
( |
unsigned |
nr | ) |
|
|
inlinestatic |