How to construct a "Fade" in CoreAudio RRS feed

  • Question

  • I am writing an application that uses CoreAudio to control the volume of a streaming audio session.SimpleAudioVolume. I would like the audio volume to be reduced in 10% steps over a 2 second period. I have tried multiplying the SimpleAudioVolume value by a multiplier which is 1/10th the initial value and step through a for loop with a small delay within the loop, but this crashes the program with a -1073741819 access violation. I'm assuming there is some issue with the interaction between the Chrome code and CoreAudio. 

    Can anyone suggest with a better way to produce a fade out in CoreAudio?


    Thx, MikeH

    Sunday, May 5, 2019 5:04 PM

All replies

  • Hello,

     Use the following link and read about how to control audio volume;


     Hope this helps :)

    Sunday, May 5, 2019 8:56 PM
  • Hi mihooper1,

    Thank you for posting here.

    For your CoreAudio, you could post a new thread in GitHub.


    Best Regards,


    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.

    Monday, May 6, 2019 5:32 AM
  • I did some tests with P/Invoke and




    and it works fine.

    Monday, May 6, 2019 8:05 AM