registerBasicFormat() mp3, mp4?


#1

Hi everybody !
In the Class AudioFormatManager, the function registerBasicFormat() says: “Currently, this will add WAV and AIFF to the list.”

But If I try to open an mp3 or mp4 it works !
Does this function also add MP3 and MP4 to the list now or do I miss something ?
I’m currently doing this tutorial : https://www.juce.com/doc/tutorial_playing_sound_files

Thanks :slight_smile:


#2

Sure the comment isn’t all encompassing, but don’t forget that you’re able to view the source code to find answers!

What platform are you on? It’s possible the project you’re running has CoreAudioFormat (macOS) and the WindowsMediaFormat enabled, which would allow natively loading these files and playing back their audio content.