omxaudiomixertest.c File Reference

#include "omxaudiomixertest.h"
#include "ctype.h"

Go to the source code of this file.

Defines

#define SINK_NAME   "OMX.nokia.outputstream.component"
#define BUFFER_COUNT_ACTUAL   2
#define FRAME_SIZE   1152*2*2

Functions

int main (int argc, char **argv)
OMX_ERRORTYPE audiomixerEventHandler (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_EVENTTYPE eEvent, OMX_OUT OMX_U32 Data1, OMX_OUT OMX_U32 Data2, OMX_IN OMX_PTR pEventData)
OMX_ERRORTYPE audiomixerEmptyBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE audiomixerFillBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE audiosinkEventHandler (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_EVENTTYPE eEvent, OMX_OUT OMX_U32 Data1, OMX_OUT OMX_U32 Data2, OMX_OUT OMX_PTR pEventData)
OMX_ERRORTYPE audiosinkEmptyBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer)

Variables

appPrivateTypeappPriv
int fd = 0
int fd1 = 0
unsigned int filesize
unsigned int filesize1
int flagIsGain [4]
int flagPlaybackOn
int flagSetupTunnel
int flagSampleRate
int flagChannel
char * input_file [2]
char * output_file
OMX_BUFFERHEADERTYPEinBuffer [4]
OMX_BUFFERHEADERTYPEoutBuffer [2]
OMX_BUFFERHEADERTYPEinBufferSink [2]


Define Documentation

#define BUFFER_COUNT_ACTUAL   2

Definition at line 30 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

#define FRAME_SIZE   1152*2*2

Definition at line 31 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

#define SINK_NAME   "OMX.nokia.outputstream.component"

Definition at line 29 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.


Function Documentation

OMX_ERRORTYPE audiomixerEmptyBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

Definition at line 410 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

References appPriv, DEB_LEV_FULL_SEQ, DEB_LEV_SIMPLE_SEQ, DEBUG, appPrivateType::eofSem, err, fd, fd1, filesize, filesize1, FRAME_SIZE, OMX_BUFFERFLAG_EOS, OMX_EmptyThisBuffer, OMX_ErrorNone, OMX_FALSE, OMX_TRUE, and tsem_up().

OMX_ERRORTYPE audiomixerEventHandler ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_EVENTTYPE  eEvent,
OMX_OUT OMX_U32  Data1,
OMX_OUT OMX_U32  Data2,
OMX_IN OMX_PTR  pEventData 
)

Definition at line 360 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

References appPriv, DEB_LEV_SIMPLE_SEQ, DEBUG, appPrivateType::eofSem, appPrivateType::eventSem, OMX_BUFFERFLAG_EOS, OMX_CommandPortDisable, OMX_CommandPortEnable, OMX_CommandStateSet, OMX_ErrorNone, OMX_EventBufferFlag, OMX_EventCmdComplete, OMX_StateExecuting, OMX_StateIdle, OMX_StateInvalid, OMX_StateLoaded, OMX_StatePause, OMX_StateWaitForResources, and tsem_up().

OMX_ERRORTYPE audiomixerFillBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

Definition at line 491 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

References appPriv, appPrivateType::audiosinkhandle, DEB_LEV_FULL_SEQ, DEBUG, err, flagPlaybackOn, inBufferSink, OMX_BUFFERHEADERTYPE::nFilledLen, OMX_EmptyThisBuffer, OMX_ErrorNone, OMX_FillThisBuffer, and OMX_BUFFERHEADERTYPE::pBuffer.

OMX_ERRORTYPE audiosinkEmptyBufferDone ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_BUFFERHEADERTYPE pBuffer 
)

Definition at line 582 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

References appPriv, DEB_LEV_FULL_SEQ, DEB_LEV_PARAMS, DEBUG, appPrivateType::eofSem, err, appPrivateType::handle, OMX_BUFFERHEADERTYPE::nFilledLen, OMX_ErrorNone, OMX_FillThisBuffer, outBuffer, OMX_BUFFERHEADERTYPE::pBuffer, and tsem_up().

OMX_ERRORTYPE audiosinkEventHandler ( OMX_OUT OMX_HANDLETYPE  hComponent,
OMX_OUT OMX_PTR  pAppData,
OMX_OUT OMX_EVENTTYPE  eEvent,
OMX_OUT OMX_U32  Data1,
OMX_OUT OMX_U32  Data2,
OMX_OUT OMX_PTR  pEventData 
)

callback prototypes for audio sink

Definition at line 537 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

References appPriv, DEB_LEV_SIMPLE_SEQ, DEBUG, OMX_CommandPortDisable, OMX_CommandPortEnable, OMX_CommandStateSet, OMX_ErrorNone, OMX_StateExecuting, OMX_StateIdle, OMX_StateInvalid, OMX_StateLoaded, OMX_StatePause, OMX_StateWaitForResources, appPrivateType::sinkEventSem, and tsem_up().

int main ( int  argc,
char **  argv 
)

Definition at line 59 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

References appPriv, audiomixerEmptyBufferDone(), audiomixerEventHandler(), audiomixerFillBufferDone(), audiosinkcallbacks, audiosinkEmptyBufferDone(), audiosinkEventHandler(), appPrivateType::audiosinkhandle, callbacks, appPrivateType::condition, DEB_LEV_ERR, DEBUG, DEFAULT_MESSAGES, OMX_CALLBACKTYPE::EmptyBufferDone, appPrivateType::eofSem, err, OMX_CALLBACKTYPE::EventHandler, appPrivateType::eventSem, fd, fd1, filesize, filesize1, OMX_CALLBACKTYPE::FillBufferDone, flagIsGain, flagPlaybackOn, flagSetupTunnel, appPrivateType::handle, appPrivateType::mutex, OMX_AUDIO_CONFIG_VOLUMETYPE::nPortIndex, OMX_BS32::nValue, OMX_ErrorNone, OMX_FALSE, OMX_GetConfig, OMX_GetHandle(), OMX_IndexConfigAudioVolume, OMX_Init(), OMX_SetConfig, SINK_NAME, appPrivateType::sinkEventSem, OMX_AUDIO_CONFIG_VOLUMETYPE::sVolume, and tsem_init().


Variable Documentation

appPrivateType* appPriv

Definition at line 44 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

int fd = 0

Definition at line 45 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

int fd1 = 0

Definition at line 45 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

unsigned int filesize

Definition at line 46 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

unsigned int filesize1

Definition at line 46 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

int flagChannel

Definition at line 51 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

int flagIsGain[4]

Definition at line 47 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

int flagPlaybackOn

Definition at line 48 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

int flagSampleRate

Definition at line 50 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

int flagSetupTunnel

Definition at line 49 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

OMX_BUFFERHEADERTYPE* inBuffer[4]

Definition at line 55 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

OMX_BUFFERHEADERTYPE * inBufferSink[2]

Definition at line 55 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

char* input_file[2]

Definition at line 52 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

OMX_BUFFERHEADERTYPE * outBuffer[2]

Definition at line 55 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.

char * output_file

Definition at line 52 of file components_symbian/symbianaudiomixer/src/omxaudiomixertest.c.


Generated for OpenMAX Bellagio rel. 0.3.5-svn by  doxygen 1.5.1
SourceForge.net Logo