Question about audio continuity

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Question about audio continuity

Postby cwhite1022 » Fri Oct 07, 2022 12:10 pm

For the callbacks to OnAudioStreamPacket() that are nested between OnAudioStreamStarted & OnAudioStreamStopped:

Are we guaranteed to be called with audio frames in a continuous manner, such that there are never discontinuities in the stream of data?

In other words. Can we use the presentation timestamp (pts) of the first audio packet (and knowledge of the sample rate), to begin the audio stream, and then just play all the data as it arrives (effectively ignoring the pts on subsequent packets). Or do we need to watch for discontinuities in the pts and do our own stop/start (or fill with silence) when there are gaps?

Thanks.
cwhite1022
Techie
 
Posts: 16
Joined: Thu Jul 28, 2022 10:24 am

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 39 guests