Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

smooth volume change

Do you have questions about writing plugins or scripts in Python? Meet the coders here.

SmoothVol is a good idea

Yes
9
100%
No
0
No votes
 
Total votes: 9

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: smooth volume change

Post by Pako »

Congratulations!
I think that at this moment I can not have anything significant reproach.
I only do not know, why there is used SystemExit().
I would at that point simply used break.

But I am not a competent person who can assess it !

Pako
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: smooth volume change

Post by jitterjames »

ya, break seems to work fine.

Moving right along, I've added the mute/unmte/toggle functions. settings for volume and speed of mute are set in the global settings for the plugin.

see the first post
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: smooth volume change

Post by Pako »

In addition to the one note I have nothing to say.
The exception is that the plugin works only in the English language.
You may want to be easy to make a version for other languages.
In that case, you must follow the practices described here.
In short, all text strings to be placed into a reserved class 'Text'.
Pako
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: smooth volume change

Post by jitterjames »

noted. I will see to it. Thanks
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: smooth volume change

Post by jitterjames »

OK, I added the text class, instead of using strings directly in the configuration.

Is that all I need to do? I don't know how the alternate languages work...

I don't see anything else that needs to be done, unless someone has some requests.

jitter
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: smooth volume change

Post by Pako »

I will try to do a translation into Czech language and see if it is okay.
But there is a problem: just now does not work command line option "-translate".
I'll play with it and hopefully I somehow passed through the problem.
Pako
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: smooth volume change

Post by Pako »

I had to make some minor changes to make it right.
I found that the directory name must match the name of plugin.
Therefore, I renamed the class "SmoothVolPlugin" to "SmoothVolume" (name "Plugin" in the folder "plugins" has no meaning).
I still have one comment. Also return informations 'already muted' and 'not muted' should be in the class "text".
Here are examples of how it looks in the Czech version of EventGhost:
AddPlugin.jpg
ActionSetVolSmooth.jpg
Pako
Attachments
__init__.py
Version 0.43
(5.81 KiB) Downloaded 269 times
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: smooth volume change

Post by jitterjames »

thanks Pako. For some reason I was never notified of this post and am just reading it now.
loveleejohn
Experienced User
Posts: 133
Joined: Thu Dec 10, 2015 12:09 am

Re: smooth volume change

Post by loveleejohn »

Just wanted to stop by to say thanks a million for this plugin! It's definitely very helpful when I play music in eventghost! :D
Post Reply