|
| | AudioBuffer (int num_channels, int num_frames_per_channel) |
|
void | interleave_samples () |
| | Interleaves the samples in this buffer from non-interleaved (planar) format to interleaved format.
|
| void | deinterleave_samples (size_t num_channels) |
| | De-interleaves the samples in this buffer from interleaved format to non-interleaved (planar) format.
|
|
void | invert_phase () |
|
void | normalize_peak () |
|
| static std::unique_ptr< AudioBuffer > | from_interleaved (const float *src, size_t num_frames, size_t num_channels) |
| | Creates an AudioBuffer from interleaved audio data.
|
Definition at line 118 of file audio.h.
◆ AudioBuffer()
| zrythm::utils::audio::AudioBuffer::AudioBuffer |
( |
int | num_channels, |
|
|
int | num_frames_per_channel ) |
|
inline |
◆ deinterleave_samples()
| void zrythm::utils::audio::AudioBuffer::deinterleave_samples |
( |
size_t | num_channels | ) |
|
De-interleaves the samples in this buffer from interleaved format to non-interleaved (planar) format.
- Parameters
-
| num_channels | Number of channels in this buffer to de-interleave from. |
◆ from_interleaved()
| std::unique_ptr< AudioBuffer > zrythm::utils::audio::AudioBuffer::from_interleaved |
( |
const float * | src, |
|
|
size_t | num_frames, |
|
|
size_t | num_channels ) |
|
static |
Creates an AudioBuffer from interleaved audio data.
- Parameters
-
| src | Pointer to the interleaved audio data |
| num_frames | Number of frames in the audio data, per channel |
| num_channels | Number of channels in the audio data |
- Returns
- A unique pointer to the new AudioBuffer
- Exceptions
-
| std::invalid_argument | on invalid arguments |
The documentation for this class was generated from the following file: