![]() |
VISR
0.11.6
Versatile Interactive Scene Renderer
|
#include <audio_input.hpp>
Public Member Functions | |
AudioInputT (char const *name, Component &container, std::size_t width=0) | |
virtual | ~AudioInputT () override=default |
DataType const * | data () const |
DataType const * | at (std::size_t idx) const |
DataType const * | operator[] (std::size_t idx) const |
template<class OutputIterator > | |
OutputIterator | getChannelPointers (OutputIterator outIt) |
![]() | |
AudioInputBase (char const *name, Component &container, AudioSampleType::Id typeId, std::size_t width) | |
virtual | ~AudioInputBase () override |
![]() | |
AudioPortBase (char const *name, Component &container, AudioSampleType::Id sampleType, PortBase::Direction direction) | |
AudioPortBase (char const *name, Component &container, AudioSampleType::Id sampleType, PortBase::Direction direction, std::size_t width) | |
virtual | ~AudioPortBase () |
void | setWidth (std::size_t newWidth) |
std::size_t | width () const noexcept |
std::size_t | alignmentBytes () noexcept |
std::size_t | alignmentSamples () noexcept |
std::size_t | channelStrideSamples () const noexcept |
std::size_t | channelStrideBytes () const noexcept |
AudioSampleType::Id | sampleType () const noexcept |
std::size_t | sampleSize () const noexcept |
impl::AudioPortBaseImplementation & | implementation () |
impl::AudioPortBaseImplementation const & | implementation () const |
Additional Inherited Members | |
![]() | |
void * | basePointer () |
void const * | basePointer () const |
Class template for concrete audio inputs holding samples of a specific type.
DataType | The sample type used by this audio port type. |
|
inline |
Constructor, construct an audio input port of a specific sample type.
name | The name of the input port. Zer-terminated character array that must be unique among the audio ports of the containing components. |
container | The component to be holding this audio port |
width | The port width, i.e., number of single audio signals, represented by this port. Optional parameter, default value 0. |
|
overridevirtualdefault |
Destructor (virtual)
|
inline |
Return the pointer to element 0 of the idx
- th channel of the audio port, with checking
idx | The zero-offset index of the requested audio channel. |
std::out_of_range | if idx exceeds the admissible channel indices, i.e., idx >= width() |
|
inline |
Return the base pointer of the input sample. This is the pointer to the first (index 0) channel signal.
|
inline |
Write the channel pointers of all contained elements to an output iterator. The container that is pointed to by outIt
must provide space for at least width()
elements.
OutputIterator | a type fulfilling the OutputIterator concept that accepts assignement of DataType const * values. |
outIt | the output iterator to be written to. |
|
inline |
Return the pointer to element 0 of the idx
- th channel of the audio port, unchecked version. If the index idx
exceeds the admissible range, the result is undefined.
idx | The zero-offset index of the requested audio channel. |