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