|
-
Feb 3rd, 2013, 03:33 AM
#1
Thread Starter
Lively Member
vb.net sound effect
Hey,
My application is not playing the sound effect and I don't understand why.
Code:
Public SEffect As SoundEffect
Code:
SEffect = OurContent.Content.Load(Of SoundEffect)("Music/Sounds/Success1")
this here above is my code, but its not working..
anybody help?
thanks
-
Feb 3rd, 2013, 09:10 PM
#2
Re: vb.net sound effect
This isn't native VB.Net so what class/control are we dealing with here?
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Feb 3rd, 2013, 10:36 PM
#3
Re: vb.net sound effect
 Originally Posted by dunfiddlin
This isn't native VB.Net so what class/control are we dealing with here?
Seems like XNA: http://msdn.microsoft.com/en-us/libr...dio.31%29.aspx
I haven't played around with XNA in a while... Are you sure the filename is "Success1", and not for instance "Success1.wav" or anything like that?
<<<------------
.NET Programming (2012 - 2018)
®Crestron - DMC-T Certified Programmer | Software Developer <<<------------
-
Feb 4th, 2013, 11:54 AM
#4
Thread Starter
Lively Member
Re: vb.net sound effect
 Originally Posted by AceInfinity
Yes, sorry, it's XNA. And yes, the filenames are correct but it just wont play the sound
-
Feb 4th, 2013, 12:49 PM
#5
Re: vb.net sound effect
Explain where the file is, relative to your executable. I haven't done XNA in a while, but I remember it had to be relative to the Content folder.
How did you add the wav to the project?
Where is this structure located: Music/Sounds? (Being that it's a relative path)
<<<------------
.NET Programming (2012 - 2018)
®Crestron - DMC-T Certified Programmer | Software Developer <<<------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|