#include <OggStream.h>
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 |
|
|
|
|
|
|
|
|
checks for openal errors |
|
|
empty the sound queue |
|
|
check to see if the sound is playing |
|
||||||||||||||||
|
open a new stream |
|
|
open a new stream |
|
|
play the stream |
|
|
delete the stream |
|
|
rewind the sound stream |
|
|
reload the buffer |
|
|
put more data in the stream |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.18