$treeview $search $mathjax
Stratagus  2.2.7
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

src/sound/ogg.cpp File Reference

#include "stratagus.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"

Classes

class  CSampleVorbis
class  CSampleVorbisStream

Functions

ogg.cpp - ogg support
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 char *name, int flags)
 Load a wav file.

Function Documentation

CSample* LoadVorbis ( const char *  name,
int  flags 
)

Load a wav file.

Load vorbis.

Parameters:
name File name.
flags Load flags.
Returns:
Returns the loaded sample.

void OggFree ( OggData data  ) 

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

int OggInit ( CFile f,
OggData data 
)

int VorbisProcessData ( OggData data,
char *  buffer 
)

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

(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.