#include <dsp-drivers.h>

Public Member Functions | |
| virtual stereo_sample2 | read ()=0 |
A class which can deliver data to the dsp_driver when requested. The read method should for each invocation always return the next sample to be played. The audio_source is passed to the dsp_driver which should use it to obtain the audio to be played read should be invoked pseudo-realtime. This class should not be used to buffer 3 minutes of music before playing.
| virtual stereo_sample2 audio_source::read | ( | ) | [pure 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.
Implemented in FragmentDeliverer.
Referenced by dsp_jack::process_buffers(), and dsp_driver::run_pusher_thread().
1.6.2