Volume Change Events

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Volume Change Events

Re: Volume Change Events

by endee » Thu Jun 12, 2014 11:45 am

Thanks! I was hoping to avoid having to constantly query it but I suppose it is unavoidable... Good to know :)

Re: Volume Change Events

by mcow » Tue Jun 10, 2014 11:39 pm

I don't think they issue events for that. See the second table at:
http://www.mediamonkey.com/wiki/index.p ... pplication

The way I handle items that aren't notified is, I query them. Like, every pass around the loop, I read values from the SDB. It's definitely not ideal, but you can access the volume from SDB.Player.Volume.

Also, I recommend not using OnIdle() for anything, but define it:

Code: Select all

def OnIdle(self):
    pass
If you don't define it, MM tries to call it anyway; the debug version emits "Failed calling of COM event" -- which it does only when OnIdle() is not defined, the other methods don't trigger that.
Every time I've put actual logic inside OnIdle, the MM UI slows to a crawl. It's called very often.
Even without logic inside, just the existence of an event-handling SDB object causes problems with MMW's window, in particular when trying to restore after minimizing.

Volume Change Events

by endee » Mon Jun 09, 2014 7:34 pm

Hi,
I'm building a python application that is responding to changes in playback from Media Monkey, and can't seem to find the right event for responding to volume changes in Media Monkey.

I followed this: http://www.mediamonkey.com/wiki/index.p ... t_handling for other events and it worked great. Hoping for some help if it is possible.

Thanks!

Top