I am trying to integrate libspotify
on Android. It looks like the raw PCM data I obtained from android is different from the raw PCM I obtained on ubuntu.
For testing purposes I tried to store the PCM file and played it using audacity. In Ubuntu it is perfect, but in Android the play is choppy and slow.
I tried printing the first 10 int16_t of the data, it looks completely different:
Android - -457 463 62 635 492 742 968 246 909 179
Ubuntu - -944 960 128 1318 1020 1538 2008 510 1885 353
Rough analysis shows each int16_t value is 2.7 times more than what I get in Android.
My question is how to obtain the same PCM data that I obtain in Ubuntu in Android also.