1

我正在开发一个与 Windows 7 系统音量托盘应用程序相同的应用程序,但不知道如何显示在后台播放的音乐的“强度”。Windows 托盘应用程序通过在轨迹栏后面显示一条绿色和一条灰色线来做到这一点,即使声音被静音(灰色线),它也会这样做。

我怎样才能在 C# 中获得相同的效果?甚至可能吗?

提前致谢。问候J。

4

1 回答 1

1

You'll have to call some native Win32 methods via P/Invoke. This article goes into detail and uses windows sound as one of the examples.

于 2011-08-29T18:51:54.333 回答