Audacity 3.2.0
Static Public Member Functions | List of all members
AudioContainerHelper Class Reference

#include <AudioContainerHelper.h>

Static Public Member Functions

template<typename T = float>
static std::vector< T * > GetData (const AudioContainer &container, size_t offset=0u)
 

Detailed Description


Audacity: A Digital Audio Editor

AudioContainerHelper.h

Matthieu Hodgkinson

Definition at line 17 of file AudioContainerHelper.h.

Member Function Documentation

◆ GetData()

template<typename T = float>
static std::vector< T * > AudioContainerHelper::GetData ( const AudioContainer container,
size_t  offset = 0u 
)
inlinestatic

Definition at line 22 of file AudioContainerHelper.h.

23 {
24 std::vector<T*> chars(container.channelPointers.size());
25 for (auto i = 0u; i < container.channelPointers.size(); ++i)
26 chars[i] = reinterpret_cast<T*>(container.channelPointers[i] + offset);
27 return chars;
28 }
std::vector< float * > channelPointers

References AudioContainer::channelPointers.

Referenced by TEST_CASE().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: