I have a test program with a class module and an MP3 file in the files list.
The following code works in the main module: I hear the sound.
Dim MP as MediaPlayer
MP.Initialize
MP.Load(File.DirAssets,"Note.MP3")
MP.Play
This same code does NOT work in the class module even though debugging does step through it.: I do not hear the sound.
Can someone tell me why?
It would be convenient in my project if there is a way to play the sound in the class module.
The following code works in the main module: I hear the sound.
Dim MP as MediaPlayer
MP.Initialize
MP.Load(File.DirAssets,"Note.MP3")
MP.Play
This same code does NOT work in the class module even though debugging does step through it.: I do not hear the sound.
Can someone tell me why?
It would be convenient in my project if there is a way to play the sound in the class module.