Skip to content

πŸŽ› πŸ”Š A Python library for audio.

Make Windows Media last.

Peter Sobot89ba6e98d9e2
diff --git a/pedalboard/io/AudioFile.h b/pedalboard/io/AudioFile.h
index 0400ac4..3afa49d 100644
--- a/pedalboard/io/AudioFile.h
+++ b/pedalboard/io/AudioFile.h
@@ -40,10 +40,6 @@ void registerPedalboardAudioFormats(juce::AudioFormatManager &manager,
manager.registerFormat(new juce::OggVorbisAudioFormat(), false);
#endif
-#if JUCE_USE_WINDOWS_MEDIA_FORMAT
- manager.registerFormat(new juce::WindowsMediaAudioFormat(), false);
-#endif
-
if (forWriting) {
// Prefer our own custom MP3 format (which only writes, doesn't read) over
// PatchedMP3AudioFormat (which only reads, doesn't write)
@@ -54,8 +50,12 @@ void registerPedalboardAudioFormats(juce::AudioFormatManager &manager,
manager.registerFormat(new juce::CoreAudioFormat(), false);
#endif
}
+
+#if JUCE_USE_WINDOWS_MEDIA_FORMAT
+ manager.registerFormat(new juce::WindowsMediaAudioFormat(), false);
+#endif
}
class AudioFile {};
-} // namespace Pedalboard
\ No newline at end of file
+} // namespace Pedalboard