Page 1 of 1

Audio is heard when AudioHandler is activated

PostPosted: Fri Jul 30, 2021 7:34 am
by ValentinNikin
I came across the following strange problem.
I overrided AudioHandler (I returning "true" from GetAudioParameters and catching buffer in OnAudioStreamPacket).
My application working in Offsreen mode.
When I start application, for a small moment sound is heard in my speaker (maybe 500ms - 1 seconds), then sound is hidden, and all work as expected.
What could be the problem? It seems what CEF does not have time to intercept begin of the sound.

Re: Audio is heard when AudioHandler is activated

PostPosted: Fri Jul 30, 2021 3:23 pm
by amaitland
Maybe you can workaround the issue by loading a webpage without sound first. Or maybe play a second or two of audio that is inaudible then remove that from your output file.

You'll have to build CEF from source and attach a debugger to find out what's actually going on.

Re: Audio is heard when AudioHandler is activated

PostPosted: Fri Jul 30, 2021 4:03 pm
by ValentinNikin
Hm... Ok, I see. Thank you for reply

Re: Audio is heard when AudioHandler is activated

PostPosted: Fri Jul 30, 2021 4:33 pm
by amaitland

Re: Audio is heard when AudioHandler is activated

PostPosted: Wed Jul 12, 2023 9:05 am
by friendsterjoel
@ValentinNikin, have you ever sorted out the original issue?

Re: Audio is heard when AudioHandler is activated

PostPosted: Wed Jul 12, 2023 9:06 am
by friendsterjoel
@amaitland is this a known issue with CefAudioHandler? so only thing we can do is a workaround?

Re: Audio is heard when AudioHandler is activated

PostPosted: Wed Jul 12, 2023 3:15 pm
by amaitland