class ChannelStrip
Defined at line 20 of file ../../src/media/audio/lib/processing/channel_strip.h
Class that manages planar audio data. This is useful when processing audio one channel at a time.
Public Methods
void ChannelStrip (int64_t channel_count, int64_t frame_count)
Defined at line 22 of file ../../src/media/audio/lib/processing/channel_strip.h
void ~ChannelStrip ()
Defined at line 29 of file ../../src/media/audio/lib/processing/channel_strip.h
void ChannelStrip (const ChannelStrip & other)
Non-copyable and non-movable.
Defined at line 32 of file ../../src/media/audio/lib/processing/channel_strip.h
ChannelStrip & operator= (const ChannelStrip & other)
Defined at line 33 of file ../../src/media/audio/lib/processing/channel_strip.h
void ChannelStrip (ChannelStrip && other)
Defined at line 34 of file ../../src/media/audio/lib/processing/channel_strip.h
ChannelStrip & operator= (ChannelStrip && other)
Defined at line 35 of file ../../src/media/audio/lib/processing/channel_strip.h
std::string ToString (const ChannelStrip & channel_strip)
Logs the contents of the channel strip, channel by channel.
Used for debugging purposes only.
Defined at line 39 of file ../../src/media/audio/lib/processing/channel_strip.h
void Clear ()
Zeroes out all channels.
Defined at line 57 of file ../../src/media/audio/lib/processing/channel_strip.h
void ShiftBy (size_t shift_by)
Shifts the audio data in all channels, by `shift_by` amount.
Defined at line 60 of file ../../src/media/audio/lib/processing/channel_strip.h
cpp20::span<float> operator[] (size_t channel)
Returns a span containing audio data for a given `channel`.
Defined at line 71 of file ../../src/media/audio/lib/processing/channel_strip.h
cpp20::span<const float> operator[] (size_t channel)
Defined at line 74 of file ../../src/media/audio/lib/processing/channel_strip.h
int64_t channel_count ()
Returns the number of channels.
Defined at line 79 of file ../../src/media/audio/lib/processing/channel_strip.h
int64_t frame_count ()
Returns the number of frames (i.e., length of each channel).
Defined at line 82 of file ../../src/media/audio/lib/processing/channel_strip.h