Fix MediaStreamSource in Windows Phone 8.1
When creating an app that uses MediaStreamSource to stream audio in Windows Phone 8.0, everything works just great. When porting this app to Windows Phone 8.1, the sound is flickering and its components are "stack overflow"-ing.
Here is a discussion on MSDN forums:
And here is a sample project source code: