• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 424
  • Last Modified:

Mixer controlling in Delphi

How can I control the mixer settings from within Delphi application?
0
Bocian
Asked:
Bocian
1 Solution
 
MadshiCommented:
Look at "http://www.wilsonc.demon.co.uk/delphi.htm". There you'll find demos with source code...

Regards, Madshi.
0
 
BocianAuthor Commented:
The demo and component mentioned above worx for MIDI and Master volume. I need something that worx for all possible Mixer devices.
0
 
Stuart_JohnsonCommented:
Hi Bocian,

Using the auxGetNumDevs function (found in MMSystem.pas) you can return a count of controllable audio devices installed in your system.  From this you can the create say a bunch of sliders representing each one.

You could use the auxGetDevCaps function to get device information relating to each device ID returned by auxGetNumDevs.

From there, you can adjust the volume and the balance of each device using the auxSetVolume function, and retrieve the current status on each device using the auxGetVolume function.

If you want more info, the MM help file which is shipped with D3 contains enough info to get you started.  If you want futher help, let me know.

Good luck,

Stu
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now