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

Method GetCustomEffectString

Source/Channels2A03.cpp:258–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258std::string C2A03Square::GetCustomEffectString() const // // //
259{
260 std::string str;
261
262 if (!m_bEnvelopeLoop)
263 str += MakeCommandString({effect_t::VOLUME, static_cast<uint8_t>(m_iLengthCounter)});
264 if (!m_bEnvelopeLoop || m_bHardwareEnvelope)
265 str += MakeCommandString({effect_t::VOLUME, static_cast<uint8_t>(0xE0 + !m_bEnvelopeLoop * 2 + m_bHardwareEnvelope)});
266
267 return str;
268}
269
270///////////////////////////////////////////////////////////////////////////////////////////////////////////
271// Triangle

Callers

nothing calls this directly

Calls 1

MakeCommandStringFunction · 0.85

Tested by

no test coverage detected