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

Method MakeChannelMap

Source/SoundChipService.cpp:90–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90std::unique_ptr<CChannelMap> CSoundChipService::MakeChannelMap(CSoundChipSet chips, unsigned n163chs) const {
91 Assert(n163chs <= MAX_CHANNELS_N163 && (chips.ContainsChip(sound_chip_t::N163) == (n163chs != 0)));
92
93 auto map = std::make_unique<CChannelMap>(chips, n163chs); // // //
94
95 ForeachTrack([&] (stChannelID id) {
96 if (map->SupportsChannel(id))
97 map->GetChannelOrder().AddChannel(id);
98 });
99
100 return map;
101}
102
103std::unique_ptr<CSoundChip> CSoundChipService::MakeSoundChipDriver(sound_chip_t chip, CMixer &mixer, std::uint8_t nInstance) const {
104 return GetType(chip).MakeSoundDriver(mixer, nInstance);

Callers 8

mainFunction · 0.80
OnBnClickedOkMethod · 0.80
CreateEmptyMethod · 0.80
OnBnClickedOkMethod · 0.80
OpenDocumentOldMethod · 0.80
LoadParamsMethod · 0.80
ImportFileMethod · 0.80
ExportFileMethod · 0.80

Calls 3

ContainsChipMethod · 0.80
SupportsChannelMethod · 0.80
AddChannelMethod · 0.80

Tested by 1

mainFunction · 0.64