I saw this thread without getting hte PM (This time)
It should be easy to do, you just record the sound at all times, and make an average of the sound buffer, if it's under a certain percentage (you usually have some static), then execute the triger.
I don't have time to do it now, but I'll try to write some code later (today hopefully).
For how long do you think the silence interval will be ?
And how precise it has to be ?
- still works - Probably... on a Windows XP computer and VB6... (if you still have it...)
- worked initially - Of course! I don't post things that don't work
- if you have a copy of the resulting executable file - I don't have VB6 anymore, so can't compile the code. But the code needs some modification before you compile it (if you read post #7)
- still works - Probably... on a Windows XP computer and VB6... (if you still have it...)
- worked initially - Of course! I don't post things that don't work
- if you have a copy of the resulting executable file - I don't have VB6 anymore, so can't compile the code. But the code needs some modification before you compile it (if you read post #7)
Thanks for the answer
I'm just a user without ANY Visual Basic experience (any version) that would like to run an EXE (or whatever does run) on my Windows 7 that has the feature I'm wanting to have.
Can these "old" files be used as input on a newer version of Visual Basic ?
Obviously I don't care about XP, I care about : "Anyone could tell me how to detect the silent period (no output of sound card).", this on a Windows that is supported, this day.
The code was written for DirectX 8 (for Windows XP), and Windows 7 has DirectX 9.
You can't convert the code to new-er version because VB6 was the last version of "Classic Visual Basic", next version is Visual Basic .NET and it's difficult to convert. You might as well re-write the code in VB.NET
The code was written for DirectX 8 (for Windows XP), and Windows 7 has DirectX 9.
You can't convert the code to new-er version because VB6 was the last version of "Classic Visual Basic", next version is Visual Basic .NET and it's difficult to convert. You might as well re-write the code in VB.NET
So, it won't work on a Windows 7
Too bad ..
Is there any chance that the same question (in the opening post) still would have an answer, given current OS
That means, other than the likely possible fact it may be written from scratch in .NET Visual Basic source code ?
It doesn't have to be VB, as in the end I only need an executable program. Language is not relevant, and note I've never coded 1 line of any Visual Basic
That can be done quite easily without directX using WAVEOUT api from the mixer device and inspecting the level of the returned array. It's a toss between VB6 and .Net. VB6 requires a bit of api work (but not all that hard). while .Net does have managed WAVEOUT routines I believe.
If you don't have VB6 experience, it would probably be best to look at .Net.