Windows API - Soundcard playing & stop audio event RRS feed

  • Question

  • Hi There!

    What I' trying to found is some API call that detects when any audio is playing at the soundcard. Is not a recorder, I'm not looking for an audio playing application. My issue is detects from my own application when any other software or windows send audio to speaker.

    So, I guess that may be is an API some there that let me detects when sound is being played and ends.

    The device input is not a record input (microphone or line-in) it's the speaker output itself.

    Is not a Vu-Meter but can be part of them. It's an API call that trigger an Event that give me a true/false when audio starts or ends. 

    Best Regards!!

    Friday, October 16, 2020 7:53 PM

All replies

  • see https://docs.microsoft.com/en-us/previous-versions/dd743680(v=vs.85)

    I think PlaySound with SND_NOSTOP will help.  I've never done this, so it is kind of a guess.

    Friday, October 16, 2020 8:34 PM
  • Friday, October 16, 2020 9:50 PM
  • Hi FrankRadio,

    Since your question is more related to Windows API, and if you need further assistance, you can post your question on the following forum for more help.


    Thank you for your understanding.

    Best Regards,

    Xingyu Zhap

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, November 4, 2020 8:17 AM