#include <SoundStreamer.h>
Inheritance diagram for ark::SoundStreamer:
Public Member Functions | |
SoundStreamer (boost::shared_ptr< SoundResource > const &file) | |
~SoundStreamer () | |
unsigned | sampleRate () const |
boost::shared_ptr< SoundResource > | resource () |
SoundStreamerChunk | produce (SoundStreamerDescription &desc) |
void | handleOverflow (my_super::OverflowError const &err) |
Private Types | |
typedef AsyncProducer< SoundStreamerChunk, async_producer_policies::FifoQueue, async_producer_policies::GenericDescription< SoundStreamerDescription >, SoundStreamerCreationPolicy > | my_super |
Private Attributes | |
boost::shared_ptr< SoundResource > | _source |
unsigned | _readPos |
SoundStreamerChunk | _pendingChunk |
bool | _hasPendingChunk |
|
Reimplemented from ark::SoundStreamerCreationPolicy< async_producer_policies::GenericDescription< SoundStreamerDescription > >. |
|
Constructor Constructs a streamer, given a shared reference to a sound resource. |
|
Destructor Cleanly destructs the streamer, releasing it's references to temporary chunks and the passed sound source constructor argument. |
|
handleOverflow An override of the ProducerThread base class, handles an overflow of rt communication channels. The default action is to store one overflow for re-sending later on, and rethrow the overflow error if we already have a pending chunk.
|
|
produce An override of the ProducerThread base class, returns the next chunk from the sound file, or an invalid chunk. Use chunk.isValid() to check the returned product.
|
|
resource
|
|
sampleRate
|
|
|
|
|
|
|
|
|