A
andrews
I have a problem with audio
private sub playing(Byval somefilename as string)
My.Computer.Audio.Play(My.Resources.somefilename,AudioPlayMode.Background)
end sub
private sub choose
if good then
playing("wav1.wav")
else
playing("wav2.wav")
end sub
wav1.wav and wav2.wav are audio files that I put in resources
and good is a boolean variable
but in my.comp..... somefilename is not accepted and gives a error
Is there a solution?
Thanks for any response
private sub playing(Byval somefilename as string)
My.Computer.Audio.Play(My.Resources.somefilename,AudioPlayMode.Background)
end sub
private sub choose
if good then
playing("wav1.wav")
else
playing("wav2.wav")
end sub
wav1.wav and wav2.wav are audio files that I put in resources
and good is a boolean variable
but in my.comp..... somefilename is not accepted and gives a error
Is there a solution?
Thanks for any response