/** * Gets the <tt>Buffer</tt> into which media data is to be read from the * <tt>SourceStream</tt> described by this instance. * * @param create the indicator which determines whether the <tt>Buffer</tt> * is to be created in case it does not exist * @return the <tt>Buffer</tt> into which media data is to be read from the * <tt>SourceStream</tt> described by this instance */ public Buffer getBuffer(boolean create) { Buffer buffer = (this.buffer == null) ? null : this.buffer.get(); if ((buffer == null) && create) { buffer = new Buffer(); setBuffer(buffer); } return buffer; }
/** * Gets the <tt>Buffer</tt> into which media data is to be read from the * input streams associated with this instance. * * @return the <tt>Buffer</tt> into which media data is to be read from * the input streams associated with this instance */ public Buffer getBuffer() { Buffer buffer = (this.buffer == null) ? null : this.buffer.get(); if (buffer == null) { buffer = new Buffer(); setBuffer(buffer); } return buffer; }
/** * {@inheritDoc} */ @Override protected void enterRunInPlayThread() { buffer = new Buffer(); bufferData = new byte[DEFAULT_BUFFER_DATA_LENGTH]; buffer.setData(bufferData); renderer = audioSystem.createRenderer(playback); }
Buffer buffer = new Buffer(); IOException readException;
resamplerBuffer = new Buffer();
else resamplerBuffer = new Buffer();