Go to the source code of this file.
◆ xenon_post_beep
Does the classic POST beep that old computers do (950hz tone, 250ms)
Definition at line 50 of file sound.h.
◆ XENON_TONE_AMPLITUDE_100
| #define XENON_TONE_AMPLITUDE_100 12000 |
◆ XENON_TONE_AMPLITUDE_25
| #define XENON_TONE_AMPLITUDE_25 3000 |
◆ XENON_TONE_AMPLITUDE_50
| #define XENON_TONE_AMPLITUDE_50 6000 |
◆ xenon_sound_get_free()
| int xenon_sound_get_free |
( |
void |
| ) |
|
- Returns
- Available free buffer space in bytes.
Definition at line 93 of file sound.c.
◆ xenon_sound_get_unplayed()
| int xenon_sound_get_unplayed |
( |
void |
| ) |
|
- Returns
- Unplayed queued data size in bytes.
Definition at line 111 of file sound.c.
◆ xenon_sound_init()
| void xenon_sound_init |
( |
void |
| ) |
|
Initialize DAC, de-assert AUD_CLAMP, initialize HDMI audio
Definition at line 16 of file sound.c.
◆ xenon_sound_submit()
| void xenon_sound_submit |
( |
void * |
data, |
|
|
int |
len |
|
) |
| |
Submit PCM audio data to be played on the conencted TV, monitor, audio device
48kHz sample rate Signed 16-bit stereo PCM, little endian
- Parameters
-
| data | Pointer to buffer of audio data |
| len | Number of bytes from the buffer to submit |
Definition at line 69 of file sound.c.
◆ xenon_tone()
Generare a square wave tone
- Parameters
-
| frequency | Tone frequency |
| duration | Tone length in milliseconds. |
| amplitude | Peak sample amplitude (signed 16-bit). |
Definition at line 128 of file sound.c.