#include <fragment-deliverer.h>


Public Member Functions | |
| FragmentDeliverer () | |
| void | reset (FragmentInMemory m) |
| void | markFinished () |
| virtual stereo_sample2 | read () |
Public Attributes | |
| FragmentInMemory | playing |
| unsigned4 | curpos |
| stereo_sample2 * | samples |
| bool | finished |
| void FragmentDeliverer::markFinished | ( | ) |
References FragmentPlayer::delivererFinished(), finished, and fragmentPlayer.
Referenced by read().
| virtual stereo_sample2 FragmentDeliverer::read | ( | ) | [inline, virtual] |
The read method should return the next sample to be played. It should never wait. If no data is available it can _signal_ to some other thread that this is the case, but it should not wait for data to become available. Similar, it should not wait if a pause request has been issued. In those cases it is safe to return 0.
Implements audio_source.
References curpos, finished, FragmentInMemory::get_size(), markFinished(), playing, and samples.
| void FragmentDeliverer::reset | ( | FragmentInMemory | m | ) | [inline] |
References curpos, finished, FragmentInMemory::get_samples(), playing, and samples.
Referenced by ActiveFragmentPlayer::closeDsp(), and ActiveFragmentPlayer::playWave().
Referenced by FragmentDeliverer(), read(), and reset().
Referenced by FragmentDeliverer(), markFinished(), read(), and reset().
Referenced by FragmentDeliverer(), read(), and reset().
1.6.2