AudioTrack Android playing sounds from raw folder
Everything is fine with your code, You just need to change
while((i = inputStream.read()) != -1)
to
while((i = inputStream.read(buffer)) != -1)
Everything is fine with your code, You just need to change
while((i = inputStream.read()) != -1)
to
while((i = inputStream.read(buffer)) != -1)