MCPcopy Create free account
hub / github.com/audacity/audacity / MonoToStereo

Method MonoToStereo

libraries/lib-wave-track/WaveTrack.cpp:1047–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045}
1046
1047auto WaveTrack::MonoToStereo() -> Holder
1048{
1049 assert(!GetOwner());
1050 MakeMono();
1051
1052 // Make temporary new mono track
1053 auto newTrack = Duplicate();
1054
1055 // Make a list
1056 auto result = TrackList::Temporary(nullptr, shared_from_this());
1057 result->Add(newTrack);
1058 // Destroy the temporary track, widening this track to stereo
1059 ZipClips();
1060
1061 return std::static_pointer_cast<WaveTrack>(result->DetachFirst());
1062}
1063
1064auto WaveTrack::SplitChannels() -> std::vector<Holder>
1065{

Callers 3

ProcessOneMethod · 0.80
OnPasteFunction · 0.80
pasteFromClipboardMethod · 0.80

Calls 4

GetOwnerFunction · 0.85
DuplicateFunction · 0.85
DetachFirstMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected