#include "vs1000.h"
Include dependency graph for audio.h:
Go to the source code of this file.
Definition in file audio.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Tells the fill state of audio buffer in stereo samples. |
|
Tells how many stereo samples still fits into the audio buffer without waiting. Note: the buffer should never be completely filled because the same state means empty. |
|
High-level audio output routine. If the samples do not fit into the audio buffer, this routine automatically waits for some room (calls Sleep()).
|
|
Initializes audio structures and configures the PLL. |
|
ReadTimeCount Reads the timecount variable safely, no interrupt disable is needed. |
|
Sets new samplerate and/or new PLL setting (according to clockX variable).
|
|
Sets the hardware volume according to volumeReg. |
|
Hook: Sets new samplerate and/or new PLL setting. Default: RealSetRate.
|
|
Hook: Sets the hardware volume according to volumeReg. Default: RealSetVolume |
|
Internal low-level audio output routine that puts samples into the audio buffer. Applies audioPtr.leftVol and audioPtr.rightVol to the data. Setting audioPtr.rightVol to -audioPtr.leftVol after InitAudio() has been called activates differential output mode, where the phase of right channel is inverted compared to the left channel. This routine does not check the buffer fullness.
|
|
Calculates UART divider from clockX and uartByteSpeed. When SetRate() changes PLL settings, the uart divider is automatically changed.
|
|
applAddr A hook function to process samples before they are put into the audio buffer.
|
|
Audio FIFO. The length of the area used for audio can change depending on the state of the earSpeaker setting. Earspeaker can not be active when long vorbis frames are used. |
|
Audio structure containing the audio FIFO read and write pointers, FIFO size, software volume settings, and the FIFO underflow flag. By negating the other volume field you can get mono differential drive from the DAC for connecting a speaker between LEFT and RIGHT outputs. |
|
Bass and treble controls, not used by rom firmware. See VS10xx datasheets for details. |
|
Current clock multiplier in 0.5x steps. Is used to program the PLL at the next SetRate(). |
|
Current DAC adder value. |
|
|
|
Long vorbis frames disable EarSpeaker automatically. |
|
Current EarSpeaker setting. |
|
Crystal/4000. Normally 3000 (for 12MHz). |
|
The number of cycles spent in HALT since last check. Used for automatic clock management. |
|
Current samplerate. |
|
timeCount counts TIMER_TICKS regardless of clockX. |
|
Delay until analog drivers are enabled. |
|
UART speed in bps / 10. UART divider is automatically updated when PLL value is changed. |
|
Free-running counter for UI. |
|
Is non-zero 16 times per second when audio is played. |
|
Left and right volume 0x00(loudest)..0xff (off). |