#include <pci/io.h>
#include <stdint.h>
#include <string.h>
#include <xenon_smc/xenon_smc.h>
#include <xenon_smc/xenon_gpio.h>
#include <ppc/cache.h>
Go to the source code of this file.
◆ 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.
◆ xenos_is_hdmi