获取音量级别并显示它 [英] get the audio volume level and display it
问题描述
大家好,
有一种方法可以知道是否有来自任何来源的音频,可以在我的电脑上启用,无论是否一个mp3,一个youtube视频或一部电影...
当我们按下窗口任务栏上的音量按钮时,除了设置音量之外我们可以看到一个绿色的条形音量,它根据音量的高低而不断上下移动,所以我想得到这些信息,如果没有音频那么它等于零,否则如果我播放视频在youtube上,它将是一个随时间变化的变量。
非常感谢你的帮助
参考 - 获取并设置波形音量 [< a href =http://www.geekpedia.com/tutorial176_Get-and-set-the-wave-sound-volume.htmltarget =_ blanktitle =New Window> ^ ]。您需要使用waveOutGetVolume
。
另请参阅获取Windows 7中的当前系统卷 [ ^ ]。
Hello everyone,
is there a way to know if there is any audio comming from any source, which can be "enabled" on my computer whether it is an mp3 , or a youtube video , or a movie...
Baically when we press the volume button on the taskbar in windows, aside of setting the volume level we can see a green sound bar level that keeps moving up and down depending on how high the volume is, so I would like to get this information, for ex if there is no audio then it is equal to zero, otherwise if i play a video on youtube then it will be a variable that is changing with the time.
Many thanks for your help
Refer - Get and set the wave sound volume[^]. You need to usewaveOutGetVolume
.
Also look at Get the current system volume in Windows 7[^].
这篇关于获取音量级别并显示它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!