
Public Member Functions | |
| FileStream (const std::string &filename, const int buffersize=4096) throw (NameError,InitError,FileError) | |
| FileStream (const FileStream &stream) | |
| FileStream & | operator= (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_ |
| 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.
| 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.
| std::string openalpp::FileStream::getFileName | ( | ) | const [inline] |
| FileStream& openalpp::FileStream::operator= | ( | const FileStream & | stream | ) |
| void openalpp::FileStream::setLooping | ( | bool | loop = true |
) |
Turn on/off looping.
| loop | is true if the stream should loop, false otherwise. |
ov_callbacks openalpp::FileStream::_vorbisCallbacks [protected] |
std::string openalpp::FileStream::filename_ [protected] |
OggVorbis_File* openalpp::FileStream::oggfile_ [protected] |
1.5.9