REVISION
Definition in file DECODER__wmamedia.c.
#include "../SYSTEM/sys_hardware.h"
#include "../MESSAGE/message.h"
#include "../codec/codec.h"
#include "../AUDIO/audio.h"
#include "../TISTD/wma_ti.h"
#include "../coder/coder.h"
#include "decoder.h"
Include dependency graph for DECODER__wmamedia.c:

Go to the source code of this file.
Functions | |
| USHORT | DECODER__wmamedia (void) |
| Function serves as the WMA decoder media access task handle. | |
|
|
Function serves as the WMA decoder media access task handle.
Definition at line 41 of file DECODER__wmamedia.c. References Audio, Decoder, DECODER_getData(), st_AUDIO::fptr, and st_DECODER::inputBitstrm. 00042 {
00043 USHORT * pDst;
00044 USHORT strmLen;
00045 USHORT dataLen = 0;
00046
00047 BITSTRM_pack(Decoder.inputBitstrm);
00048 strmLen = BITSTRM_numWordsFree(Decoder.inputBitstrm);
00049
00050 if( (strmLen > READ_THRESHOLD_WMA) )
00051 {
00052 // Fetch start offset.
00053 Audio.fptr = wmadecode.endOfDataFileAdr;
00054
00055 pDst = (unsigned short *)BITSTRM_writePtr(Decoder.inputBitstrm);
00056 dataLen = DECODER_getData((int*)pDst, Audio.fptr, strmLen);
00057 Audio.fptr += dataLen;
00058 /* Add to decoder bitstream object. */
00059 BITSTRM_add(Decoder.inputBitstrm, dataLen);
00060 }
00061
00062 if(SEM_count(SEM_subcoder) == 0) SEM_post(SEM_subcoder);
00063
00064 return dataLen;
00065 }
|
Here is the call graph for this function:

1.3.9.1