____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

ogg.cpp File Reference

ogg support More...

#include "stratagus.h"
#include <stdlib.h>
#include <string.h>
#include <vorbis/codec.h>
#include <vorbis/vorbisfile.h>
#include <theora/theora.h>
#include "SDL.h"
#include "SDL_endian.h"
#include "iolib.h"
#include "movie.h"
#include "sound_server.h"

Go to the source code of this file.

Classes

class  CSampleVorbis
class  CSampleVorbisStream

Functions

int OggGetNextPage (ogg_page *page, ogg_sync_state *sync, CFile *f)
int VorbisProcessData (OggData *data, char *buffer)
int OggInit (CFile *f, OggData *data)
void OggFree (OggData *data)
int VorbisStreamRead (CSample *sample, OggData *data, void *buf, int len)
CSampleLoadVorbis (const std::string &name, int flags)
 Load a vorbis file.


Detailed Description

ogg support

Definition in file ogg.cpp.


Function Documentation

CSample* LoadVorbis ( const std::string &  name,
int  flags 
)

void OggFree ( OggData data  ) 

int OggGetNextPage ( ogg_page *  page,
ogg_sync_state *  sync,
CFile f 
)

Definition at line 83 of file ogg.cpp.

References CFile::read().

Referenced by OggInit(), TheoraProcessData(), and VorbisProcessData().

int OggInit ( CFile f,
OggData data 
)

int VorbisProcessData ( OggData data,
char *  buffer 
)

int VorbisStreamRead ( CSample sample,
OggData data,
void *  buf,
int  len 
)


Generated on Sat Feb 21 00:28:18 2009 for Bos Wars by  doxygen 1.5.6