|
RavEngine
|
#include <AudioTypes.hpp>
Public Types | |
| using | value_type = decltype(combined_buffers)::value_type |
Public Member Functions | |
| PlanarSampleBufferInlineView (const decltype(combined_buffers)&buf, decltype(sizeOfOneChannelInFrames) sizeOfOneChannelInFrames) | |
| PlanarSampleBufferInlineView (decltype(combined_buffers)::value_type *data, const decltype(combined_buffers)::size_type nframestotal, decltype(sizeOfOneChannelInFrames) sizeOfOneChannelInFrames) | |
| auto | operator[] (size_t i) |
| const auto | operator[] (size_t i) const |
| uint8_t | GetNChannels () const |
| auto | size () const |
| auto | GetNumSamples () const |
| auto | data () |
| const auto | data () const |
| auto | sizeOneChannel () const |
| auto | bytesOneChannel () const |
| void | ImportInterleavedData (InterleavedSampleBufferView interleaved, uint8_t nchannels) |
Protected Types | |
| using | data_t = float |
Protected Member Functions | |
| auto | channel_at (size_t i) const |
Protected Attributes | |
| std::span< data_t, std::dynamic_extent > | combined_buffers |
| size_t | sizeOfOneChannelInFrames = 0 |
Represents planar audio by abstracting a single linear buffer. Expected that the single buffer is organized with one channel succeeding the next (with 2 channels: LLLLLLLL....LLRRRR...RR). Does not own the data.
|
inline |
Gets the number of samples, regardless of the number of channels. For example, a 4-channel view and a 1-channel view will return the same number.
|
inline |
Copy interleaved data into a planar representation
| interleaved | the source buffer |
|
inline |
|
inline |