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

Function IsInstrumentCompatible

Source/TrackerChannel.cpp:100–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100bool IsInstrumentCompatible(sound_chip_t Chip, inst_type_t Type) { // // //
101 switch (Chip) {
102 case sound_chip_t::APU:
103 case sound_chip_t::MMC5:
104 case sound_chip_t::N163: // // //
105 case sound_chip_t::S5B:
106 case sound_chip_t::VRC6:
107 case sound_chip_t::FDS:
108 switch (Type) {
109 case INST_2A03:
110 case INST_VRC6:
111 case INST_N163:
112 case INST_S5B:
113 case INST_FDS:
114 return true;
115 default: return false;
116 }
117 case sound_chip_t::VRC7:
118 return Type == INST_VRC7;
119 }
120
121 return false;
122}
123
124bool IsEffectCompatible(stChannelID ch, stEffectCommand cmd) { // // //
125 switch (cmd.fx) {

Callers 2

CompileDataMethod · 0.85
DrawCellMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected