List Info

Thread: HELIX_FEATURE_SYSTEM_EXTERNAL_TIMER and 1_5_0




HELIX_FEATURE_SYSTEM_EXTERNAL_TIMER and 1_5_0
user name
2006-10-19 15:18:44
Hi Milko,

I would like to use a external clock on 1_5_0.

How could I do that?

Thanks again,
Edgard


_______________________________________________
Helix-client-dev mailing list
Helix-client-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinf
o/helix-client-dev
HELIX_FEATURE_SYSTEM_EXTERNAL_TIMER and 1_5_0
user name
2006-10-19 15:37:47
Override the audio device with your own implementation.

At 08:18 AM 10/19/2006, Edgard Lima wrote:

>Hi Milko,
>
>I would like to use a external clock on 1_5_0.
>
>How could I do that?
>
>Thanks again,
>Edgard



_______________________________________________
Helix-client-dev mailing list
Helix-client-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinf
o/helix-client-dev
HELIX_FEATURE_SYSTEM_EXTERNAL_TIMER and 1_5_0
user name
2006-10-19 15:57:07
So, I do NOT need to define
HELIX_FEATURE_SYSTEM_EXTERNAL_TIMER.

I just need to rewrite UINT64 
CAudioOutLinux::_GetBytesActualyPlayed(void) const

is all this right?

thanks,
Edgard

Milko Boic wrote:
>
> Override the audio device with your own implementation.
>
> At 08:18 AM 10/19/2006, Edgard Lima wrote:
>
>> Hi Milko,
>>
>> I would like to use a external clock on 1_5_0.
>>
>> How could I do that?
>>
>> Thanks again,
>> Edgard
>
>
>


_______________________________________________
Helix-client-dev mailing list
Helix-client-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinf
o/helix-client-dev
HELIX_FEATURE_SYSTEM_EXTERNAL_TIMER and 1_5_0
user name
2006-10-19 15:55:03
On 150Cay overriding the audio device is your only choice.
However, on the HEAD we have IHXClockSource support.

At a high level, here's how it works:

 - Some type of plugin (renderer or other) implements
IHXClockSource
 - Upon initialization, that plugin QI's the IHXAudioPlayer
   for IHXClockSourceManager and registers itself as a clock
source.
 - Currently, when it's time to play, if there are no
regular Helix
   audio streams, then the audio player will use the
registered
   IHXClockSource as the clock.

However, as you can tell, we currently have the limitation
that
if there are Helix audio services audio streams present,
they
will always take priority for the clock.

Eric

=============================================
Eric Hyche (ehychereal.com)
Technical Lead
RealNetworks, Inc.  

> -----Original Message-----
> From: helix-client-dev-bounceshelixcommunity.org 
> [mailto:helix-client-dev-bounceshelixcommunity.org] On 
> Behalf Of Milko Boic
> Sent: Thursday, October 19, 2006 11:38 AM
> To: Edgard Lima; Helix-client-devhelixcommunity.org
> Subject: [Helix-client-dev] Re: 
> HELIX_FEATURE_SYSTEM_EXTERNAL_TIMER and 1_5_0
> 
> 
> Override the audio device with your own implementation.
> 
> At 08:18 AM 10/19/2006, Edgard Lima wrote:
> 
> >Hi Milko,
> >
> >I would like to use a external clock on 1_5_0.
> >
> >How could I do that?
> >
> >Thanks again,
> >Edgard
> 
> 
> 
> _______________________________________________
> Helix-client-dev mailing list
> Helix-client-devhelixcommunity.org
> http://lists.helixcommunity.org/mailman/listinf
o/helix-client-dev
> 


_______________________________________________
Helix-client-dev mailing list
Helix-client-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinf
o/helix-client-dev
HELIX_FEATURE_SYSTEM_EXTERNAL_TIMER and 1_5_0
user name
2006-10-19 16:05:23
No.
HELIX_FEATURE_SYSTEM_EXTERNAL_TIMER enables application to provide general system timing used for measuring passage of time. ; This was enabled to allow some application to improve performance by reducing the number of times gettimeofday is called.  This feature simply allows the application to populate a global variable with gettimeofday equivalent and Helix client reads the value of the global when time is needed.

To override the time-line in cayenne, you need to use IHXAudioDeviceManagee method to replace the audio device:
   
/**********************************************************************
     *  Method:
    ; *      IHXAudioDeviceManager::Replace
    ; *  Purpose:
  ;   *  This is used to replace the default implementation of the audio
     *  device by the given audio device interface.
     */
    STDMETHOD(Replace)   ;      (THIS_
        ;      ;        IHXAudioDevice*   ;
/*IN*/ pAudioDevice) PURE;


Milko

At 08:57 AM 10/19/2006, Edgard Lima wrote:

So, I do NOT need to define HELIX_FEATURE_SYSTEM_EXTERNAL_TIMER.

I just need to rewrite UINT64 CAudioOutLinux::_GetBytesActualyPlayed(void) const

is all this right?

thanks,
Edgard

Milko Boic wrote:

Override the audio device with your own implementation.

At 08:18 AM 10/19/2006, Edgard Lima wrote:

Hi Milko,

I would like to use a external clock on 1_5_0.

How could I do that?

Thanks again,
Edgard


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )