VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

MixerSpy

AlT  (10 Submissions)   Sound/MP3   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

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 (17(17 Vote))

Download MixerSpy

MixerSpy Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters