Android AudioTrack clicks at start and end of sound

后端 未结 2 1298
离开以前
离开以前 2021-01-14 07:07

I get clicks at the start and end of playing a sound (a wav from the sdcard). It must be something to do with the track buffering but I dont know the solution. Also, I creat

2条回答
  •  猫巷女王i
    2021-01-14 07:54

    Isn't it possible that you play the PCM wave file header too?

    Each PCM wave file has a small header at the beginning of the file, if you play that, you play the header bytes which could result in a click at te beginning.

提交回复
热议问题