zwang135 wrote:Hi Cameron,
I tried WriteAudioSamplesSync but the output sounded discontinuous, then I changed both video and audio to scheduled playback. Now I'm having a problem that GetBufferedAudioSampleFrameCount returns E_ACCESSDENIED sometimes, how do I avoid this?
Thanks!
Zicheng Wang
An update of the issue:
This happens when I stop capturing and start playback immediately. My capture and playback work fine separately, just when switching from capture to playback it crashes sometimes. I guess it might be because the playback starts before the capture actually stops sometimes? When switching from playback to capture my program works fine, since I put my start-capture method in the ScheduledPlaybackHasStopped callback, but I don't see a similar callback for capture.
Can I have some advice for this problem? Or is it better not to use scheduled playback? Thanks!