System sound volume

Announcements of new plugins or updates.

Moderators: caesar, IFR, mattcro, limbo, _X7JAY7X_

System sound volume

Postby erlis » Thu Mar 30, 2006 3:02 pm

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 Fri Mar 31, 2006 9:15 am, edited 1 time in total.
erlis
Plugin Author
 
Posts: 37
Joined: Thu Mar 30, 2006 2:50 pm

great!

Postby fishthecat » Thu Mar 30, 2006 4:14 pm

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?
User avatar
fishthecat
LCD Smartie Fanatic
 
Posts: 132
Joined: Wed Mar 09, 2005 3:21 pm
Location: UK

Postby erlis » Thu Mar 30, 2006 4:15 pm

Forgot to mentione that it requires .NET framework for Visual Studio 2003
erlis
Plugin Author
 
Posts: 37
Joined: Thu Mar 30, 2006 2:50 pm

Yey!

Postby fishthecat » Thu Mar 30, 2006 7:02 pm

Woo! It's working great!
Now I have a bar showing my volume.
Thanks so much!
User avatar
fishthecat
LCD Smartie Fanatic
 
Posts: 132
Joined: Wed Mar 09, 2005 3:21 pm
Location: UK

Postby limbo » Thu Mar 30, 2006 7:59 pm

Nice plugin erlis :lol:


hit us back with more!
User avatar
limbo
Plugin Author
 
Posts: 1267
Joined: Sun Feb 13, 2005 8:38 pm
Location: Athens - Greece

Postby johnmacd » Thu Mar 30, 2006 11:05 pm

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.
johnmacd
 
Posts: 26
Joined: Mon Mar 06, 2006 4:08 am

Postby erlis » Fri Mar 31, 2006 5:19 pm

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: Thu Mar 30, 2006 2:50 pm

single bar.

Postby fishthecat » Fri Apr 07, 2006 7:58 pm

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 Tue Apr 11, 2006 1:41 am, edited 1 time in total.
User avatar
fishthecat
LCD Smartie Fanatic
 
Posts: 132
Joined: Wed Mar 09, 2005 3:21 pm
Location: UK

Postby limbo » Fri Apr 07, 2006 8:01 pm

@ 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?
User avatar
limbo
Plugin Author
 
Posts: 1267
Joined: Sun Feb 13, 2005 8:38 pm
Location: Athens - Greece

Postby fishthecat » Fri Apr 07, 2006 8:13 pm

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. :)
User avatar
fishthecat
LCD Smartie Fanatic
 
Posts: 132
Joined: Wed Mar 09, 2005 3:21 pm
Location: UK

Postby limbo » Fri Apr 07, 2006 10:01 pm

Next version will have more flexible functionality using only one custom character and more styles (7 view and more)
User avatar
limbo
Plugin Author
 
Posts: 1267
Joined: Sun Feb 13, 2005 8:38 pm
Location: Athens - Greece

Postby Pleng2006 » Sat Apr 22, 2006 2:04 pm

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?
Pleng2006
 
Posts: 13
Joined: Sat Apr 15, 2006 6:40 pm

Postby erlis » Mon Apr 24, 2006 10:52 am

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?
erlis
Plugin Author
 
Posts: 37
Joined: Thu Mar 30, 2006 2:50 pm

Postby Pleng2006 » Mon Apr 24, 2006 8:22 pm

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
Pleng2006
 
Posts: 13
Joined: Sat Apr 15, 2006 6:40 pm

Volume Muted

Postby HartleyC » Mon Feb 05, 2007 2:46 am

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.
HartleyC
 
Posts: 6
Joined: Sun Jan 28, 2007 10:02 pm
Location: London

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 0 guests