Find the PCM data in the WAV and write it to an AudioTrack that is configured to play the PCM data (channels, rate, etc).
Doug On Nov 1, 8:22 am, Joey Studwell <[email protected]> wrote: > I've been reading quite a bit and I can't find a great answer, but it > seems like what I want to do should be pretty simple. > > I have a WAV stored as a byte array, read from a database. I want to > play it when a button is presssed. > > Is there a simple way to do that? > > This article seems promising, but it still seems like more work than > should be necessary. > http://mindtherobot.com/blog/580/android-audio-play-a-wav-file-on-an-... > > My temporary solution is to dump the byte array to disk and use > MediaPlayer to play the resulting file. But that seems silly as well. > > Thanks, > Joey -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

