/** * Updates the sample rate in the source processor's format to match the output format. * * @param ap The source processor * @param output The output format * @return The fixed source format */ private static AudioFormat getFormatSR( final AudioProcessor ap, final AudioFormat output ) { if( ap == null ) return output; final AudioFormat f = ap.getFormat().clone(); f.setSampleRateKHz( output.getSampleRateKHz() ); return f; }
/** * Updates the sample rate in the source processor's format to match the output format. * * @param ap The source processor * @param output The output format * @return The fixed source format */ private static AudioFormat getFormatSR( final AudioProcessor ap, final AudioFormat output ) { if( ap == null ) return output; final AudioFormat f = ap.getFormat().clone(); f.setSampleRateKHz( output.getSampleRateKHz() ); return f; }
XuggleAudio.this.getFormat().isBigEndian()); XuggleAudio.this.currentSamples.getFormat().setSampleRateKHz( XuggleAudio.this.getFormat().getSampleRateKHz());
XuggleAudio.this.getFormat().isBigEndian()); XuggleAudio.this.currentSamples.getFormat().setSampleRateKHz( XuggleAudio.this.getFormat().getSampleRateKHz());