Reading m4a files on Windows

Hello guys !

I want to read m4a files on Windows. From the information I got on the forum, for previous versions of JUCE, I have seen that to do it I need to use the WindowsMediaAudioFormat. I have modified the code in formatManager->createReaderFor() to ignore the default registered formats to do so, but even this way, I'm not able to get a valid result.

I have just tried to read a m4a file with my Windows Media Player on Windows 8.1, and it works there, so I don't know what to do otherwise.

Someone has an idea ?

Thanks in advance !

Ivan

Hi Ivan. Curious if you managed to make any headway with m4a on Windows?

Stephen

Hello !

If I remember well, I think I wasn’t able to read m4a files in Windows unfortunately :frowning:

OK thanks Ivan!

Hi,

Has there been any development on this? I’m trying to load an .m4a or .mp4 file using WindowsMediaAudioFormat but createReaderFor() fails.

I have:

  • Enabled WindowsMediaAudioFormat in the Projucer.

  • Verified that it is a registered format in AudioFormatManager.

  • Confirmed that the file is an AAC .m4a.

Looking at the JUCE source, it seems that .m4a and .mp4 are not included in the extension list:

static const char* const extensions[] = { ".mp3", ".wmv", ".asf", ".wm", ".wma", nullptr };
// juce_WindowsMediaAudioFormat.cpp (line 136)

Does this mean there is still no way to load .m4a or .mp4 audio files in JUCE on Windows?

Thanks!

Bump!! Can anyone from juce confirm whether this is possible to load an .m4a or mp4 audio file in on Windows?