diff --git a/ATL/AudioData/AudioFileIO.cs b/ATL/AudioData/AudioFileIO.cs index 4479b860..4b247c36 100644 --- a/ATL/AudioData/AudioFileIO.cs +++ b/ATL/AudioData/AudioFileIO.cs @@ -74,9 +74,10 @@ public AudioFileIO(Stream stream, string mimeType, bool readEmbeddedPictures, bo bool found = false; while (!found && alternate < AudioDataIOFactory.MAX_ALTERNATES) { - audioData = mimeType.Length > 0 ? AudioDataIOFactory.GetInstance().GetFromMimeType(mimeType, "In-memory", alternate++) : AudioDataIOFactory.GetInstance().GetFromStream(stream); + audioData = mimeType.Length > 0 ? AudioDataIOFactory.GetInstance().GetFromMimeType(mimeType, "In-memory", alternate) : AudioDataIOFactory.GetInstance().GetFromStream(stream); audioManager = new AudioDataManager(audioData, stream); found = audioManager.ReadFromFile(readEmbeddedPictures, readAllMetaFrames); + alternate++; } Metadata = getAndCheckMetadata(); }