Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
[v1.4.0] Irrklang in VB Net

simulator
Registered User
Quote
2013-03-15 11:09:05

Hello

I'm using Irrklang to create music in my software. But how to set up setSoundStopEventReceiver in VB Net. I tried this, but not working:


Public Sub OnSoundStopped(MyiSound As irrklang.ISound, reason As irrklang.StopEventCause, userData As Object)
System.Diagnostics.Debug.WriteLine("Sound finished " & Convert.ToString(userData))
WriteLog(DateTime.Now.ToString & " Megjegyzés: Music stopped. " & Convert.ToString(userData))
End Sub


Private Sub MainWindow_Loaded(sender As Object, e As RoutedEventArgs)

Dim Music = MyiSoundengine.Play2D(zene)
Music.setSoundStopEventReceiver(Me)

End Sub



niko
Moderator
Quote
2013-03-19 05:58:57

Did you also implement the interface in your class? Like with
Implements ISoundStopEventReceiver



Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact