MCPcopy Create free account
hub / github.com/BambooTracker/BambooTracker / loadModule

Method loadModule

BambooTracker/bamboo_tracker.cpp:2098–2115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2096}
2097
2098void BambooTracker::loadModule(io::BinaryContainer& container)
2099{
2100 makeNewModule(false);
2101
2102 std::exception_ptr ep;
2103 try {
2104 io::ModuleIO::getInstance().loadModule(container, mod_, instMan_);
2105 }
2106 catch (...) {
2107 ep = std::current_exception();
2108 }
2109
2110 tickCounter_->setInterruptRate(mod_->getTickFrequency());
2111 setCurrentSongNumber(0);
2112 clearCommandHistory();
2113
2114 if (ep) std::rethrow_exception(ep);
2115}
2116
2117void BambooTracker::saveModule(io::BinaryContainer& container)
2118{

Callers

nothing calls this directly

Calls 2

setInterruptRateMethod · 0.80
getTickFrequencyMethod · 0.80

Tested by

no test coverage detected