PDA

View Full Version : Windows Phone & Universal: output modes



Peter
December 4th, 2015, 02:28 PM
As some of you have noticed, foobar2000 for Windows Phone & Windows Universal now lets you pick output modes, between XAudio2 and MediaStreamSource.
This setting is provided for testing purposes. You should stick with the default; you will experience bugs if you change it, at least with the current Windows versions.

On Windows Phone (and Windows 10 Mobile), the default is MediaStreamSource. Changing to XAudio2 will make audio playback pause when our app loses focus.
MSDN thread with bug report: https://social.msdn.microsoft.com/Forums/windowsserver/en-US/01a8ff22-9b00-474b-bf31-4f50023dc1bd/wp81windows-phone-81-background-audio-playback-without-windowsmediaplaybackmediaplayer?forum=wpdevelop

On Windows 10 (not Windows 10 Mobile), XAudio2 is the default. When using MediaStreamSource, playing a stream with sample rate equal to your audio device's configured sample rate will cause massive glitches.
MSDN thread with bug report: https://social.msdn.microsoft.com/Forums/en-US/8bfb60c7-66f2-46e1-8c1c-120d82299319/uwp-mediaplayermediastreamsource-outputting-48khz-pcm-stutters-and-consumes-gigabytes-of-memory