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

Method Release

Source/NoteQueue.cpp:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98stChannelID CNoteChannelQueue::Release(int Note, stChannelID Channel)
99{
100 auto it = m_iNoteState.find(Note);
101 if (it != m_iNoteState.end()) {
102 if (it->second == note_state_t::HOLD)
103 it->second = note_state_t::RELEASE;
104 for (int i = 0; i < m_iChannelCount; ++i)
105 if (m_iCurrentNote[i] == (unsigned)Note)
106 return m_iChannelMapID[i];
107 }
108 return { };
109}
110
111stChannelID CNoteChannelQueue::Cut(int Note, stChannelID Channel)
112{

Callers 3

SetupDeviceMethod · 0.45
CloseDeviceMethod · 0.45
~CDSoundChannelMethod · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected