GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
alsa.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <poll.h>
#include <alsa/asoundlib.h>
#include <gpac/modules/audio_out.h>
+ Include dependency graph for alsa.c:

Data Structures

struct  ALSAContext
 

Functions

static GF_Err ALSA_Setup (GF_AudioOutput *dr, void *os_handle, u32 num_buffers, u32 total_duration)
 
static void ALSA_Shutdown (GF_AudioOutput *dr)
 
static GF_Err ALSA_ConfigureOutput (GF_AudioOutput *dr, u32 *SampleRate, u32 *NbChannels, u32 *nbBitsPerSample, u32 channel_cfg)
 
static void ALSA_WriteAudio (GF_AudioOutput *dr)
 
static void ALSA_SetVolume (GF_AudioOutput *dr, u32 Volume)
 
static void ALSA_SetPan (GF_AudioOutput *dr, u32 Pan)
 
static void ALSA_SetPriority (GF_AudioOutput *dr, u32 Priority)
 
static u32 ALSA_GetAudioDelay (GF_AudioOutput *dr)
 
static GF_Err ALSA_QueryOutputSampleRate (GF_AudioOutput *dr, u32 *desired_sr, u32 *NbChannels, u32 *nbBitsPerSample)
 
void * NewALSAOutput ()
 
void DeleteALSAOutput (void *ifce)
 
const u32QueryInterfaces ()
 
GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
void ShutdownInterface (GF_BaseInterface *ifce)
 

Data Structure Documentation

struct ALSAContext
+ Collaboration diagram for ALSAContext:
Data Fields
snd_pcm_t * playback_handle
u32 nb_ch
u32 buf_size
u32 delay
u32 num_buffers
u32 total_duration
u32 block_align
u32 force_sr
const char * dev_name
char * wav_buf

Function Documentation

static GF_Err ALSA_Setup ( GF_AudioOutput dr,
void *  os_handle,
u32  num_buffers,
u32  total_duration 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ALSA_Shutdown ( GF_AudioOutput dr)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err ALSA_ConfigureOutput ( GF_AudioOutput dr,
u32 SampleRate,
u32 NbChannels,
u32 nbBitsPerSample,
u32  channel_cfg 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ALSA_WriteAudio ( GF_AudioOutput dr)
static

+ Here is the caller graph for this function:

static void ALSA_SetVolume ( GF_AudioOutput dr,
u32  Volume 
)
static

+ Here is the caller graph for this function:

static void ALSA_SetPan ( GF_AudioOutput dr,
u32  Pan 
)
static

+ Here is the caller graph for this function:

static void ALSA_SetPriority ( GF_AudioOutput dr,
u32  Priority 
)
static

+ Here is the caller graph for this function:

static u32 ALSA_GetAudioDelay ( GF_AudioOutput dr)
static

+ Here is the caller graph for this function:

static GF_Err ALSA_QueryOutputSampleRate ( GF_AudioOutput dr,
u32 desired_sr,
u32 NbChannels,
u32 nbBitsPerSample 
)
static

+ Here is the caller graph for this function:

void* NewALSAOutput ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DeleteALSAOutput ( void *  ifce)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const u32* QueryInterfaces ( )
GF_BaseInterface* LoadInterface ( u32  InterfaceType)

+ Here is the call graph for this function:

void ShutdownInterface ( GF_BaseInterface ifce)

+ Here is the call graph for this function: