List Info

Thread: Re: freevo cpu wakeups




Re: freevo cpu wakeups
country flaguser name
Switzerland
2007-11-25 05:36:17
Gorka Olaizola wrote:
> On Fri, Nov 23, 2007 at 07:46:00PM +0100, Duncan Webb
wrote:
>> By replacing the calls with timer, I've converted
the upsoon plug-in for
>> kaa.notifier's timer calls and rpc calls.
>>
> I'm trying to update freevused plugin based on the
upsoon changes
> but I don't understand what to do. I suppose I have to
change the poll
> and eventhandler methods with the kaa.notifier Timer
register method
> but I have two problems.
> 
> It seems, based on the documentation, that Timer
supports a resolution
> of seconds. It could be enough but it seems too much
for input handling.

Timer start() takes a floating point number, so you can call
start(0.1)
for 1/10 second.

> The other problem is that in eventhandler I use a third
parameter named
> menuw to know if I am in the menu or playing an item.
¿How can I handle
> this parameter with the new API?

Good question, I'm not sure yet. The context and args are
done like:
| Event('BAR', context='test', arg=(1, 2, 3)).post()
| rc.post_event(Event('FOO'))

I've attached a test program that has a bit of code to see
what events
are being generated.

I'm having a problem with events that are posted from with
plug-ins,
such as the IDENTIFY_MEDIA from the rom_drives plug-in, it
doesn't seem
to get posted, which means that the DVD or audio CD don't
start playing.

May be dischi can help, whith this one.

Duncan

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-dev
el

  
Re: freevo cpu wakeups
country flaguser name
Germany
2007-11-25 06:52:29
Duncan Webb wrote:
> Gorka Olaizola wrote:
>> On Fri, Nov 23, 2007 at 07:46:00PM +0100, Duncan
Webb wrote:
>>> By replacing the calls with timer, I've
converted the upsoon plug-in for
>>> kaa.notifier's timer calls and rpc calls.
>>>
>> I'm trying to update freevused plugin based on the
upsoon changes
>> but I don't understand what to do. I suppose I have
to change the poll
>> and eventhandler methods with the kaa.notifier
Timer register method
>> but I have two problems.
>>=20
>> It seems, based on the documentation, that Timer
supports a resolution
>> of seconds. It could be enough but it seems too
much for input handling.
>
> Timer start() takes a floating point number, so you can
call start(0.1)
> for 1/10 second.

Besides Timer you can also use a SocketDispatcher that will
wake up
when something is happening on a socket without you
polling.

> I'm having a problem with events that are posted from
with plug-ins,
> such as the IDENTIFY_MEDIA from the rom_drives plug-in,
it doesn't seem
> to get posted, which means that the DVD or audio CD
don't start playing.
>
> May be dischi can help, whith this one.

Do you still use the Freevo event code or the notifier based
copy?


Dischi

=2D-=20
Due to financial problems, the light at the end of
the tunnel will be shut down until further notice.

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-dev
el

[1-2]

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