Using Media Foundation for AAC decoding?

BlitzMax Forums/BlitzMax Programming/Using Media Foundation for AAC decoding?

Grisu(Posted 2017) [#1]
Hello all,

I'm looking for a way to enable my internet radio to play AAC streams.

A user pointed out, that it's possible to use the Media Foundation (https://en.wikipedia.org/wiki/Media_Foundation) aka MS Framework to decode the AAC format under Windows.

Some open source projects, such as this: https://sourceforge.net/projects/keppi/ make use of it.

Has anyone ever tried to do such stuff under BMX? My knowledge of media formats and C# is too basic for this.

Grisu


popcade(Posted 2017) [#2]
Media Foundation is not available in some N and KN editions, but can be freely downloaded, although you can't just simply include the DLLs and shipping with it (well you can, but it's against the EULA).

If you just need to play them, http://www.audiocoding.com/faad2.html may work, and it's portable and standalone.


Grisu(Posted 2017) [#3]
Thanks for the reply.

I'm not going to include such a dll in the package. Users have it on their system or it's not supported.

The challenge is how to make this all work in bmx. I would need to decode the stream and then pass it over to the fmod functions.

As alternative I could switch my audio middleware. But as far as I know, there's none for bmx that supports AAC out of the box. Even Bass doesn't. This would also force me to redo large parts of the code.


xlsior(Posted 2017) [#4]
FWIW, Windows N editions were only created by MS because they were forced to by the courts to have a version of windows that didn't come bundled with Media player, but sales have been absolutely abysmal, and not worth even considering:

https://www.microsoft.com/presspass/legal/european/04-24-06windowsxpnsalesfs.mspx


XP N sales represent 0.005 percent (1/20,000th of one percent) of overall XP sales in Europe.
• No PC manufacturers have ordered or preinstalled Windows XP N on PCs.
• Only 1,787 copies of Windows XP N have been sold to retailers and distributors in Europe.