Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, February 10, 2011 4:52:56 AM(UTC)

aroig  
aroig

Groups: Registered
Posts: 10


Hello,
Is there an existing demo on how to use Audio detection filter in VB6 or VB .NET?

Thank you
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, February 10, 2011 5:13:12 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Please see the help topic "Access the Interface of Filters (Visual Basic)" in the LEADTOOLS Multimedia COM help file.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Friday, February 11, 2011 1:09:41 AM(UTC)

aroig  
aroig

Groups: Registered
Posts: 10


Hello,
I tried to implement Audio Detection Filter using the Motion Detection Demo as an example and looking at Filters Help, ...
I have a pop-up error when starting to run application in VB6. Message is:
"Compile error: Procedure declaration does not match description of event or procedure having the same name"
When looking for help on parameters on "ILMADetUserCallback" i think i included the ones needed. Here is the code i wrote inside IAudioDetectionCallback class:

Implements ILMADetUserCallback
Private Function ILMADetUserCallback_CallbackProc(ByVal lEvent As Long, ByVal pData As Variant, ByVal lDataCount As Long, ByVal lBitsPerSample As Long, ByVal lChannels As Long, ByVal lSamplesPerSec As Long, ByVal lAvgBytesPerSec As Long) As Long

Audio detection callback is declared on initial form:
Dim AudioDetectionCallback As New IAudioDetectionCallbackObject

By the way, i included reference to "LEAD Audio Detection Filter (2.0) Library" for the project.

I would appreciate your help,
Thank you in advance

 
#4 Posted : Sunday, February 13, 2011 5:16:39 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

You have to declare the Audio detection callback as follows:
+------------+
Private Sub ILMADetUserCallback_CallbackProc(ByVal nEvent As Long, pData As Variant, ByVal lDataCount As Long, ByVal lBitsPerSample As Long, ByVal lChannels As Long, ByVal lSamplesPerSec As Long, ByVal lAvgBytesPerSec As Long)

End Sub
+------------+

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.051 seconds.