How to write an audio decoder in winrt
-
Friday, April 13, 2012 7:00 AMI want play ogg、flac by use MediaElement, I need to write an docoder in media foundation.
I have download the ogg decoder from http://vorbis.com/ , the decoder is writen by c
but I don't know how to transplant it to Media Foundation, is there any example for this?
All Replies
-
Friday, April 13, 2012 10:24 PMModerator
Hi Troyou,
I don't believe anything about this is specific to Metro style apps (the codec would run at a lower level) so I suspect you will find the best help in the Media Foundation Development for Windows Desktop forum.
That said, I'd start with the Codec Implementation documentation and I'll have our media specialist take a look at this on Monday.
--Rob
-
Tuesday, April 17, 2012 10:12 PMModerator
Hello Troyou,
Rob is correct you will need to create a Media Foundation Transform (MFT) and integrate the OGG signal processing infrastructure into the MFT wrapper. If you have extensive experience writing DirectShow filters this should be a relatively obvious conversation. If you aren't familiar with the Microsoft media stack then you will have a very steep learning curve that you will need to overcome. We do have some excellent samples that show how to construct simple MFTs for use in the Metro environment. You can find the samples here:
Media capture using webcam sample
http://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622
Real-time communication sample
http://code.msdn.microsoft.com/windowsapps/Simple-Communication-Sample-eac73290I hope this helps,
James
Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/
- Marked As Answer by James Dailey - MSFTMicrosoft Employee, Moderator Tuesday, April 17, 2012 10:12 PM


