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

Public Member Functions

 audio_sample_unpacker (audio_sample_format format, std::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 *hi_restrict src, float *hi_restrict dst, std::size_t num_samples) const noexcept
 Unpack samples.
 

Constructor & Destructor Documentation

◆ audio_sample_unpacker()

hi::v1::audio_sample_unpacker::audio_sample_unpacker ( audio_sample_format format,
std::size_t stride )
inlinenoexcept

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.
strideThe distance to the next sample.

Member Function Documentation

◆ operator()()

void hi::v1::audio_sample_unpacker::operator() ( std::byte const *hi_restrict src,
float *hi_restrict dst,
std::size_t num_samples ) const
inlinenoexcept

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: