/** * Create a new sample chunk using the given samples and the given audio * format. * * @param samples * The samples to initialise with * @param af * The audio format of the samples */ public SampleChunk(final byte[] samples, final AudioFormat af) { this.setSamples(samples); super.format = af; }
/** * Create a new sample chunk using the given samples and the given audio * format. * * @param samples * The samples to initialise with * @param af * The audio format of the samples */ public SampleChunk(final byte[] samples, final AudioFormat af) { this.setSamples(samples); super.format = af; }
/** * Create a new sample chunk using the given samples and the given audio * format. * * @param samples * The samples to initialise with * @param af * The audio format of the samples * @param tc * The audio timecode of these samples */ public SampleChunk(final byte[] samples, final AudioFormat af, final AudioTimecode tc) { this.setSamples(samples); this.startTimecode = tc; super.format = af; }
/** * Create a new sample chunk using the given samples and the given audio * format. * * @param samples * The samples to initialise with * @param af * The audio format of the samples * @param tc * The audio timecode of these samples */ public SampleChunk(final byte[] samples, final AudioFormat af, final AudioTimecode tc) { this.setSamples(samples); this.startTimecode = tc; super.format = af; }
this.currentSample.setSamples(data.clone()); this.currentSample.notify();
this.currentSample.setSamples(data.clone()); this.currentSample.notify();
s.setSamples(newSamples);
s.setSamples(newSamples);
final byte[] rawBytes = aSamples.getData(). getByteArray(0, aSamples.getSize()); XuggleAudio.this.currentSamples.setSamples(rawBytes);
final byte[] rawBytes = aSamples.getData(). getByteArray(0, aSamples.getSize()); XuggleAudio.this.currentSamples.setSamples(rawBytes);