openalpp::FileStream Class Reference

Inheritance diagram for openalpp::FileStream:

openalpp::Stream openalpp::SoundData openalpp::AudioBase

List of all members.

Public Member Functions

 FileStream (const std::string &filename, const int buffersize=4096) throw (NameError,InitError,FileError)
 FileStream (const FileStream &stream)
FileStreamoperator= (const FileStream &stream)
void setLooping (bool loop=true)
std::string getFileName () const

Protected Member Functions

virtual ~FileStream ()

Protected Attributes

ov_callbacks _vorbisCallbacks
std::string filename_
OggVorbis_File * oggfile_


Detailed Description

Class for streaming audio data from a file. Presently it supports Ogg Vorbis files (http://www.vorbis.com/).

Constructor & Destructor Documentation

openalpp::FileStream::FileStream ( const std::string &  filename,
const int  buffersize = 4096 
) throw (NameError,InitError,FileError)

Constructor. A FileError will be thrown if the file can't be opened or isn't recognized.

Parameters:
filename is the name of the file to try to open.
buffersize is an optional parameter specifying how large the buffer should be (in samples per second).

openalpp::FileStream::FileStream ( const FileStream stream  ) 

Copy constructor.

virtual openalpp::FileStream::~FileStream (  )  [protected, virtual]

Destructor.


Member Function Documentation

FileStream& openalpp::FileStream::operator= ( const FileStream stream  ) 

void openalpp::FileStream::setLooping ( bool  loop = true  ) 

Turn on/off looping.

Parameters:
loop is true if the stream should loop, false otherwise.

std::string openalpp::FileStream::getFileName (  )  const [inline]


Member Data Documentation

ov_callbacks openalpp::FileStream::_vorbisCallbacks [protected]

std::string openalpp::FileStream::filename_ [protected]

OggVorbis_File* openalpp::FileStream::oggfile_ [protected]


The documentation for this class was generated from the following file:
Generated on Mon Nov 12 03:32:35 2007 for osgAL by  doxygen 1.5.3-20071008