HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
tt::audio_sample_unpacker Class Reference

Public Member Functions

 audio_sample_unpacker (audio_sample_format format, size_t stride) noexcept
 Audio sample unpacker One instance of this class can be used to unpack multiple buffers either from one audio-proc to the next, or for each channel in a group of interleaved channels.
 
void operator() (std::byte const *tt_restrict src, float *tt_restrict dst, size_t num_samples) const noexcept
 Unpack samples.
 

Constructor & Destructor Documentation

◆ audio_sample_unpacker()

tt::audio_sample_unpacker::audio_sample_unpacker ( audio_sample_format format,
size_t stride )
noexcept

Audio sample unpacker One instance of this class can be used to unpack multiple buffers either from one audio-proc to the next, or for each channel in a group of interleaved channels.

Parameters
formatThe sample format.

Member Function Documentation

◆ operator()()

void tt::audio_sample_unpacker::operator() ( std::byte const *tt_restrict src,
float *tt_restrict dst,
size_t num_samples ) const
noexcept

Unpack samples.

Parameters
srcA pointer to a byte array containing samples.
dstA pointer to a array of floating point samples of a single channel.
num_samplesNumber of samples.

The documentation for this class was generated from the following file: