How can I control system sound volume with a TrackBar?

◇◆丶佛笑我妖孽 提交于 2019-12-11 23:38:13

问题


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.


回答1:


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/



来源:https://stackoverflow.com/questions/13232085/how-can-i-control-system-sound-volume-with-a-trackbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!