Java tutorial
//package com.java2s; import android.media.AudioTrack; import android.util.Log; public class Main { private static AudioTrack m_out_trk = null; private static final String TAG = "AudioUtil"; public static void exitAudioTrack() { if (m_out_trk != null) { m_out_trk.stop(); m_out_trk.release(); m_out_trk = null; Log.d(TAG, "### audio track release."); } } }