2012-11-05 26 views
0

我是初学者,制作网络电台播放器,我想用我自己的TrackBar控制音量。这怎么可能?我还没有找到任何解决方案来做到这一点。如何使用TrackBar控制系统音量?

+0

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

+0

http://stackoverflow.com/questions/13139181/how-to-programmatically-set-the-system-volume –

+0

http://stackoverflow.com/q/8192953/1577396 –

回答

1

看看NAudio。这是在.NET中实现基于音频应用的辉煌API

http://naudio.codeplex.com/

还要考虑这个

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

这也可能有帮助。这解释了如何挂钩Win32 API的多媒体库(WINMM.DLL)来控制系统体积

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

+0

感谢您的这些。我继续学习,因为现在对我来说很难。 – Burucsb

+0

@Burucsb,学习是你成功的关键,随着时间的推移它变得更容易! :-) – series0ne