public bool hasMoreElements() { if (ConcatAudioFileDataSource.access_000(this.this_0) == null) { ConcatAudioFileDataSource.access_002(this.this_0, this.readNext()); } return(ConcatAudioFileDataSource.access_000(this.this_0) != null); }
public AudioInputStream nextElement() { AudioInputStream result = null; if (this.lastFile == null) { ConcatAudioFileDataSource.access_002(this.this_0, this.readNext()); } if (ConcatAudioFileDataSource.access_000(this.this_0) != null) { try { try { AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(ConcatAudioFileDataSource.access_000(this.this_0)); AudioFormat format = audioInputStream.getFormat(); if (!ConcatAudioFileDataSource.access_100(this.this_0)) { ConcatAudioFileDataSource.access_102(this.this_0, true); this.this_0.bigEndian = format.isBigEndian(); this.this_0.sampleRate = ByteCodeHelper.f2i(format.getSampleRate()); this.this_0.signedData = format.getEncoding().equals(AudioFormat.Encoding.PCM_SIGNED); this.this_0.bytesPerValue = format.getSampleSizeInBits() / 8; } if (format.getSampleRate() != (float)this.this_0.sampleRate || format.getChannels() != 1 || format.isBigEndian() != this.this_0.bigEndian) { string text = "format mismatch for subsequent files"; throw new RuntimeException(text); } result = audioInputStream; ConcatAudioFileDataSource.access_200(this.this_0).finer(new StringBuilder().append("Strating processing of '").append(this.lastFile.getFile()).append('\'').toString()); Iterator iterator = this.this_0.__fileListeners.iterator(); while (iterator.hasNext()) { AudioFileProcessListener audioFileProcessListener = (AudioFileProcessListener)iterator.next(); AudioFileProcessListener audioFileProcessListener2 = audioFileProcessListener; audioFileProcessListener2.audioFileProcStarted(new File(ConcatAudioFileDataSource.access_000(this.this_0).getFile())); } this.lastFile = ConcatAudioFileDataSource.access_000(this.this_0); ConcatAudioFileDataSource.access_002(this.this_0, null); } catch (IOException ex) { Throwable.instancehelper_printStackTrace(ex); throw new Error(new StringBuilder().append("Cannot convert ").append(ConcatAudioFileDataSource.access_000(this.this_0)).append(" to a FileInputStream").toString()); } } catch (UnsupportedAudioFileException ex3) { Throwable.instancehelper_printStackTrace(ex3); } return(result); } return(result); }