oggstream Class Reference

#include <sound.h>

Inherits sourceowner.

Collaboration diagram for oggstream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 oggstream ()
 ~oggstream ()
void reset ()
bool open (const char *f)
void onsourcereassign (source *s)
bool stream (ALuint bufid)
bool update ()
bool playing ()
void updategain ()
void setgain (float g)
void setvolume (float v)
void fadein (int startmillis, int fademillis)
void fadeout (int endmillis, int fademillis)
bool playback (bool looping=false)
void seek (double offset)

Public Attributes

string name
bool valid
OggVorbis_File oggfile
bool isopen
vorbis_info * info
double totalseconds
ALuint bufferids [2]
source * src
ALenum format
float volume
float gain
int startmillis
int endmillis
int startfademillis
int endfademillis
bool looping

Static Public Attributes

static const int BUFSIZE = 1024 * 512


Constructor & Destructor Documentation

oggstream::oggstream (  ) 

oggstream::~oggstream (  ) 


Member Function Documentation

void oggstream::fadein ( int  startmillis,
int  fademillis 
)

void oggstream::fadeout ( int  endmillis,
int  fademillis 
)

void oggstream::onsourcereassign ( source *  s  )  [virtual]

Implements sourceowner.

bool oggstream::open ( const char *  f  ) 

bool oggstream::playback ( bool  looping = false  ) 

bool oggstream::playing (  ) 

void oggstream::reset (  ) 

void oggstream::seek ( double  offset  ) 

void oggstream::setgain ( float  g  ) 

void oggstream::setvolume ( float  v  ) 

bool oggstream::stream ( ALuint  bufid  ) 

bool oggstream::update (  ) 

void oggstream::updategain (  ) 


Member Data Documentation

const int oggstream::BUFSIZE = 1024 * 512 [static]

vorbis_info* oggstream::info

OggVorbis_File oggstream::oggfile


The documentation for this class was generated from the following files:

Generated on Mon Dec 8 21:41:36 2008 for AssaultCube by  doxygen 1.5.7.1