/** * {@inheritDoc} */ @Override public AudioTimecode clone() { return new AudioTimecode( milliseconds ); } }
/** * {@inheritDoc} */ @Override public AudioTimecode clone() { return new AudioTimecode( milliseconds ); } }
/** * Play the given stream to a specific device. * * @param a * The audio stream to play. * @param deviceName * The device to play the audio to. */ public AudioPlayer(final AudioStream a, final String deviceName) { this.stream = a; this.deviceName = deviceName; this.setTimecodeObject(new AudioTimecode(0)); }
/** * Play the given stream to a specific device. * * @param a * The audio stream to play. * @param deviceName * The device to play the audio to. */ public AudioPlayer(final AudioStream a, final String deviceName) { this.stream = a; this.deviceName = deviceName; this.setTimecodeObject(new AudioTimecode(0)); }
/** * {@inheritDoc} */ @Override public SampleChunk clone() { return new SampleChunk(this.samples.clone(), this.format.clone(), this.startTimecode == null ? new AudioTimecode( 0) : this.startTimecode.clone()); }
/** * {@inheritDoc} */ @Override public SampleChunk clone() { return new SampleChunk(this.samples.clone(), this.format.clone(), this.startTimecode == null ? new AudioTimecode( 0) : this.startTimecode.clone()); }
/** * Default constructor that takes the format for the samples. All streams * added to this mixer must conform to that sample format. * * @param af * The {@link AudioFormat} */ public AudioMixer(final AudioFormat af) { this.setFormat(af); // Create the current sample chunk that we'll reuse this.currentSample = SampleBufferFactory.createSampleBuffer(af, this.bufferSize); this.timecode = new AudioTimecode(0); }
/** * Default constructor that takes the format for the samples. All streams * added to this mixer must conform to that sample format. * * @param af * The {@link AudioFormat} */ public AudioMixer(final AudioFormat af) { this.setFormat(af); // Create the current sample chunk that we'll reuse this.currentSample = SampleBufferFactory.createSampleBuffer(af, this.bufferSize); this.timecode = new AudioTimecode(0); }
s.setStartTimecode(new AudioTimecode( this.getStartTimecode().getTimecodeInMilliseconds() + (long) (start / samplesPerChannelPerMillisec)));
s.setStartTimecode(new AudioTimecode( this.getStartTimecode().getTimecodeInMilliseconds() + (long) (start / samplesPerChannelPerMillisec)));