P? Fri, 30 Sep 2005 21:42:41 +0200, skrev Bob Pendleton
<@Bob_Pendleton>:
If the only available video driver is aalib (or caca, etc), I
might want to show a specialized curses-based UI in stead of
having SDL convert images to ultra-low-quality ascii.
I don’t believe this is a serious problem. If it is, then it can be
solved by the existing query functions in SDL.
Really ? How ? (I figured ListModes could at least give a hint by
returning very low resolutions, but that didn’t work out. It acts
like aalib is a regular pixel display capable of high resolutions.)
How about SDL_VideoDriverName()?
If audio latency is large, I might want to delay video a couple
of frames to get better synchronization with video.
Are you talking about video latency or audio latency? Audio latency can
be controlled by choosing small buffers. Video latency is nearly
unpredictable, so you pretty much have to adjust your video output to
match the audio stream.
I was talking about audio latency. I know latency can be controlled
by using small buffers as you said, but that doesn’t help much when
the audio driver uses its own buffers or even layers of them – you
can only control the topmost layer.
I see your point. If you are using a buggy sound system then you can run
into the problems you are describing. Short of telling the user to
change their sound system I’m not sure what a query system would tell
you that would help you adjust for a buggy sound system.
Most, nearly all, sound systems know that near real time response it
required on a computer and will merge your buffers into their larger
buffers so that they will begin playing ASAP.
Doesn’t artsd do this, for
example ? Not to mention network audio … (Note, I’m not an audio
guru, so apologies if any of this is completely wrong).
Latency and networking go hand in hand. I have trouble believing that is
something that can be addressed by SDL. But, I am willing, even eager,
to be shown that I am wrong.
Give me an example of the types of queries supported by the sound
libraries that would help you solve these problems. I will keep arguing
against the query system until people provide concrete examples of
queryable information that would let them solve real problems. So far
the two concrete examples that have been identified are things that
should either be fixed (if only it were possible), removed from SDL
(IMHO), or addressed in a different way.
Bob PendletonOn Tue, 2005-10-04 at 01:38 +0200, Gerry JJ wrote:
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
±-------------------------------------+