![]() |
pl-nk v0.4.5
Plonk|Plink|Plank are a set of cross-platform C/C++ frameworks for audio software development
|
Audio file player generator. More...
Classes | |
class | Simple |
A simple file player to handle buffering and sample rate conversion. More... | |
Static Public Member Functions | |
static UnitType | ar (AudioFileReader const &file, IntVariable const &loopCount=0, UnitType const &mul=SampleType(1), UnitType const &add=SampleType(0), const bool deleteWhenDone=true, BlockSize const &preferredBlockSize=BlockSize::getDefault(), SampleRate const &preferredSampleRate=SampleRate::noPreference()) throw () |
Create an audio rate audio file player. |
Audio file player generator.
The AudioFileReader object passed in must not be used by any other code.
The sample rate of the unit is by default set to the sample rate of the audio file.
NB This should not be used directly in a real-time audio thread. It should be wrapped in a TaskUnit which buffers the audio on a separate thread.
static UnitType FilePlayUnit< SampleType >::ar | ( | AudioFileReader const & | file, |
IntVariable const & | loopCount = 0 , |
||
UnitType const & | mul = SampleType (1) , |
||
UnitType const & | add = SampleType (0) , |
||
const bool | deleteWhenDone = true , |
||
BlockSize const & | preferredBlockSize = BlockSize::getDefault() , |
||
SampleRate const & | preferredSampleRate = SampleRate::noPreference() |
||
) | throw () [inline, static] |
Create an audio rate audio file player.