Nick: KuBo[Z] Oggetto: re:Ma stasera Data: 22/7/2008 21.29.12 Visite: 80
credo che scriverò qualcosa del genere:
AudioInputStream targetStream = null; if (!AudioSystem.isConversionSupported(targetEncoding, sourceFormat)) { if (DEBUG && !quiet) { System.out.println("Direct conversion not possible."); System.out.println("Trying with intermediate PCM format."); } AudioFormat intermediateFormat = new AudioFormat( AudioFormat.Encoding.PCM_SIGNED, sourceFormat.getSampleRate(), 16, sourceFormat.getChannels(), 2 * sourceFormat.getChannels(), // frameSize sourceFormat.getSampleRate(), false); if (AudioSystem.isConversionSupported(intermediateFormat, sourceFormat)) { // intermediate conversion is supported sourceStream = AudioSystem.getAudioInputStream(intermediateFormat, sourceStream); } } *bRiC|oLa* : aaUHauhAUHauhaHAHhaHUAhuaHUAhuaUHAuhaUHAuhaHUAuhaHHAhuahuahua |