[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Latency for Arts::PlayObject
From:       Stefan Westerfeld <stefan () space ! twc ! de>
Date:       2002-01-26 12:07:55
[Download RAW message or body]

   Hi!

On Thu, Jan 24, 2002 at 10:27:18AM +0100, Ewald Snel wrote:
> It's required for some instances of PlayObject (especially video) to be able 
> to determine the aRts server latency. I couldn't find any detailed 
> information on this subject, but I'm currently using the following code.
> 
>     Arts::SoundServer server = Arts::Reference( "global:Arts_SoundServer" );
>     audio.latency = (unsigned long)server.serverBufferTime();
> 
> Is it safe to assume that there is only one aRts server?

Currently yes. Cascading artsds is on the "would be useful to have" list, as
is running multiple artsds independantly. However, the above code still should
still find the right artsd, as far as I can see now.

> Is there a better way to determine the latency of the aRts server?

Right now, this seems to be the best way (the alternative would be calling
AudioSubSystem::the()->..., but this doesn't sound better). I am not sure if
one day, we'll need more timing & synchronization magic (which would be due
to midi synchronization with video with audio with things like output scopes
on the screen and other external timing sources), but the APIs for this still
need to be developed.

   Cu... Stefan
-- 
  -* Stefan Westerfeld, stefan@space.twc.de (PGP!), Hamburg/Germany
     KDE Developer, project infos at http://space.twc.de/~stefan/kde *-         
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic