MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / StopChannel

Method StopChannel

Source/NoteQueue.cpp:129–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129std::vector<stChannelID> CNoteChannelQueue::StopChannel(stChannelID Channel)
130{
131 std::unordered_map<int, stChannelID> m {m_iNoteChannel};
132 std::vector<stChannelID> v;
133
134 for (auto [note, ch] : m) if (ch == Channel) {
135 Cut(note, ch);
136 v.push_back(ch);
137 }
138
139 return v;
140}
141
142void CNoteChannelQueue::StopAll()
143{

Callers 1

HaltNoteSingleMethod · 0.80

Calls 2

endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected