/** * 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); }