<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Im trying to play audio files using libav, libswresample, and libao.</p>
<p>It mostly works, except for some mp3 files with a xing header there is a click sound at the very start. It doesnt happen for all such files though, if i strip a file's xing and id3v2 metadata and then add a xing header, theres no more click sound (i dont know why, the only difference is theres less metadata and the start_time/start_pts are less). I think it should be reproducable by converting something like a song with typical amount (for a song) of metadata into mp3.</p>
<p>my code is here: <a href="https://0x0.st/H_m4.c">https://0x0.st/H_m4.c</a></p>
<p>sorry if its a mess, its very difficult to find useful documentation on how to do this stuff.</p>
</body></html>