2

I want the user of my app to be able to select a sound from the windows phone 7 system sounds, or play a specific one (like playing the "new email"-sound).

How can I enumerate the installed sounds? Or is there a builtin sound-selector? Can I ask the system which sounds are played for what events?

Todd Main
  • 28,951
  • 11
  • 82
  • 146
Sam
  • 28,421
  • 49
  • 167
  • 247

1 Answers1

1

Access to system sounds is not available. This include playing the sounds or seeing what files/sounds are associated with what events.

The exception is saving new files to use as ringtones which can now (as of 7.1) be done with the SaveRingtoneTask.

Matt Lacey
  • 65,560
  • 11
  • 91
  • 143
  • So if I want a notification sound to play I need to package one with my application? – Sam Jul 07 '11 at 08:46
  • If you want to play a specific sound then you'll need to include it. Making sure you have the permission to distribute it, etc. first of course. ;) – Matt Lacey Jul 07 '11 at 10:09
  • Yeah, thats the main problem - I would need to create my own sounds. Access to play the system sounds would be a real help :( – Sam Jul 07 '11 at 13:05