I thought I had seen that code snippet before, it was also quoted as a bad example in a more recent article on the Dolphin dev blog regarding the Zelda HLE (this one is about the AX HLE): <a href="https:&#x2F;&#x2F;dolphin-emu.org&#x2F;blog&#x2F;2015&#x2F;08&#x2F;19&#x2F;new-era-hle-audio&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dolphin-emu.org&#x2F;blog&#x2F;2015&#x2F;08&#x2F;19&#x2F;new-era-hle-audio&#x2F;</a>