Is it possible to play wav files with AudioTrack from the resources folder raw? It tried many ways to reference the raw files in my Android project, but I got a
AudioTrack
Everything is fine with your code, You just need to change
while((i = inputStream.read()) != -1)
to
while((i = inputStream.read(buffer)) != -1)