Re: SDL_QueueAudio underrun
Timothy Macintyre <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <VI1PR05MB13434636F0DDD2FE0C3E9649DAD50@VI1PR05MB1343.eurprd05.prod.outlook.com> |
But I still then end up with gaps as this is a live stream I have to discard several of the opus packets whilst the buffer goes down. It doesn't make sense that the buffer is filling up that much, it should be playing just as fast as I fill it up.
From: David Olofson
Sent: Thursday, 20 October, 00:53
Subject: Re: [SDL] SDL_QueueAudio underrun
To: SDL Development List
On Thu, Oct 20, 2016 at 12:42 AM, Timothy Macintyre wrote: [...] > else { > SDL_ClearQueuedAudio(dev); > } As I understand it, this will discard anything that hasn't already been sent to the underlying audio API, which is probably what's causing glitches. When there's enough in the queue, you're not supposed to do anything at all. :-) -- //David Olofson - Consultant, Developer, Artist, Open Source Advocate .--- Games, examples, libraries, scripting, sound, music, graphics ---. | http://consulting.olofson.net http://olofsonarcade.com | '---------------------------------------------------------------------' _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org