Answered by:
No sound in StoreApp when debugging - VS 2012 Update 1, VB

Question
-
Everything was working quite fine ;-)
I'm developing several windows store apps. These apps contain mediaelements in order to play several sounds (MP3 files).
Because for several reasons I had to reinstall my machine with Windows 8. I also reinstalled VS 2012 and added VS 2012 Update 1. Same Configuration like I had before. When I now open a Windows store app project and try to rund it from VS 2012 - it works perfectly - except it doesn't play any sound at all. No difference if I build as debug or release. No difference if run in the simulator or on the local machine.
Other apps, that are installed on the machine play sound without any problems. Mediaplayer works fine and system sound are also fine. When I start my project from VS on a remote machine (surface) then sound works fine as well ;-(
So it seem to be something with my local machine... I don't get any error message during runtime or buid. In the debugger it looks like sound is playing - but I don't hear anything...
Is there any Switch in VS that I've forgotton or overseen?
Again the Project works fine when deployed to a remote machine - it only fails to play any sounds when started from VS..
All hints or ideas welcome! I aready installed the machine from scratch - no changes - just silence in apps started from withing VS...
Stefan
- Moved by Matt SmallMicrosoft employee, Moderator Wednesday, March 6, 2013 2:10 PM Debugging issue
Monday, March 4, 2013 7:50 PM
Answers
-
Problem solved ;-)
As I mentioned the Problem started because I reinstalled my box. No sound just silence and no errors. Regardless what I'd wanted to play the mediaelement status got stuck "opening" every time.
Finally I found another thread "MediaElement is silently failing". Someone with exactly the same problem and this was caused by bootcamp video driver for Windows 8 - that got me on the right track.
Now I discovered what I've changed when I re-installed my box: When everything was working I used the Windows 8 out-of-the-box-drivers for my ATI Radeon HD-4070. When I reinstalled my machine I installed the newer drivers from ATI. Thought, newer is better and it won't hurt... Long Story short - I deleted the ATI Drivers and switched back to the Windows 8 build-in drivers and mediaelements are playing sound again :-)
Very ugly behaviour - no error messages or hints at all. That cost me several days of work. I didn't suspect the videodriver since I just wanted to play sound...
Stefan
- Marked as answer by Jesse Jiang Monday, March 11, 2013 2:00 AM
Saturday, March 9, 2013 10:24 PM
All replies
-
You are using only MediaPlayer, not PlayReady, PlayerFramework, SmoothStreaming, ...?
Can share demo, and the machine details...
Sara Silva - Microsoft Visual C# MVP
My blog | My Windows 8 Store Apps Samples | More Samples
Follow me in Twitter @saramgsilva
My Windows 8 Store Apps: Female Pill | Galinho (Tic tac Toe) | 24 | My Snake
My Windows Phone AppsTuesday, March 5, 2013 12:48 AM -
Hi,
How about other music app works on your machine?
How about deploy the app first using Visual Studio and run it?
Best regards,
JesseJesse Jiang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.Wednesday, March 6, 2013 5:54 AM -
Problem solved ;-)
As I mentioned the Problem started because I reinstalled my box. No sound just silence and no errors. Regardless what I'd wanted to play the mediaelement status got stuck "opening" every time.
Finally I found another thread "MediaElement is silently failing". Someone with exactly the same problem and this was caused by bootcamp video driver for Windows 8 - that got me on the right track.
Now I discovered what I've changed when I re-installed my box: When everything was working I used the Windows 8 out-of-the-box-drivers for my ATI Radeon HD-4070. When I reinstalled my machine I installed the newer drivers from ATI. Thought, newer is better and it won't hurt... Long Story short - I deleted the ATI Drivers and switched back to the Windows 8 build-in drivers and mediaelements are playing sound again :-)
Very ugly behaviour - no error messages or hints at all. That cost me several days of work. I didn't suspect the videodriver since I just wanted to play sound...
Stefan
- Marked as answer by Jesse Jiang Monday, March 11, 2013 2:00 AM
Saturday, March 9, 2013 10:24 PM -
Thank you! This fixed it for me also. I have an ATI 4890 that was causing the same issue. Did exactly as you mentioned and this fixed that issue.
Friday, April 26, 2013 7:44 AM