auto PSG::Tone::run() -> void { if(--counter) return; counter = pitch; output ^= 1; } auto PSG::Tone::power() -> void { volume = ~0; counter = 0; pitch = 0; output = 0; left = 1; right = 1; }