21 #include "../../parallelism.h"
22 #include "../../exception.h"
23 #include "../source.h"
24 #include "../sample_arithmetic.h"
Task: an operation that can be executed by multiple threads in parallel.
Abstract audio playback base class.
ThreadIndex getMaxThreads() const
Gives the upper limint on the number of threads the task may be performed by.
void advanceTime()
Moves time pointer one buffer forward.
virtual void initialize(Mode mode)
Initializes the playback setting its main parameters.
Source * getSource() const
Returns the signal source to sample.
void beforeProcessing(ThreadIndex threadCount, ProcessingTarget target, GraphicPipeline *gpu)
Instruction called before the task is executed.
void setSource(Source *source)
Specifies a Source to sample.
Communicates an error occurred during the playback.
PlaybackException(const char *message, int resultCode)
Abstract source of audio signal.
Base class for all exceptions.
Internal low-level GPU control API.
unsigned char ThreadIndex
number of threads / thread index
AudioSampleFormat
Format of audio samples.
AudioSampleFormat sampleFormat
format of each sample
dtime sampleRate
samples per second / sample rate in Hz
unsigned char numBuffers
number of atomic buffers
unsigned char numChannels
number of channels
dtime bufferLength
length of each atomic buffer in samples
JNIEnv jobject jint format