SoundFontInfoLib
2.21.6
Library for parsing and rendering SF2 files
|
Maintains a buffer of PCM samples which is used to save samples from an upstream node. More...
#include <InputBuffer.hpp>
Public Member Functions | |
void | allocateBuffers (AVAudioFormat *format, AUAudioFrameCount maxFrames) |
Set the format of the buffer to use. More... | |
void | releaseBuffers () |
Forget any allocated buffers. More... | |
AUAudioUnitStatus | pullInput (AudioUnitRenderActionFlags *actionFlags, AudioTimeStamp const *timestamp, AVAudioFrameCount frameCount, NSInteger inputBusNumber, AURenderPullInputBlock pullInputBlock) |
Obtain samples from an upstream node. More... | |
void | prepareBufferList (AVAudioFrameCount frameCount) |
Update the input buffer to reflect current format. More... | |
AudioBufferList * | mutableAudioBufferList () const |
Obtain a pointer to a mutable version of the internal channel buffers. More... | |
BufferFacet & | bufferFacet () |
Obtain the BufferFacet that manages the held AudioBufferList and provides a std::vector view of them. More... | |
size_t | channelCount () const |
Obtain the number of input channels. More... | |
AUValue * | operator[] (size_t index) const |
Obtain the channel buffer. More... | |
Maintains a buffer of PCM samples which is used to save samples from an upstream node.
Note that despite its name, there are multiple sample buffers held within, one for each channel of input.
|
inline |
Set the format of the buffer to use.
format | the format of the samples |
maxFrames | the maximum number of frames to be found in the upstream output |
References SF2::Render::BufferFacet::setBufferList().
|
inline |
Obtain the BufferFacet that manages the held AudioBufferList and provides a std::vector view of them.
|
inline |
Obtain the number of input channels.
References SF2::Render::BufferFacet::channelCount().
|
inline |
Obtain a pointer to a mutable version of the internal channel buffers.
|
inline |
Obtain the channel buffer.
|
inline |
Update the input buffer to reflect current format.
frameCount | the number of frames to expect to place in the buffer |
References channel.
Referenced by pullInput().
|
inline |
Obtain samples from an upstream node.
Output is stored in internal buffer.
actionFlags | render flags from the host |
timestamp | the current transport time of the samples |
frameCount | the number of frames to process |
inputBusNumber | the bus to pull from |
pullInputBlock | the function to call to do the pulling |
References prepareBufferList().
|
inline |
Forget any allocated buffers.
References SF2::Render::BufferFacet::release().