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

Method GetChannelIndex

libraries/lib-channel/Channel.cpp:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23Channel::~Channel() = default;
24
25size_t Channel::GetChannelIndex() const
26{
27 auto &group = DoGetChannelGroup();
28 int index = -1;
29 for (size_t ii = 0, nn = group.NChannels(); ii < nn; ++ii)
30 if (group.GetChannel(ii).get() == this) {
31 index = ii;
32 break;
33 }
34 assert(index >= 0);
35 return index;
36}
37
38const ChannelGroup &Channel::GetChannelGroup() const
39{

Callers 12

MixAndRenderFunction · 0.80
GetFloatAtTimeMethod · 0.80
PendingTracks.cppFile · 0.80
DrawClipSpectrumFunction · 0.80
HitTestMethod · 0.80
GetSpectrogramMethod · 0.80
DrawWaveformFunction · 0.80
GetMinimizedHeightMethod · 0.80
ChannelView.cppFile · 0.80
FindMethod · 0.80

Calls 3

GetChannelMethod · 0.80
NChannelsMethod · 0.45
getMethod · 0.45

Tested by 2

DrawClipSpectrumFunction · 0.64
GetSpectrogramMethod · 0.64