Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Classic Visual Basic (VB 6 or earlier) » General Visual Basic » Controlling soundcard VB6

24 posts, Page 1 of 3. 123»»»

Controlling soundcard VB6Expand / Collapse
Author
Message
Posted 8/28/2010 2:28:12 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 3/29/2011 5:13:52 PM
Posts: 132, Visits: 231
Where can I find more information about controlling soundcard (Windows 7)?
Post #29563
Posted 8/28/2010 5:14:38 PM


Forum God

Forum God

Group: Moderators
Last Login: 2/5/2012 6:29:46 PM
Posts: 1,889, Visits: 5,254
Controlling it in what way, volume, midi output, microphone or something else?

Keith

I've been programming with VB for 15 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #29564
Posted 8/29/2010 4:05:38 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 3/29/2011 5:13:52 PM
Posts: 132, Visits: 231
Hi Keith,

it's for controlling the wave / mic / total volume sliders and the mute function for each control.

For now, I still use VB6, but I'm thinking of upgrading to .NET (not sure yet)
So if you could also provide me with information for .NET also, it would be great.

Kiter

Post #29567
Posted 8/31/2010 10:41:17 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: 12/4/2011 11:46:01 PM
Posts: 545, Visits: 2,544
Well I used SpyXX to see what it would return for the Windows Sound Control Panels. Judging by my returns I would think that one method might be to use the SendMessage API.

________________________________________________________________ 

"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! 

Post #29575
Posted 9/2/2010 1:15:36 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 9/4/2010 3:34:47 PM
Posts: 167, Visits: 786
Go over to thescarms.com and have a look at their vb6 sample programs. One of them is for controlling the master volume...

Good Luck

Post #29586
Posted 9/5/2010 10:29:46 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: 12/4/2011 11:46:01 PM
Posts: 545, Visits: 2,544
I think this is what you want.

http://www.devx.com/vb2themax/Tip/19040

________________________________________________________________ 

"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! 

Post #29598
Posted 3/24/2011 3:16:35 PM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 3/29/2011 5:13:52 PM
Posts: 132, Visits: 231
Sorry for my late response, but had soms other urgent projects to make.

I tried you link, but it's not controlling the Master (system) volume. I've been looking on the web, but so far all the examples I tested, they only control the vb6 app volume.

In the attachement you will see which slider I want to control within Windows 7

Hope someone can help me with this.

  Post Attachments 
mixer master slider.jpg (152 views, 52.77 KB)

Post #30217
Posted 3/24/2011 4:38:09 PM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: 12/4/2011 11:46:01 PM
Posts: 545, Visits: 2,544
The jpg image of your windows sound control panel must be unique to W7 because I've never seen a control for my VB Project in W98 or XP. The link I posted should be controlling the Master volume but I know little of W7.

________________________________________________________________ 

"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! 

Post #30218
Posted 3/24/2011 5:58:10 PM


Forum God

Forum God

Group: Moderators
Last Login: 2/5/2012 6:29:46 PM
Posts: 1,889, Visits: 5,254
Thats the same Volume Mixer on my Vista, I don't know how he's showing Project1 Visual Basic unless the shows when he's running his app?

Keith

I've been programming with VB for 15 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #30219
Posted 3/24/2011 7:03:34 PM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: 12/4/2011 11:46:01 PM
Posts: 545, Visits: 2,544
Keithuk (3/24/2011)
Thats the same Volume Mixer on my Vista, I don't know how he's showing Project1 Visual Basic unless the shows when he's running his app?

Yeah Keith, that's weird. I can't imagine how a new (VB Project) slider could or would be created by VB or Windows. The API is just supposed to access the existing Windows Audio controls.

________________________________________________________________ 

"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! 

Post #30221
« Prev Topic | Next Topic »

24 posts, Page 1 of 3. 123»»»

Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 2:46pm