Page 1 of 2

System sound volume

Posted: March 30th, 2006, 2:02 pm
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.

great!

Posted: March 30th, 2006, 3:14 pm
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?

Posted: March 30th, 2006, 3:15 pm
by erlis
Forgot to mentione that it requires .NET framework for Visual Studio 2003

Yey!

Posted: March 30th, 2006, 6:02 pm
by fishthecat
Woo! It's working great!
Now I have a bar showing my volume.
Thanks so much!

Posted: March 30th, 2006, 6:59 pm
by limbo
Nice plugin erlis :lol:


hit us back with more!

Posted: March 30th, 2006, 10:05 pm
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.

Posted: March 31st, 2006, 4:19 pm
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.

single bar.

Posted: April 7th, 2006, 6:58 pm
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?

Posted: April 7th, 2006, 7:01 pm
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?

Posted: April 7th, 2006, 7:13 pm
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. :)

Posted: April 7th, 2006, 9:01 pm
by limbo
Next version will have more flexible functionality using only one custom character and more styles (7 view and more)

Posted: April 22nd, 2006, 1:04 pm
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?

Posted: April 24th, 2006, 9:52 am
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?

Posted: April 24th, 2006, 7:22 pm
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

Volume Muted

Posted: February 5th, 2007, 1:46 am
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.

Re: Volume Muted

Posted: February 5th, 2007, 7:36 am
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

Re: Volume Muted

Posted: February 5th, 2007, 12:34 pm
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).

Posted: October 7th, 2007, 1:22 pm
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?

Posted: October 23rd, 2007, 9:00 pm
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

Posted: October 23rd, 2007, 10:17 pm
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

Posted: October 23rd, 2007, 10:56 pm
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

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

Posted: November 5th, 2007, 11:32 am
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.

Posted: November 5th, 2007, 2:03 pm
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.

Posted: January 28th, 2008, 2:54 am
by Jake of All Trades
Is there a way to get this to display Line In, Microphone, etc. volume? Thanks!

Re: single bar.

Posted: March 15th, 2008, 12:04 pm
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..."