DECODER__oggmedia.c File Reference


Detailed Description

This module provides OGG decoder media data access handle.

REVISION

Definition in file DECODER__oggmedia.c.

#include "../SYSTEM/sys_hardware.h"
#include "../MESSAGE/message.h"
#include "../codec/codec.h"
#include "../AUDIO/audio.h"
#include "decoder.h"
#include "vorbis/OGGV_ogg.h"

Include dependency graph for DECODER__oggmedia.c:

Include dependency graph

Go to the source code of this file.

Functions

unsigned long DECODER__oggRead (unsigned short *pDst, unsigned long strmLen)
 Function serves as the OGG decoder media access handle.
int DECODER_seek (unsigned long offset)
 Function seeks to set up Ogg media pointer.
USHORT DECODER__oggmedia (void)
 Function serves as the OGG decoder media access task handle.


Function Documentation

USHORT DECODER__oggmedia void   ) 
 

Function serves as the OGG decoder media access task handle.

Returns:
Always return 0OGG is responsible to post coder task as needed.

Definition at line 78 of file DECODER__oggmedia.c.

References Decoder.

00079 {
00080     OGGV_demux(&Decoder);
00081     return 0;
00082 }

unsigned long DECODER__oggRead unsigned short *  pDst,
unsigned long  strmLen
 

Function serves as the OGG decoder media access handle.

Parameters:
pDst Destination data pointer.
strmLen Number of requested data in words.
Returns:
Number of data read in words.

!!

Definition at line 44 of file DECODER__oggmedia.c.

References Audio, DECODER_getData(), and st_AUDIO::fptr.

00045 {
00047     // Assuming the request length is never bigger than 0x0ffff.
00048     unsigned short dataLen;
00049     
00050     dataLen = DECODER_getData((int *)pDst, Audio.fptr, strmLen);
00051     Audio.fptr += dataLen;
00052     return (unsigned long)dataLen;
00053 }           

Here is the call graph for this function:

int DECODER_seek unsigned long  offset  ) 
 

Function seeks to set up Ogg media pointer.

Parameters:
offset Target media offset.
Returns:
0 if seeked, 1 if not. (NOT USED)

Definition at line 65 of file DECODER__oggmedia.c.

References Audio, and st_AUDIO::fptr.

00066 {
00067     Audio.fptr = offset;
00068     return 0;
00069 }


Generated on Wed Jan 19 01:12:54 2005 for neuros-firmware by  doxygen 1.3.9.1