Q re BitCrusher in OS 3.1.2

Just wanted to confirm the behavior I think I see:

  • If your devices is on 3.1.2...
  • But the GAME was built on 2.x...
  • Then the 3.x BitCrusher changes are not applied to the game...
  • So BitCrusher still sounds the same as always with same old code.
  • (Until you build your game in the 3.x SDK, and then your BitCrusher code/values need to change, as has been documented.)

Is that correct? Or am I just lucky and the old build of my game just happens to sound OK in 3.x despite the changes?

TIA!

There's no version check in the code to switch the behavior, the change was purely in the API. As long as your code is still using the old functions (setAmount and setUndersampling) it should sound the same. If you switch to the new functions (setDepth and setDownsampling) you'll want to check how it sounds. Here's the mapping between amount and depth, and undersampling and downsampling:

amount = powf(depth, 0.16);
depth = powf(amount, 6.25);
undersampling = powf(downsampling, 0.03);
downsampling = powf(undersampling, 33.3);

Ah! Different function names. That escaped me. Thanks!

And that mapping math is a big help too.