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

Method HandleWaveClip

modules/import-export/mod-aup/ImportAUP.cpp:1005–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1003}
1004
1005bool AUPImportFileHandle::HandleWaveClip(XMLTagHandler *&handler)
1006{
1007 struct node node = mHandlers.back();
1008
1009 if (mParentTag == WaveTrack::WaveTrack_tag)
1010 {
1011 WaveTrack *wavetrack = static_cast<WaveTrack *>(node.handler);
1012
1013 const auto pInterval = wavetrack->CreateClip();
1014 wavetrack->InsertInterval(pInterval, true, true);
1015 handler = pInterval.get();
1016 }
1017 else if (mParentTag == WaveClip::WaveClip_tag)
1018 {
1019 // Nested wave clips are cut lines
1020 WaveClip *waveclip = static_cast<WaveClip *>(node.handler);
1021
1022 handler = waveclip->HandleXMLChild(mCurrentTag);
1023 }
1024
1025 mClip = static_cast<WaveClip *>(handler);
1026 mClips.push_back(mClip);
1027
1028 return true;
1029}
1030
1031bool AUPImportFileHandle::HandleEnvelope(XMLTagHandler *&handler)
1032{

Callers

nothing calls this directly

Calls 5

CreateClipMethod · 0.80
InsertIntervalMethod · 0.80
getMethod · 0.45
HandleXMLChildMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected