Click here to Skip to main content
15,065,644 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SoundPlayer.PlayLooping does *NOTHING*

What I have tried:

this
C#
private void MenuInit()
{
    SoundPlayer snd = new SoundPlayer("../../assets/menu.wav");
    snd.PlayLooping();
}

also yes, i do know that the "../../" part does work, as i used it in a different part of the code:
C#
// working proof of the nice ../../
SoundPlayer sound = new SoundPlayer("../../assets/splash.wav");
sound.Play();


Also-- i tried the .Play() method too, and it also did nothing
Posted
Updated 12-Jun-21 12:34pm
v3

1 solution

Oops-- This didnt work because MenuInit was never called due to an event failing
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900