While experimenting with Toast Notifications, I have run into an annoying little problem. If I attempt to set the audio to looping, the notification will not play any sound at all. Using non looped sound will work just fine. I am using the code from the MSDN site like so:
...
IXmlNode toastNode = toastDoc.SelectSingleNode("/toast");
((XmlElement)toastNode).SetAttribute("duration", "long");
XmlElement audio = toastDoc.CreateElement("audio");
audio.SetAttribute("src", "ms-winsoundevent:Notification.Looping.Alarm2");
audio.SetAttribute("loop", "true");
toastNode.AppendChild(audio);
...
And it simply will not play sound if I set the 'loop' attribute to true. I have tried manually setting 'silent' to 'false' as well as picking from different sound options listed here: http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx
I have confirmed that the toast are lasting for 25 seconds (as specified by the long duration) and I have tried reordering the audio attributes, all to no avail. Can anyone tell me what the heck is going on here?