Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Controlling soundcard VB6


Controlling soundcard VB6

Author
Message
Kiter
Kiter
Forum God
Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)

Group: Forum Members
Posts: 132, Visits: 231
I will be patient!!
Link is: http://www.vbforums.com/showthread.php?t=645348

I also found some information about "IAudioEndpointVolume Interface", but don't know how to start from here: http://msdn.microsoft.com/en-us/library/dd370892(v=vs.85).aspx

Could not find any VB6 information about it.

Kiter
Kiter
Forum God
Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)Forum God (19K reputation)

Group: Forum Members
Posts: 132, Visits: 231
Hi Guys,

Found the solution on: http://caudioendpointvolume.codeplex.com/

Attached the complete file I made.

EnjoyWink

Kiter

Attachments
Vista_Win7_Master_Volume.rar (1.1K views, 11.00 KB)
Edited
3/27/2011 by Kiter
CDRIVE
CDRIVE
Forum God
Forum God (103K reputation)Forum God (103K reputation)Forum God (103K reputation)Forum God (103K reputation)Forum God (103K reputation)Forum God (103K reputation)Forum God (103K reputation)Forum God (103K reputation)Forum God (103K reputation)

Group: Forum Members
Posts: 548, Visits: 2.6K
Glad to hear it Kitter. No need to bump your VBF topic then.

________________________________________________________________ 

"So much to learn. So little time to do it. Wise men know it's later than one thinks"!

Mark's Syntax.Zip    Pause Sub

I don't answer programming questions via PMs. That's what the forum is for! 

Keithuk
Keithuk
Forum God
Forum God (297K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
I've just tried your Vista_Win7_Master_Volume.rar on my Vista 32bit. I had Windows Media Player playing a mid file and Devices, Windows Sounds and Windows Media Player showed in the Volume Mixer but the app didn't as it does in yours.

If you step down the Master Volume Scaler button all 3 sliders drop but the Windows Media Player volume control doesn't. If you drag the Windows Media Player in Volume Mixer it drags the Windows Media Player volume control.

Oh I forgot to mension always use Option Explicit in all Forms, Modules, Class Modules and UserControls. If you don't know what it does or how to set it up just ask? Wink

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Zdenek.Brydl
Zdenek.Brydl
Forum God
Forum God (353 reputation)Forum God (353 reputation)Forum God (353 reputation)Forum God (353 reputation)Forum God (353 reputation)Forum God (353 reputation)Forum God (353 reputation)Forum God (353 reputation)Forum God (353 reputation)

Group: Forum Members
Posts: 1, Visits: 3

Hi Kiter,

Very good job! I inspired to make programs with call COM model in VB and VBA, but I have two asks:

1. Is the way to use this in VB.NET?

2. I need call IWMDeviceManager2::Reinitialize method, but I don't find CLSID for WMDeviceManager2 to create IWMDeviceManager2 {923E5249-8731-4C5B-9B1C-B8B60B6E46AF} interface with coCreateInstance. I am afraid it’s necessary to use IComponentAuthenticate and SetCertificate method… Note: I don’t have C# compiler Sad

Now I have problem with HDMI Audio in Windows 8. After sign in it works fine. After switch off TV audio output automatically change to wireless headphones in rear jack - very nice future! But after switch on TV HDMI connector stay’s “unplugged”. I need to disconnect a reconnect HDMI cable or sign out and resign in to Windows. I think this method is solution for my problem - see http://msdn.microsoft.com/en-us/library/windows/desktop/ff801386(v=vs.85).aspx.

Note: I make VB program, which switch audio outputs by pressing Mute button e.g. on Remote Controller (I uploaded it).

Zdenek

Attachments
AudioSwitch.zip (850 views, 11.00 KB)
Edited
11/18/2012 by Zdenek.Brydl
mms
mms
Forum God
Forum God (349 reputation)Forum God (349 reputation)Forum God (349 reputation)Forum God (349 reputation)Forum God (349 reputation)Forum God (349 reputation)Forum God (349 reputation)Forum God (349 reputation)Forum God (349 reputation)

Group: Forum Members
Posts: 1, Visits: 22
I'm wondering if CLSID for MediaDevMgr will work?

CLSID_MediaDevMgr,0x25BAAD81,0x3560,0x11D3,0x84,0x71,0x00,0xC0,0x4F,0x79,0xDB,0xC0);

Edited
1/8/2013 by mms
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search