Windows has so many APIs on this it is ridiculous. Supposedly MediaFoundation is the way to do this, but I see a lot of 'deprecated' in the MSDN documentation and the sample they provide is only for playing music from a URL. I have a compressed audio file in memory (mp3, m4a, etc). Right now I'm using their CPlayer example. ( http://ift.tt/159CjLO ).
Is there a way to have MediaFoundation load a source from memory? Or do I have to decompress it in a separate thread and feed it into XAudio2?
Aucun commentaire:
Enregistrer un commentaire