Audacity 3.2.0
Functions
anonymous_namespace{FloatVectorClip.cpp} Namespace Reference

Functions

std::vector< std::vector< float > > Duplicate (const std::vector< float > &audio, size_t numChannels)
 

Function Documentation

◆ Duplicate()

std::vector< std::vector< float > > anonymous_namespace{FloatVectorClip.cpp}::Duplicate ( const std::vector< float > &  audio,
size_t  numChannels 
)

Definition at line 25 of file FloatVectorClip.cpp.

26{
27 std::vector<std::vector<float>> duplicate;
28 for (auto i = 0u; i < numChannels; ++i)
29 duplicate.push_back(audio);
30 return duplicate;
31}
MockedAudio audio

References audio.

Referenced by WaveTrack::DuplicateWithOtherTempo(), and WaveTrack::MonoToStereo().

Here is the caller graph for this function: