![]() |
STM32F769IDiscovery
1.00
uDANTE Audio Networking with STM32F7 DISCO board
|
#include "AudioPlayer.h"
Go to the source code of this file.
Functions | |
int | AUDIO_PLAYER_GetClock (void) |
void | AUDIO_PLAYER_ReleaseClock (int trig) |
int | AUDIO_PLAYER_GetState (void) |
int | AUDIO_PLAYER_GetBuffer (uint8_t **out_BufAddr) |
AUDIO_ErrorTypeDef | AUDIO_PLAYER_Init (int outSelection, int sampleFreq) |
Initializes Audio Interface. More... | |
AUDIO_ErrorTypeDef | AUDIO_PLAYER_Start (void) |
Starts Audio streaming. More... | |
void | AUDIO_PLAYER_Restart (void) |
AUDIO_ErrorTypeDef | AUDIO_PLAYER_Process (void) |
Manages Audio process. More... | |
AUDIO_ErrorTypeDef | AUDIO_PLAYER_Stop (void) |
Stops Audio streaming. More... | |
void | BSP_AUDIO_OUT_TransferComplete_CallBack (void) |
Calculates the remaining file size and new position of the pointer. More... | |
void | BSP_AUDIO_OUT_HalfTransfer_CallBack (void) |
Manages the DMA Half Transfer complete interrupt. More... | |
void | AUDIO_Player_CpyBuf (uint8_t *buf) |
Copy USB input buffer to SAI output buffer. More... | |
void | AUDIO_Player_QueueBuf (uint8_t *buf, int len) |
Put the Network Audio samples into SAI output buffer. More... | |
void | AUDIO_Player_UDANTERestart (void) |
Restart and sync audio for Network Audio. More... | |
unsigned long | AUDIO_Player_GetHeartbeat (void) |
Get the counter (heartbeat) if we have audio reception. More... | |
void | AUDIO_Player_IncHeartbeat (void) |
Increment the audio reception counter (heartbeat) More... | |
Variables | |
SemaphoreHandle_t | xSemaphoreAudio |
void AUDIO_Player_CpyBuf | ( | uint8_t * | buf | ) |
Copy USB input buffer to SAI output buffer.
buf | - pointer to the USB input samples |
None |
Definition at line 227 of file AudioPlayer.c.
int AUDIO_PLAYER_GetBuffer | ( | uint8_t ** | out_BufAddr | ) |
Definition at line 117 of file AudioPlayer.c.
int AUDIO_PLAYER_GetClock | ( | void | ) |
Definition at line 72 of file AudioPlayer.c.
unsigned long AUDIO_Player_GetHeartbeat | ( | void | ) |
Get the counter (heartbeat) if we have audio reception.
None |
ulong | - the audio reception counter |
Definition at line 353 of file AudioPlayer.c.
int AUDIO_PLAYER_GetState | ( | void | ) |
Definition at line 109 of file AudioPlayer.c.
void AUDIO_Player_IncHeartbeat | ( | void | ) |
Increment the audio reception counter (heartbeat)
None |
None |
Definition at line 371 of file AudioPlayer.c.
AUDIO_ErrorTypeDef AUDIO_PLAYER_Init | ( | int | outSelection, |
int | sampleFreq | ||
) |
Initializes Audio Interface.
None |
Audio | error |
Definition at line 128 of file AudioPlayer.c.
AUDIO_ErrorTypeDef AUDIO_PLAYER_Process | ( | void | ) |
Manages Audio process.
None |
Audio | error |
Definition at line 180 of file AudioPlayer.c.
void AUDIO_Player_QueueBuf | ( | uint8_t * | buf, |
int | len | ||
) |
Put the Network Audio samples into SAI output buffer.
buf | - the pointer to the Audio Network samples |
len | - the length of the Audio Samples, in bytes |
None |
Definition at line 304 of file AudioPlayer.c.
void AUDIO_PLAYER_ReleaseClock | ( | int | trig | ) |
Definition at line 97 of file AudioPlayer.c.
void AUDIO_PLAYER_Restart | ( | void | ) |
Definition at line 168 of file AudioPlayer.c.
AUDIO_ErrorTypeDef AUDIO_PLAYER_Start | ( | void | ) |
Starts Audio streaming.
idx | File index |
Audio | error |
Definition at line 161 of file AudioPlayer.c.
AUDIO_ErrorTypeDef AUDIO_PLAYER_Stop | ( | void | ) |
Stops Audio streaming.
None |
Audio | error |
Definition at line 190 of file AudioPlayer.c.
void AUDIO_Player_UDANTERestart | ( | void | ) |
Restart and sync audio for Network Audio.
None |
None |
Definition at line 342 of file AudioPlayer.c.