public void transferData(PushSourceStream stream) { transferHandler.transferData( PushBufferStreamAdapter.this); } });
/** * Implements BufferTransferHandler#transferData(PushBufferStream). Puts in * place the essence of the StreamSubstituteBufferTransferHandler class * which is to report to the transferHandler from the same PushBufferStream * to which it was set so that the substitute can gain full control. * * @param stream the <tt>PushBufferStream</tt> to transfer */ public void transferData(PushBufferStream stream) { transferHandler.transferData( (stream == this.stream) ? substitute : stream); } }
/** * Sets the collection of audio sample sets to be mixed in the sense of * audio mixing by this stream when data is read from it. Triggers a push to * the clients of this stream. * * @param inSamples the collection of audio sample sets to be mixed by * this stream when data is read from it * @param maxInSampleCount the maximum number of per-stream audio samples * available through <tt>inSamples</tt> * @param timeStamp the time stamp of <tt>inSamples</tt> to be reported * in the specified <tt>Buffer</tt> when data is read from this instance */ void setInSamples(short[][] inSamples, int maxInSampleCount, long timeStamp) { synchronized (readSyncRoot) { this.inSamples = inSamples; this.maxInSampleCount = maxInSampleCount; this.timeStamp = timeStamp; } BufferTransferHandler transferHandler = this.transferHandler; if (transferHandler != null) transferHandler.transferData(this); }
/** * Notifies this instance that audio data has been made available in * {@link #capture}. */ private void transferCaptureData() { if (aec) { synchronized (this) { notifyAll(); } } else { BufferTransferHandler transferHandler = this.transferHandler; if (transferHandler != null) transferHandler.transferData(this); } }
transferHandler.transferData(this);
transferHandler.transferData(this);
transferHandler.transferData(this);
transferHandler.transferData(this);
transferHandler.transferData(this);
transferHandler.transferData(this);
transferHandler.transferData(null);
transferHandler.transferData(this);
transferHandler.transferData(this);
transferHandler.transferData(this);