Does Processing only load audio files at 44.1KHz? I have an mp3 at 48KHz loaded to my sketch. I set the Sound object to 48KHz. My sound card is at 48KHz. But the file is loading at 44.1 and the slow playback confirms.
import processing.sound.*;
Sound sound;
SoundFile file;
void setup()
{
sound = new Sound(this);
sound.sampleRate(48000);
file = new SoundFile(this, "Feel My Body feat. Xav A.mp3");
file.play();
println(file.sampleRate());
}
void draw()
{
}
Printed to the console:
44100