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
oss.c File Reference
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/soundcard.h>
#include <gpac/modules/audio_out.h>
+ Include dependency graph for oss.c:

Data Structures

struct  OSSContext
 

Macros

#define OSS_AUDIO_DEVICE   "/dev/dsp"
 
#define OSSCTX()   OSSContext *ctx = (OSSContext *)dr->opaque;
 

Functions

static GF_Err OSS_Setup (GF_AudioOutput *dr, void *os_handle, u32 num_buffers, u32 total_duration)
 
static void OSS_Shutdown (GF_AudioOutput *dr)
 
static GF_Err OSS_ConfigureOutput (GF_AudioOutput *dr, u32 *SampleRate, u32 *NbChannels, u32 *nbBitsPerSample, u32 channel_cfg)
 
static void OSS_WriteAudio (GF_AudioOutput *dr)
 
static void OSS_SetVolume (GF_AudioOutput *dr, u32 Volume)
 
static void OSS_SetPan (GF_AudioOutput *dr, u32 Pan)
 
static void OSS_SetPriority (GF_AudioOutput *dr, u32 Priority)
 
static u32 OSS_GetAudioDelay (GF_AudioOutput *dr)
 
static GF_Err OSS_QueryOutputSampleRate (GF_AudioOutput *dr, u32 *desired_sr, u32 *NbChannels, u32 *nbBitsPerSample)
 
void * NewOSSRender ()
 
void DeleteOSSRender (void *ifce)
 
const u32QueryInterfaces ()
 
GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
void ShutdownInterface (GF_BaseInterface *ifce)
 

Data Structure Documentation

struct OSSContext
+ Collaboration diagram for OSSContext:
Data Fields
int audio_dev
int sr
int nb_ch
u32 buf_size
u32 delay
u32 num_buffers
u32 total_duration
u32 force_sr
char * wav_buf

Macro Definition Documentation

#define OSS_AUDIO_DEVICE   "/dev/dsp"
#define OSSCTX ( )    OSSContext *ctx = (OSSContext *)dr->opaque;

Function Documentation

static GF_Err OSS_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 OSS_Shutdown ( GF_AudioOutput dr)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err OSS_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 OSS_WriteAudio ( GF_AudioOutput dr)
static

+ Here is the caller graph for this function:

static void OSS_SetVolume ( GF_AudioOutput dr,
u32  Volume 
)
static

+ Here is the caller graph for this function:

static void OSS_SetPan ( GF_AudioOutput dr,
u32  Pan 
)
static

+ Here is the caller graph for this function:

static void OSS_SetPriority ( GF_AudioOutput dr,
u32  Priority 
)
static

+ Here is the caller graph for this function:

static u32 OSS_GetAudioDelay ( GF_AudioOutput dr)
static

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

void* NewOSSRender ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DeleteOSSRender ( 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: