Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

System sound volume

Announcements of new plugins or updates.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

erlis
Plugin Author
Posts: 37
Joined: March 30th, 2006, 1:50 pm
Contact:

System sound volume

Post by erlis »

I have develped a plugin that displays current system sound volume

Usage:
Text01="Volume $dll(volume,1,,)"
Text02="Volume $dll(volume,2,,)"
Text03="Volume $dll(volume,3,,)"
Text04="Volume $dll(volume,4,,)"

Will display:
Volume 0%
Volume
Volume 0
Volume 00

I know there is some features that my be added but it's a start at least.


The plugin requires .NET framework 1.1 and can be found here: http://erlis.se/lcdsmartie/volume.dll


Edit: new url.
Last edited by erlis on March 31st, 2006, 8:15 am, edited 1 time in total.
fishthecat
LCD Smartie Fanatic
Posts: 132
Joined: March 9th, 2005, 2:21 pm
Location: UK

great!

Post by fishthecat »

Thanks! I'll try it out tonight.

What prerequisites does it have? Will the dll just work, or do I need any frameworks installed too?
erlis
Plugin Author
Posts: 37
Joined: March 30th, 2006, 1:50 pm
Contact:

Post by erlis »

Forgot to mentione that it requires .NET framework for Visual Studio 2003
fishthecat
LCD Smartie Fanatic
Posts: 132
Joined: March 9th, 2005, 2:21 pm
Location: UK

Yey!

Post by fishthecat »

Woo! It's working great!
Now I have a bar showing my volume.
Thanks so much!
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Nice plugin erlis :lol:


hit us back with more!
johnmacd
Posts: 26
Joined: March 6th, 2006, 3:08 am

Post by johnmacd »

Cool plugin. I gotta try this tonight.

I have a more of a general question, is it possible to have this plugin display on the screen for only a few seconds while the volume is being changed? and then have the screen revert back to whatever else it was displaying.

This is probably more of a LCD Smartie question, than for this plugin.
erlis
Plugin Author
Posts: 37
Joined: March 30th, 2006, 1:50 pm
Contact:

Post by erlis »

johnmacd wrote:Cool plugin. I gotta try this tonight.

I have a more of a general question, is it possible to have this plugin display on the screen for only a few seconds while the volume is being changed? and then have the screen revert back to whatever else it was displaying.

This is probably more of a LCD Smartie question, than for this plugin.
I have updated the plugin so function5 returns 1 if the volume has changed and 0 if it hasn't.

So add an action like this in your smartie.ini

Code: Select all

Action03Variable=$dll(volume,5,1,1)
Action03Condition=2
Action03ConditionValue=1
Action03Action=GotoScreen(15)
Now you can specify what you whant to show when the volume changes on Screen 15.
fishthecat
LCD Smartie Fanatic
Posts: 132
Joined: March 9th, 2005, 2:21 pm
Location: UK

single bar.

Post by fishthecat »

EDIT: No need to to this anymore thanks to the tiny bar plugin! http://www.lansley.co.uk/forum/phpBB2/v ... .php?t=561
I'll leave this post here in case it gives others ideas.



I've created a 'signal strength' type triangle to show my system volume in one charactor space.

Here's what it looks like when animated. In reality, it just moves up and down when I press my volume buttons.
Image

My Dell multimedia keyboard has volume buttons on it. When pressed they raise and lower the system volume by exactly 4%. So, by using sandr.dll to detect volumes of 0%, 4%, 8%... etc. I can then have it replace those numerical percentages with a custom character.

Here's the code I'm using in smartie. Note that the volume is shown as +volwithleadingzero+.

Code: Select all

$dll(sandr,1,+$dll(volume,4,,)+,)$Chr(136)
Here's the omit.ini file I'm using with sandr.dll. The string "16" is contained in $CustomChar(8,0,0,0,0,0,0,0,16) so I had to put in a work around to stop 16 being replaced in the customchar when the volume was at 16%. I chose to wrap my volumes with + symbols.

Code: Select all

[Search1]
1=+00+
2=+04+
3=+08+
4=+12+
5=+16+
6=+20+
7=+24+
8=+28+
9=+32+
10=+36+
11=+40+
12=+44+
13=+48+
14=+52+
15=+56+
16=+60+
17=+64+
18=
19=
20=


[Replace1]
1=$CustomChar(8,0,0,0,0,0,0,0,0)
2=$CustomChar(8,0,0,0,0,0,0,0,0)
3=$CustomChar(8,0,0,0,0,0,0,0,16)
4=$CustomChar(8,0,0,0,0,0,0,24,16)
5=$CustomChar(8,0,0,0,0,0,0,24,16)
6=$CustomChar(8,0,0,0,0,0,24,24,16)
7=$CustomChar(8,0,0,0,0,0,24,24,16)
8=$CustomChar(8,0,0,0,0,28,24,24,16)
9=$CustomChar(8,0,0,0,0,28,24,24,16)
10=$CustomChar(8,0,0,0,28,28,24,24,16)
11=$CustomChar(8,0,0,0,28,28,24,24,16)
12=$CustomChar(8,0,0,30,28,28,24,24,16)
13=$CustomChar(8,0,0,30,28,28,24,24,16)
14=$CustomChar(8,0,30,30,28,28,24,24,16)
15=$CustomChar(8,0,30,30,28,28,24,24,16)
16=$CustomChar(8,31,30,30,28,28,24,24,16)
17=$CustomChar(8,31,30,30,28,28,24,24,16)
18=
19=
20= 
It works well, but stops working if the volume goes to a value I'm not replacing, like 25%. That will only happen if I change the volume using something other than my keyboard.
Is there a rounding function in smartie I can use to round the volume %s to the nearest 5% say?
Last edited by fishthecat on April 11th, 2006, 12:41 am, edited 1 time in total.
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

@ fishthecat
I don't know if you noticed about the tiny bar plugin...

The animation is similar to this.... Please check it!
I'm going to add this style to my plugin if you agree on this!

Do you agree to add this style on next release of the plugin?
fishthecat
LCD Smartie Fanatic
Posts: 132
Joined: March 9th, 2005, 2:21 pm
Location: UK

Post by fishthecat »

limbo wrote:@ fishthecat
I don't know if you noticed about the tiny bar plugin...

The animation is similar to this.... Please check it!
I'm going to add this style to my plugin if you agree on this!

Do you agree to add this style on next release of the plugin?
Hey, that's a nice plugin which works brilliantly.

However, I'm using the winamp graphic equaliser on the same screen. I've set it to use 7 of the 8 custom chars. That gives me 1 customchar to use for volume, char #8. Tiny bar looks to use all 8 chars, rather than re-setting one customchar, so it's stops the graphic equaliser from working.

Is there a problem with me re-setting the customchar each time like I have above?
Would there be an issue with Tiny Bar being tweaked to use just one custom char, and for us to tell it which one ( 1-8 ) to use?

EDIT: Are you asking if you can add that triangle to Tiny bar as say style 7? If so, please go ahead. :)
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Next version will have more flexible functionality using only one custom character and more styles (7 view and more)
Pleng2006
Posts: 13
Joined: April 15th, 2006, 5:40 pm

Post by Pleng2006 »

Hmmm I'm using the following line:

$dll(volume,1,,)

And my lcd (imon) is showing 2101%
It occasionally flips between 15xxxx and 0 but is usually 2101

My soundcard is a EMU 1212m, but as it's supposed to be displaying the system volume this shouldnt really have any effect?
erlis
Plugin Author
Posts: 37
Joined: March 30th, 2006, 1:50 pm
Contact:

Post by erlis »

Pleng2006 wrote:Hmmm I'm using the following line:

$dll(volume,1,,)

And my lcd (imon) is showing 2101%
It occasionally flips between 15xxxx and 0 but is usually 2101

My soundcard is a EMU 1212m, but as it's supposed to be displaying the system volume this shouldnt really have any effect?
Hmm, strange, I haven't had anyproblems myself with this..

Does the value change when you change the system sound volume?

What kind of drivers are you using for your soundcard?

Are you using .NET Framework 1.1?
Pleng2006
Posts: 13
Joined: April 15th, 2006, 5:40 pm

Post by Pleng2006 »

erlis... the numbers change rarely and when they do there seems to be no rhyme or reason for the change... I can't even make out the number because it changes mack to 2101 so quickley.

I'm using the bundled EMU drivers for the soundcard.

I've got .NET Framework 2.0 installed
HartleyC
Posts: 6
Joined: January 28th, 2007, 9:02 pm
Location: London

Volume Muted

Post by HartleyC »

Is there any way to know when the volume is muted (rather than simply set to 0)? Would be cool to have a mute icon.
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Re: Volume Muted

Post by limbo »

HartleyC wrote:Is there any way to know when the volume is muted (rather than simply set to 0)? Would be cool to have a mute icon.
Use my search and replace plugin!
Take a look here: http://forums.lcdsmartie.org/viewtopic.php?t=733
HartleyC
Posts: 6
Joined: January 28th, 2007, 9:02 pm
Location: London

Re: Volume Muted

Post by HartleyC »

limbo wrote:
HartleyC wrote:Is there any way to know when the volume is muted (rather than simply set to 0)? Would be cool to have a mute icon.
Use my search and replace plugin!
Take a look here: http://forums.lcdsmartie.org/viewtopic.php?t=733
Yes, that's what I had in mind. However I need to know when the volume is muted in the first place - volume 0 and volume muted are different values (I think).
pepepepe
Posts: 3
Joined: October 4th, 2007, 12:11 am

Post by pepepepe »

I have problems with Vista, it only changes the volume of the application, but it doesn't change the system volume.
Any ideas?
Alzer
Posts: 2
Joined: October 23rd, 2007, 8:55 pm

Post by Alzer »

Hey everyone,

I'm pretty new to LCD Smartie but I already love it. It lets me do exactly what I want with my LCD. Until recently I was looking for a way to show my system volume on the LCD and now I seem to have found it.

I got really excited and wanted to try it out so I click the link and... is met by the not so wonderful "Server not found" page.

Therefore, I ask anyone to make this plugin available for me to download.

Thanks in advance

//A
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Alzer wrote:Hey everyone,

I'm pretty new to LCD Smartie but I already love it. It lets me do exactly what I want with my LCD. Until recently I was looking for a way to show my system volume on the LCD and now I seem to have found it.

I got really excited and wanted to try it out so I click the link and... is met by the not so wonderful "Server not found" page.

Therefore, I ask anyone to make this plugin available for me to download.

Thanks in advance

//A
:smt006 Say hello to your lucky star!
Log in and download it from here!


EDIT: Alzer use this with the tinybar plugin (download it from my site) you gonna love it! :D :smt081
You do not have the required permissions to view the files attached to this post.
Alzer
Posts: 2
Joined: October 23rd, 2007, 8:55 pm

Post by Alzer »

limbo wrote: :smt006 Say hello to your lucky star!
Log in and download it from here!


EDIT: Alzer use this with the tinybar plugin (download it from my site) you gonna love it! :D :smt081
Thanks man! The download worked perfectly but I can't get it to work. It just says "[Dll: Can not load plugin]".

Maybe I did something wrong?

Let me retrace my steps:

1) Downloaded the .zip file
2) Placed the volume.dll in the LCD Smartie\plugins folder
3) Copied and pasted "Volume $dll(volume,1,,)" without the qoutes into one of the screens

I am using LCD Smartie 5.4 if that's any help.

//A


EDIT:

Missing .NET Framework and a missing .dll was the cause of the problem.

Everything works fine now. Thanks for all the help!

//A
ralphie
Posts: 1
Joined: March 20th, 2007, 10:36 am

I entered the lines but it does not work, please help me.

Post by ralphie »

erlis wrote:
johnmacd wrote:Cool plugin. I gotta try this tonight.

I have a more of a general question, is it possible to have this plugin display on the screen for only a few seconds while the volume is being changed? and then have the screen revert back to whatever else it was displaying.

This is probably more of a LCD Smartie question, than for this plugin.
I have updated the plugin so function5 returns 1 if the volume has changed and 0 if it hasn't.

So add an action like this in your smartie.ini

Code: Select all

Action03Variable=$dll(volume,5,1,1)
Action03Condition=2
Action03ConditionValue=1
Action03Action=GotoScreen(15)
Now you can specify what you whant to show when the volume changes on Screen 15.
erlis
Plugin Author
Posts: 37
Joined: March 30th, 2006, 1:50 pm
Contact:

Post by erlis »

I don't have a LCD tor run LCD-smartie for anymore so I'm very unactive here.


I do recal to use screen 15 for volume display, so my action 3 waits for the volume to change and then displays the volume.
Jake of All Trades
Posts: 9
Joined: September 27th, 2007, 12:55 am
Contact:

Post by Jake of All Trades »

Is there a way to get this to display Line In, Microphone, etc. volume? Thanks!
EvylRat
Posts: 53
Joined: September 26th, 2007, 5:33 pm
Contact:

Re: single bar.

Post by EvylRat »

fishthecat wrote:EDIT: No need to to this anymore thanks to the tiny bar plugin! http://www.lansley.co.uk/forum/phpBB2/v ... .php?t=561
I'll leave this post here in case it gives others ideas.



I've created a 'signal strength' type triangle to show my system volume in one charactor space.

Here's what it looks like when animated. In reality, it just moves up and down when I press my volume buttons.
Image

My Dell multimedia keyboard has volume buttons on it. When pressed they raise and lower the system volume by exactly 4%. So, by using sandr.dll to detect volumes of 0%, 4%, 8%... etc. I can then have it replace those numerical percentages with a custom character.

Here's the code I'm using in smartie. Note that the volume is shown as +volwithleadingzero+.

Code: Select all

$dll(sandr,1,+$dll(volume,4,,)+,)$Chr(136)
Here's the omit.ini file I'm using with sandr.dll. The string "16" is contained in $CustomChar(8,0,0,0,0,0,0,0,16) so I had to put in a work around to stop 16 being replaced in the customchar when the volume was at 16%. I chose to wrap my volumes with + symbols.

Code: Select all

[Search1]
1=+00+
2=+04+
3=+08+
4=+12+
5=+16+
6=+20+
7=+24+
8=+28+
9=+32+
10=+36+
11=+40+
12=+44+
13=+48+
14=+52+
15=+56+
16=+60+
17=+64+
18=
19=
20=


[Replace1]
1=$CustomChar(8,0,0,0,0,0,0,0,0)
2=$CustomChar(8,0,0,0,0,0,0,0,0)
3=$CustomChar(8,0,0,0,0,0,0,0,16)
4=$CustomChar(8,0,0,0,0,0,0,24,16)
5=$CustomChar(8,0,0,0,0,0,0,24,16)
6=$CustomChar(8,0,0,0,0,0,24,24,16)
7=$CustomChar(8,0,0,0,0,0,24,24,16)
8=$CustomChar(8,0,0,0,0,28,24,24,16)
9=$CustomChar(8,0,0,0,0,28,24,24,16)
10=$CustomChar(8,0,0,0,28,28,24,24,16)
11=$CustomChar(8,0,0,0,28,28,24,24,16)
12=$CustomChar(8,0,0,30,28,28,24,24,16)
13=$CustomChar(8,0,0,30,28,28,24,24,16)
14=$CustomChar(8,0,30,30,28,28,24,24,16)
15=$CustomChar(8,0,30,30,28,28,24,24,16)
16=$CustomChar(8,31,30,30,28,28,24,24,16)
17=$CustomChar(8,31,30,30,28,28,24,24,16)
18=
19=
20= 
It works well, but stops working if the volume goes to a value I'm not replacing, like 25%. That will only happen if I change the volume using something other than my keyboard.
Is there a rounding function in smartie I can use to round the volume %s to the nearest 5% say?
Adapt the one I've done for my imon,
http://forums.lcdsmartie.org/viewtopic.php?t=1635
I guess the code could be really tidied up like you've done yours, using the sandr.dll plugin.
I wish the warnif was more like an "IF... ELSE..."
Post Reply