DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
AudioBuffer.h File Reference

Owning audio buffer and non-owning view for real-time DSP processing. More...

#include "SimdOps.h"
#include <algorithm>
#include <array>
#include <bit>
#include <cassert>
#include <cstddef>
#include <cstring>
#include <new>
#include <type_traits>
#include <utility>
Include dependency graph for AudioBuffer.h:

Go to the source code of this file.

Classes

class  dspark::AudioBufferView< T, MaxViewChannels >
 Non-owning view over audio channel data. More...
 
class  dspark::AudioBuffer< T, MaxChannels >
 Owning audio buffer with contiguous, 32-byte aligned storage. More...
 

Namespaces

namespace  dspark
 Main namespace for the DSPark framework.
 

Detailed Description

Owning audio buffer and non-owning view for real-time DSP processing.

Provides two complementary classes:

  • AudioBufferView<T>: A lightweight, non-owning view over channel pointers. Processors receive this type. It is trivially copyable and allows implicit conversion from mutable (T) to constant (const T) views.
  • AudioBuffer<T, MaxChannels>: An owning buffer with a single contiguous, 32-byte aligned memory allocation. Ensures SIMD padding is correctly zeroed to avoid denormal propagation during vectorized over-reads.

Dependencies: SimdOps.h and the C++20 standard library.

Definition in file AudioBuffer.h.