Click here to Skip to main content
15,914,010 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Anyone tell me
How can i make audio mixer controller in C#?
and also How can i make a base Boost, stereo Boost, and trouble Boost in C#?
Posted
Comments
[no name] 20-Mar-15 1:13am    
Why don't you do a just a tiny bit yourself and google your question. It is amazing that you would go to the effort of posting here when you have an enormous resource at your fingertips.
phil.o 22-Mar-15 4:50am    
Code requests are not welcome here. You have to make at least the effort to begin coding something.

1 solution

C#
private static void Main(string[] args)
{
    using (var sessionManager = GetDefaultAudioSessionManager2(DataFlow.Render))
    {
        using (var sessionEnumerator = sessionManager.GetSessionEnumerator())
        {
            foreach (var session in sessionEnumerator)
            {
                using (var audioMeterInformation = session.QueryInterface<AudioMeterInformation>())
                {
                    Console.WriteLine(audioMeterInformation.GetPeakValue());
                }
            }
        }
    }

    Console.ReadKey();
}

private static AudioSessionManager2 GetDefaultAudioSessionManager2(DataFlow dataFlow)
{
    using (var enumerator = new MMDeviceEnumerator())
    {
        using (var device = enumerator.GetDefaultAudioEndpoint(dataFlow, Role.Multimedia))
        {
            Debug.WriteLine("DefaultDevice: " + device.FriendlyName);
            var sessionManager = AudioSessionManager2.FromMMDevice(device);
            return sessionManager;
        }
    }
}



http://stackoverflow.com/questions/21200825/getting-individual-windows-application-current-volume-output-level-as-visualized[^]
 
Share this answer
 
Comments
Dave Kreskowiak 20-Mar-15 8:39am    
What does this have to do with the question?
Syeda Shahzadi 22-Mar-15 4:39am    
can you make for me simple one trouble boost and one 1K mixer volume in graphical design with source code that is very helpful for me....
and thankx for reply and help
Dave Kreskowiak 22-Mar-15 10:37am    
Why would anyone do your work for you?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900