AudioTrack Android playing sounds from raw folder
问题 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 lot of exceptions. This is what I have now, but when I press the button, no sound plays. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Button buttonPlayAudioTrack = (Button) findViewById(R.id.buttonPlayAudioTrack); buttonPlayAudioTrack.setOnClickListener(this); int minBufferSize = AudioTrack