<div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Hello,</div><div><br></div><div>Thanks to FFMpeg, I manage to extract audio samples from an audio file, and also resample it (since my file is encoded in 44100 Hz, and my device expects 48000 Hz sound).</div><div><br></div><div>The problem is: even if the sound quality is perfect, the speed is a little bit higher than the regular speed of the music.</div><div><br></div><div>The difference is very small (small enough so you won't hear it), but you can hear it when you play the same song at the same time on a regular player (like VLC for example).</div><div><br></div><div>I think it comes from the resampling, but I don't know how to fix it.</div><div><br></div><div>Here is my code: <a href="https://gist.github.com/mregnauld/2538d98308ad57eb75cfcd36aab5099a">https://gist.github.com/mregnauld/2538d98308ad57eb75cfcd36aab5099a</a></div><div><br></div><div>How can I correct the speed of the music?</div><div><br></div><div>Thanks for your help.</div><div><br></div></div></div></div></div></div>