 		 * Called when decoding has finished.
 		 */
 		private function decodingCompleteHandler(event:*):void {
-			trace("ILBCCodec.decodingCompleteHandler(event):", event);
-			
 			decodedData.position = 0;
-			dispatchEvent( new ILBCEvent(ILBCEvent.DECODING_COMPLETE, decodedData, getElapsedTime()) );
+			dispatchEvent( new ILBCEvent(ILBCEvent.DECODING_COMPLETE, decodedData, getElapsedTime(), isLastDecoding) );
 		}
 
 		

			
			start();
			
			ilbcCodec.encode(encodingCompleteHandler, encodingProgressHandler, decodedData, encodedData, decodedData.length, 10);
		}
		
		/**
		 * Decodes an iLBC encoded audio stream (16 bit 8kHz).
		 */
		public function decode(data:ByteArray):void {
			trace("ILBCCodec.decode(data):", data.length);
			
			encodedData = data;
			decodedData = new ByteArray();

		 */
		private function start() : void {
			initTime = getTimer();
		}
		
		/**
