Search code examples
c#winformstrackbar

How can I control system sound volume with a TrackBar?


I'm a beginner and making an internet radio player and I want to control the volume with my own TrackBar. How is that possible? I haven't found any solutions to do this.


Solution

  • Take a look at NAudio. this is a brilliant API for implementing audio based applications in .NET

    http://naudio.codeplex.com/

    Also consider this

    how to Control "Windows XP Volume Control" with VC#

    This might also help. This explains how to hook the Win32 API Multimedia library (winmm.dll) to control system volume

    http://www.dreamincode.net/forums/topic/45693-controlling-sound-volume-in-c%23/