-
-
Save thereverand/4019561 to your computer and use it in GitHub Desktop.
SharpDX MediaEngine on Win8 Metro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This works..... (for playing audio) | |
MediaEngine Media; | |
MediaManager.Startup(); | |
var attributes = new MediaEngineAttributes | |
{ | |
AudioCategory = AudioStreamCategory.BackgroundCapableMedia, | |
AudioEndpointRole = AudioEndpointRole.Multimedia | |
}; | |
using (var factory = new MediaEngineClassFactory()) | |
{ | |
var mediaEngine = new MediaEngine(factory, attributes, MediaEngineCreateflags.Audioonly); | |
Media = mediaEngine.QueryInterface<MediaEngineEx>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment