Inheritance diagram for BufferingAudioSource:

Create this as a wrapper around another thread, and it will read-ahead with a background thread to smooth out playback. You can either create one of these directly, or use it indirectly using an AudioTransportSource.
Public Member Functions | |
| BufferingAudioSource (PositionableAudioSource *source, const bool deleteSourceWhenDeleted, int numberOfSamplesToBuffer) | |
| Creates a BufferingAudioSource. | |
| ~BufferingAudioSource () | |
| Destructor. | |
| void | prepareToPlay (int samplesPerBlockExpected, double sampleRate) |
| Implementation of the AudioSource method. | |
| void | releaseResources () |
| Implementation of the AudioSource method. | |
| void | getNextAudioBlock (const AudioSourceChannelInfo &bufferToFill) |
| Implementation of the AudioSource method. | |
| void | setNextReadPosition (int newPosition) |
| Implements the PositionableAudioSource method. | |
| int | getNextReadPosition () const |
| Implements the PositionableAudioSource method. | |
| int | getTotalLength () const |
| Implements the PositionableAudioSource method. | |
| bool | isLooping () const |
| Implements the PositionableAudioSource method. | |
|
||||||||||||||||
|
Creates a BufferingAudioSource.
|
|
|
Destructor. The input source may be deleted depending on whether the deleteSourceWhenDeleted flag was set in the constructor. |
|
||||||||||||
|
Implementation of the AudioSource method.
Implements AudioSource. |
|
|
Implementation of the AudioSource method.
Implements AudioSource. |
|
|
Implementation of the AudioSource method.
Implements AudioSource. |
|
|
Implements the PositionableAudioSource method.
Implements PositionableAudioSource. |
|
|
Implements the PositionableAudioSource method.
Implements PositionableAudioSource. |
|
|
Implements the PositionableAudioSource method.
Implements PositionableAudioSource. |
|
|
Implements the PositionableAudioSource method.
Implements PositionableAudioSource. |