I've noticed minor audio clipping/distortion when playing back music in the Windows simulator. This doesn't seem to occur on the macOS simulator. The clipping only seems to occur when the audio output device in Windows is set to a sample rate other than 44,100 Hz (it usually seems to default to 48,000 Hz). I've noticed the behavior both when playing a 16-bit 44.1khz .wav file through
playdate.sound.fileplayer, and when directly passing samples to
playdate->sound->addSource() in the C API.
- Unzip demo.zip, then compile the demo with
- Make sure your default audio device is set to a sample rate other than 44,100 Hz (e.g. 48,000 Hz).
- Run demo.pdx in the Simulator, then compare the result to the included .wav file. You should hear a quiet clicking or buzzing noise.
I'm on Windows 11 22H2. Let me know if you have trouble reproducing this, or have any other questions.