as far as i know, there's no neat way to do this unless dealing in the driver level.
here's the trick.
1) capture sound by using
MixMP3
2) record with silence filter (read help of mixmp3)
3) check output file size consistently.
4) if it's over 16.1kb (16.0kb is minimal) sound is playing.
Example (Mixmp3.exe need to be in same directory)
Code:
#Persistent
Run, Mixmp3.exe -s -50 -ql -mm,,,PID
SetTimer, SizeCheck, 100
Return
SizeCheck:
FileGetSize, Size, out.mp3, K
if (Size > 16) ;larger than 16KB
{
ControlSend,, {ESC}, ahk_pid %PID%
SetTimer, SizeCheck, Off
GoTo, DoSomething
}
Return
DoSomething:
MsgBox, Sound is Playing
Exitapp
_________________
Easy WinAPI - Dive into Windows API World
Benchmark your AutoHotkey skills at
PlayAHK.com