LEADTOOLS Support
General
General Questions
Audio detection filter demo project in VB 6 or VB .NET
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, February 10, 2011 4:52:56 AM(UTC)
Groups: Registered
Posts: 10
Hello,
Is there an existing demo on how to use Audio detection filter in VB6 or VB .NET?
Thank you
#2
Posted
:
Thursday, February 10, 2011 5:13:12 AM(UTC)
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)
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)
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
LEADTOOLS Support
General
General Questions
Audio detection filter demo project in VB 6 or VB .NET
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.