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

Go to the source code of this file.
Functions | |
| USHORT | DECODER__wavmedia (void) |
| Function serves as the WAV decoder media access task handle. | |
|
|
Function serves as the WAV decoder media access task handle.
Definition at line 41 of file DECODER__wavmedia.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_WAV) )
00051 {
00052 Audio.fptr = wvEndOfReadPtr;
00053 pDst = (unsigned short *)BITSTRM_writePtr(Decoder.inputBitstrm);
00054 dataLen = DECODER_getData((int*)pDst, Audio.fptr, strmLen);
00055 Audio.fptr += dataLen;
00056 wvEndOfReadPtr = Audio.fptr;
00057
00058 /* Add to decoder bitstream object. */
00059 BITSTRM_add(Decoder.inputBitstrm, dataLen);
00060 }
00061 return dataLen;
00062
00063 }
|
Here is the call graph for this function:

1.3.9.1