Code example for AudioTrack

Methods: getStateplaywrite

0
		 
			if (null == mAudio){
				Log.e(TAG," mAudio null");
				return; 
			} 
			if (mAudio.getState() != AudioTrack.STATE_INITIALIZED ){
				Log.e(TAG," mAudio STATE_INITIALIZED");
				return; 
			} 
			 
			try{ 
				mAudio.write(data, 0, len);	
				mAudio.play();
			}catch (Exception e){
				Log.e(TAG,e.toString());
			} 
	} 
	 
	/** 
	 * For C Watch Call back 
	 * @param nProcBegin