BufferT /

#includecinder/audio/Buffer.h

Audio buffer that stores its channels of type T contiguously (ie. the first sample of channel 1 is directly after the last sample of channel 0). Bounds checking is accomplished with assertions that are disabled in release mode by default.


Public Member Functions

  • T &
    operator[] (size_t n)
  • const T &
    operator[] (size_t n) const

Protected Attributes

  • std::vector< T >
    mData
  • size_t
    mNumChannels
  • size_t
    mNumFrames