/** * {@inheritDoc} * @see org.openimaj.audio.AudioStream#getLength() */ @Override public long getLength() { return this.stream.getLength() * nLoops; } }
/** * {@inheritDoc} * * @see org.openimaj.audio.AudioStream#getLength() */ @Override public long getLength() { return this.stream.getLength(); } }
/** * {@inheritDoc} * * @see org.openimaj.audio.AudioStream#getLength() */ @Override public long getLength() { return this.stream.getLength(); } }
/** * {@inheritDoc} * @see org.openimaj.audio.AudioStream#getLength() */ @Override public long getLength() { return this.stream.getLength() * nLoops; } }
/** * For live streams, returns the length of the buffered audio, * otherwise returns the length of the original stream. * * @see org.openimaj.audio.AudioStream#getLength() */ @Override public long getLength() { if( this.stream.getLength() == -1 ) return this.bufferLength; else return this.stream.getLength(); } }
/** * For live streams, returns the length of the buffered audio, * otherwise returns the length of the original stream. * * @see org.openimaj.audio.AudioStream#getLength() */ @Override public long getLength() { if( this.stream.getLength() == -1 ) return this.bufferLength; else return this.stream.getLength(); } }
this.length = this.data.getLength();