| 256 | } |
| 257 | |
| 258 | std::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 |
nothing calls this directly
no test coverage detected