VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



MixerSpy

by AlT (10 Submissions)
Category: Sound/MP3
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (16 Votes)

Just about everything you want to know about your mixer. I could only represent, with VB and Comctl controls, the mixer controls that my sound card supports which is quite a bit actually. As I don't have a peakmeter, I could not code for that and I haven't yet solved the mystery of multiple item controls. But, just about everything else is there. All of the mixer examples I have seen have been to mimic the intrinsic mixer so I coded mine a little differently so you can see all of the gory details. Enjoy.

Assumes
Uses mscomctl.ocx (sp4)
Side Effects
Subclassing! This code subclasses SETFOCUS msgs for sound controls (volume, mute, etc) and also subclasses the window for mixer control change messages. You can enable hooking by using the checkbox provided but make sure you disable the hooks before setting breakpoints or hitting the end button. If not, you will freeze the IDE and lose any changes you have made.
API Declarations
RtlMoveMemory
GlobalAlloc
GlobalFree
GlobalLock
SetWindowLong
GetWindowLong
CallWindowProc
mixerClose
mixerGetDevCaps
mixerGetID
mixerOpen
mixerGetLineInfo
mixerGetLineControls
mixerGetControlDetails
mixerSetControlDetails

Rate MixerSpy

Download MixerSpy

Download MixerSpy (52 KB)

MixerSpy Comments

No comments have been posted about MixerSpy. Why not be the first to post a comment about MixerSpy.

Post your comment

Subject:
Message:
0/1000 characters