DECODER__oggfirst.c File Reference


Detailed Description

This module provides function to set up OGG decoder data input.

REVISION

Definition in file DECODER__oggfirst.c.

#include "../SYSTEM/sys_hardware.h"
#include "../SYSTEM/sys_assert.h"
#include "../codec/codec.h"
#include "../coder/coder.h"
#include "decoder.h"

Include dependency graph for DECODER__oggfirst.c:

Include dependency graph

Go to the source code of this file.

Functions

BOOL DECODER__oggfirst (void)
 Function check to set up OGG decoder input bit stream.


Function Documentation

BOOL DECODER__oggfirst void   ) 
 

Function check to set up OGG decoder input bit stream.

Returns:
TRUE if valid OGG stream is found, otherwise FALSE.

Definition at line 38 of file DECODER__oggfirst.c.

References Audio, Decoder, DECODER__ogg(), st_DECODER::flag, st_AUDIO::offset, st_PCM::sampleRate, and st_DECODER::status.

00039 {
00040     OGGV_first(&Decoder);
00041     DECODER__ogg();
00042     if(Decoder.status.isValid)  
00043     {
00044         PCM_samplerateChanged();
00045         Pcm.sampleRate = Decoder.status.sampleRate;
00046         // Reset bookmark.
00047         if(Audio.offset)
00048         {
00049             Decoder.flag |= DEC_FFWD|DEC_MEDIASEEK;
00050         }
00051         return TRUE;
00052     }   
00053     return FALSE;
00054 }

Here is the call graph for this function:


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