• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 420
  • 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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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