none
Wav file not playing in Metro App

    Question

  • I have made a simple audio playing app. It works fine when given a .mp3 file to play. However, when i try to play the file at C:\Windows\Media\Windows Ding.wav  no sound is played. The code i used is here:

    function start() {
        var src = "music/beep.wav";	//renamed from 'Windows Ding.wav'
        var audio = new Audio(src);
        audio.load();
        audio.play();
    };
    Any idea of what could be the issue?

    Thursday, August 16, 2012 9:05 PM

All replies