audio_source Class Reference

#include <dsp-drivers.h>

Inheritance diagram for audio_source:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual stereo_sample2 read ()=0

Detailed Description

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.


Member Function Documentation

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().


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2