/** * Gets the duration of each one of the output streams produced by this * <tt>AudioMixer</tt>. * * @return the duration of each one of the output streams produced by this * <tt>AudioMixer</tt> */ Time getDuration() { return ((DataSource) captureDevice).getDuration(); }
/** * Implements {@link DataSource#getDuration()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePullBufferDataSource#getDuration()} because * the wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet * it still needs to report the duration. * * @return the duration of the wrapped <tt>DataSource</tt> */ @Override public Time getDuration() { return dataSource.getDuration(); }
/** * Implements {@link DataSource#getDuration()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePushBufferDataSource#getDuration()} because * the wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet * it still needs to report the duration. * * @return the duration of the wrapped <tt>DataSource</tt> */ @Override public Time getDuration() { return dataSource.getDuration(); }
/** * Implements {@link DataSource#getDuration()}. Delegates to the actual * output of the transcoding. * * @return a <tt>Time</tt> value which describes the duration of the content * made available by this instance */ @Override public synchronized Time getDuration() { return (outputDataSource == null) ? DURATION_UNKNOWN : outputDataSource.getDuration(); }
/** * Implements {@link DataSource#getDuration()}. Delegates to the wrapped * <tt>CaptureDevice</tt> if it implements <tt>DataSource</tt>; otherwise, * returns {@link DataSource#DURATION_UNKNOWN}. * * @return the duration of the wrapped <tt>CaptureDevice</tt> as returned by * its implementation of <tt>DataSource</tt> if any; otherwise, returns * <tt>DataSource#DURATION_UNKNOWN</tt> */ @Override public Time getDuration() { if (captureDevice instanceof DataSource) return ((DataSource) captureDevice).getDuration(); return DataSource.DURATION_UNKNOWN; }
/** * Implements {@link DataSource#getDuration()}. Delegates to the wrapped * <tt>CaptureDevice</tt> if it implements <tt>DataSource</tt>; otherwise, * returns {@link DataSource#DURATION_UNKNOWN}. * * @return the duration of the wrapped <tt>CaptureDevice</tt> as returned by * its implementation of <tt>DataSource</tt> if any; otherwise, returns * <tt>DataSource#DURATION_UNKNOWN</tt> */ @Override public Time getDuration() { if (captureDevice instanceof DataSource) return ((DataSource) captureDevice).getDuration(); return DataSource.DURATION_UNKNOWN; }