Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

OggStream Class Reference

#include <OggStream.h>

List of all members.

Public Methods

 OggStream ()
virtual ~OggStream ()
bool open (string filename)
bool open (string filename, Vector3 position, Vector3 velocity)
void release ()
bool play ()
bool isPlaying ()
bool update ()

Protected Methods

bool stream (ALuint buffer)
void empty ()
void rewind ()
void checkError ()

Protected Attributes

FILE * _oggFile
OggVorbis_File _oggStream
vorbis_info * _vorbisInfo
ALuint _buffers [2]
ALuint _source
ALenum _format


Detailed Description

this class holds the actual sound stream


Constructor & Destructor Documentation

OggStream::OggStream  
 

OggStream::~OggStream   [virtual]
 


Member Function Documentation

void OggStream::checkError   [protected]
 

checks for openal errors

void OggStream::empty   [protected]
 

empty the sound queue

bool OggStream::isPlaying  
 

check to see if the sound is playing

bool OggStream::open string    filename,
Vector3    position,
Vector3    velocity
 

open a new stream

bool OggStream::open string    filename [inline]
 

open a new stream

bool OggStream::play  
 

play the stream

void OggStream::release  
 

delete the stream

void OggStream::rewind   [protected]
 

rewind the sound stream

bool OggStream::stream ALuint    buffer [protected]
 

reload the buffer

bool OggStream::update  
 

put more data in the stream


Member Data Documentation

ALuint OggStream::_buffers[2] [protected]
 

ALenum OggStream::_format [protected]
 

FILE* OggStream::_oggFile [protected]
 

OggVorbis_File OggStream::_oggStream [protected]
 

ALuint OggStream::_source [protected]
 

vorbis_info* OggStream::_vorbisInfo [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 21 11:11:12 2004 for naturecalls by doxygen1.2.18