Code example for AudioTrack

Methods: flush

0
        track.play();        
    }	    
 
    public void flush() 
    { 
        track.flush();
    } 
 
    public void writeSamples(byte[] samples, int length) 
    { 
        track.write( samples, 0, length);
    } 
 
}