Android.media.AudioTrack
lastmod 2026-11-10created 2016-06-093 edits
android.media.AudioTrack is a class for playing PCM audio data directly on Android. You create it by specifying the sampling rate, channel configuration, sample format, and buffer size, then push data into the buffer with write to output it to the speaker; you can choose between streaming mode and static mode. Unlike MediaPlayer, which plays compressed files, it is used to output directly synthesized sound or decoded results at a low level.