0
0

Hi i used this code to play wav files:
[code:vh8nhrvb]Dim soundStream As IntPtr
Dim soundHandle As IntPtr
FMOD.PPC.Init(44100, 16, 0)
soundStream = FMOD.PPC.GetStream("\Storage Card\Bugle.wav")
soundHandle = FMOD.PPC.Open(soundStream, &H100, 0, 0)
FMOD.PPC.Play(0, soundHandle)
Dim n As Integer = FMOD.PPC.GetLength(soundHandle)
Dim m As Integer = FMOD.PPC.GetPosition(soundHandle)
For m = m To n
m = FMOD.PPC.GetPosition(soundHandle)
If m = n Then
thread.Sleep(1000)
FMOD.PPC.SetStop(soundHandle)
FMOD.PPC.Close()
End If
Next[/code:vh8nhrvb]
but when i use an mp3 file it wont play. How come?

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.