sourcePlayer changes wav samplerate Bug

Im reading a wav file using all this clases:

   AudioDeviceManager deviceManager; 
    AudioFormatManager formatManager;
    ScopedPointer<AudioFormatReaderSource> readerSource;
    AudioTransportSource transportSource;
    AudioSourcePlayer sourcePlayer;

but when I play the file it sounds out of pitch, so I guess it's the samplerate that is wrong. I noticed this playing a c note sampled form a piano, is this a bug? or I have to do some tweaking to the hardware or something?


Pd. the sample sounds "right" in every audio player i have. 


I´ve noticed that the sample rate is set to 48000.000000000000 instead of 44100.000000000000, that is the actual sample rate of the file