![]() |
VISR
0.11.6
Versatile Interactive Scene Renderer
|
#include <audio_output.hpp>
Public Member Functions | |
AudioOutputT (char const *name, Component &container, std::size_t width=0) | |
virtual | ~AudioOutputT () override=default |
DataType * | data () |
DataType * | at (std::size_t idx) |
DataType * | operator[] (std::size_t idx) |
template<class OutputIterator > | |
OutputIterator | getChannelPointers (OutputIterator outIt) |
![]() | |
AudioOutputBase (char const *name, Component &container, AudioSampleType::Id typeId, std::size_t width) | |
virtual | ~AudioOutputBase () 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 output port types holding a specific sample type.
DataType | The sample data type used by this port. |
|
inline |
Constructor.
name | The name of the port as a null-terminated character array. Must be unique among the audio ports of the containing component. |
container | The containing component (composite or atomic). |
width | The width, i.e., number of elementary audio signals provided by this class. Optional parameter, default is zero. The width can be set or modified during the initialisation phase of the containing component. |
|
overridevirtualdefault |
Destructor (virtual)
|
inline |
Return the first sample of a given signal, checked version.
idx | The signal index (zero-offset). |
std::out_of_range | If idx exceeds the width of the port. |
|
inline |
Return a non-constant pointer to the first sample of the first (technically zeroth) signal of this port. Samples for each channel are stored contiguously, and the pointer addresses of subsequent audio signals can be calculated by adding multiples of channelStrideSamples()
to the data()
pointer.
|
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 first sample of a given signal, unchecked version.
idx | The signal index (zero-offset). |