Code example for AudioTrack

Methods: write

0
			if(err==AudioRecord.ERROR_INVALID_OPERATION){
				Log.e("OF","AudioRecord error ERROR_INVALID_OPERATION");
				return; 
			} 
			if(err==AudioRecord.ERROR_BAD_VALUE){
				Log.e("OF","AudioRecord error ERROR_BAD_VALUE");
				return; 
			} 
			if(err==0){
				Log.e("OF","AudioRecord error 0 samples read");
				return; 
			} 
			samplesRead += err;
		} 
		if(samplesRead>0) while(audioIn(inBuffer, numIns, samplesRead/numIns)==1);
	} 
 
	public void onMarkerReached(AudioTrack track) {
		// TODO Auto-generated method stub 
		 
	}