Help - Search - Members - Calendar
Full Version: Home stereo display
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
musosticky
Thanks again russel for helping me shrink foobar some more. Loving this code and have been with it since day one and will be with it til the end (although I dont see how more perfect you can get it.

Currently looking for buttons that resemble a stereo setup if I find or design them I'll upload them. That being said there is a button set called Artless in the custom Buttons Thread that fit the bill quite well
musosticky
@Stuart60611

Thanks for the explanation of mood tagging. I fear I have a job on my hands tagging the mood of my 19,000+ music files *sigh* Thanks though I really like the idea
Russell777
Finaly,there's a first theme for V 1.8 by BiNiaRiS see the first post under "Themes"
Lance Uppercut
I've been following this display from the beginning and thanks for the great work.
The only thing I've missed are the little indicators between the track number and time. there are three of them and I can't get them to turn on. I can't even see the TRACK one?

Any help?

IPB Image
acedriver
QUOTE(Lance Uppercut @ Sep 15 2006, 18:49) *

I've been following this display from the beginning and thanks for the great work.
The only thing I've missed are the little indicators between the track number and time. there are three of them and I can't get them to turn on. I can't even see the TRACK one?

Any help?


you need this, http://foobar.bowron.us/foo_cwb_hooks.zip
PonasX
DELETED
Stuart60611
QUOTE(musosticky @ Sep 15 2006, 03:07) *

@Stuart60611

Thanks for the explanation of mood tagging. I fear I have a job on my hands tagging the mood of my 19,000+ music files *sigh* Thanks though I really like the idea


I hear you on how onerous the task is to now go and assign mood to your whole collection. However, you will be surprised how quickly you will compile this data as you listen to your collection. I have several suggestions on how to make this job a little easier.

First, I would create buttons for both rating and mood with separate buttons for each category assigned to a masstagger script to assign the values so that you can quickly do this for the now playing track. You can see how I did this in the appearance thread (link on prior page of this thread).

Second, I often operate foobar with a Streamzap remote control and girder. I have my rating and mood masstagger scripts assigned to buttons on the remote (1-5 for rating and 7-9 for mood). I also have the pretty pop-up display (bound to another another button on the remote) configured to show hudge text upon activation and so that line 1 is artist, line 2 is title, line 3 is rating, and line 4 is mood. This way I can be siting on the couch listening to music, hit a key on the remote to see what is playing in big text via pretty pop up which is viewable from my couch showing the artist, title, rating, and mood of the now playing track; then assign a rating and mood values for the now playing track via the remote; and see the data being correctly added to the track in real time via the big text pretty pop up display. This takes a lot of the pain out of the process.


The Streamzap remote costs about $30 usd and girder about same.

(Note: The explanation of the rating and mood tags can be found on the prior page of this thread.)
musosticky
QUOTE(Stuart60611 @ Sep 15 2006, 09:33) *

First, I would create buttons for both rating and mood with separate buttons for each category assigned to a masstagger script to assign the values so that you can quickly do this for the now playing track.


already done, my pedigree chum, just looking for half decent button images. Thanks again for the explanation as Its gonna help me build a few playlists which Ive never been big on in the past
kockroach
Hey Russell,

Updates look great. However, I noticed a couple of things that might need changing. The "CBR" flag wasn't removed when "LOSSLESS" files like FLAC are played. It still shows both "LOSSLESS" and "CBR". Also, in the box with bitrate, filesize, etc., I noticed that the fonts don't display properly for the "UCM", plus it would make sense to not show the "%" when displaying "UCM".
Russell777
QUOTE(kockroach @ Sep 15 2006, 23:43) *

Hey Russell,

Updates look great. However, I noticed a couple of things that might need changing. The "CBR" flag wasn't removed when "LOSSLESS" files like FLAC are played. It still shows both "LOSSLESS" and "CBR". Also, in the box with bitrate, filesize, etc., I noticed that the fonts don't display properly for the "UCM", plus it would make sense to not show the "%" when displaying "UCM".

Thanks for a reminder,i completely forgot about those issues,will be fixed soon.
Here's a little Hi Fi buttons fcb that look great with the home stereo panel as my way to say i'm sorry.

IPB Image
Hi Fi buttons

EDIT The issues mentioned by kockroach had been fixed,i uploaded a new archive please update.
kockroach
Thanks for the quick fix, Russell! Looks great! cool.gif
Russell777
The themes section for V 1.8 moved to post #3.Now including amazing theme by vader897
Note:All themes for V 1.8 are compatible with V 1.7.X but not backwards.
I also uploaded a new archive of V 1.7.3 MICRO with few cosmetic fixes.Enjoy smile.gif
Sword
i was wondering if it is possible to center the micro panel based on the trackinfo panel's width

right now its current aligned absolutely according to the left side of the panel

id like to have it center the contents of the display as you adjust the panels width

so if its possible id appreciate it wink.gif

thanks
Sword
vader897
Gday, Russell
I was wondering how I would go about changing the fonts used. I did a bit of poking around and could not work out how I could change the fonts in the themes section.

If its not to much trouble could you please implement a way for the fonts to be changed in the themes section so that themes using different fonts can be distibuted with ease.

I noticed in the main settings 'alt font' etc but could now work out what these did.

Have a good day
Russell777
QUOTE(Sword @ Sep 18 2006, 09:28) *

i was wondering if it is possible to center the micro panel based on the trackinfo panel's width

right now its current aligned absolutely according to the left side of the panel

id like to have it center the contents of the display as you adjust the panels width

so if its possible id appreciate it wink.gif

thanks
Sword

Already thought about it,it will be implemented over the next few days.

QUOTE
Gday, Russell
I was wondering how I would go about changing the fonts used. I did a bit of poking around and could not work out how I could change the fonts in the themes section.

If its not to much trouble could you please implement a way for the fonts to be changed in the themes section so that themes using different fonts can be distibuted with ease.

I noticed in the main settings 'alt font' etc but could now work out what these did.

Have a good day


Like you said there's a variable named "alt_font" that sets costum font for title-artist-album section,you can copy it from the "definitions0" section into your theme definitions,for complete explanation about the variables see the "Instructions.txt" (included in the archive)
Stuart60611
For anyone interested, I created a new panel to go along with the home stereo display to display playlist information.
unabatedshagie
Could you post the code for the panel??
Stuart60611
QUOTE(unabatedshagie @ Sep 25 2006, 04:20) *

Could you post the code for the panel??



i could, but I thought it was easier just to create an archive for both panels b/c you also need the new images. The link I posted on this thread provides a download location. Let me know if that does not work for you, and I can post or send you the code and images.
unabatedshagie
QUOTE(Stuart60611 @ Sep 25 2006, 16:15) *

QUOTE(unabatedshagie @ Sep 25 2006, 04:20) *

Could you post the code for the panel??



i could, but I thought it was easier just to create an archive for both panels b/c you also need the new images. The link I posted on this thread provides a download location. Let me know if that does not work for you, and I can post or send you the code and images.
Sorry, I didn't notice the download link.
blaxima
Now that I've updated to foobar .9.4 the home stereo code displays VBR files as CBR





EDIT. It seems to have this problem when it detects if the MP3 was encoded by Lame. It first displays as a VBR MP3 but when it changes to LAME MP3 it also changes the VBR display to CBR
kockroach
Anyone else have the text on the panel get shifted outside of the boxes with the newest foo_uie_trackinfo_mod?
spex04
QUOTE(kockroach @ Sep 27 2006, 06:44) *

Anyone else have the text on the panel get shifted outside of the boxes with the newest foo_uie_trackinfo_mod?


It's because the horizontal/vertical padding options have been removed from the panel.

A workaround might be to add $padding(10,10) to the top of the code, but that probably won't work.

A guaranteed way to get it to work is to modify each $drawrect function in the code, adding 10 onto each x/y value.
kockroach
QUOTE(spex04 @ Sep 27 2006, 00:48) *

It's because the horizontal/vertical padding options have been removed from the panel.

A workaround might be to add $padding(10,10) to the top of the code, but that probably won't work.

Thanks!

Did even notice that, but I see it now. Adding a single $padding(12,10) line worked okay, but alignment isn't perfect everywhere. Going with (10,10) was too far off horizontally.
Russell777
Due to intensive development of foobar and trackinfo mod panel,major updates of home stereo display are expected to land over the next days for all three branches of it.
On to do list:fixing the constantly changing vbr recognition under new versions of foobar (what will be the end of it?),fixing alignment with new version of trackinfo mod panel,adding some features such as volume indictor,
time played total etc.Also on the further development list an improvements and additional features to the
playlist info panel by Stuart60611.Please post your requests,and for now i'm not suggesting you to upgrade your trackinfo mod panel as it will get you into trouble with alignment.
xchaser
Is there a how to get this running instructions. I can't understand the one thats in the file. I have all the components and I don't know where to go now to get the themes working.
Stuart60611
QUOTE(xchaser @ Sep 27 2006, 17:36) *

Is there a how to get this running instructions. I can't understand the one thats in the file. I have all the components and I don't know where to go now to get the themes working.



You paste the code from the component download into your trackinfo mod panel (note you need the old trackinfo mod panel b/c the new one will not work yet with this code, and you can download the old trackinfo mod panel in the trackinfo mod thread under the link on the last page). Then you paste the desired theme code under the themes section of the component download code. You put the image for the theme in a folder under your foobar root directory called images. You then go to the definitons section of the component download code and tweak the settings to your liking according to the instructions. As far as selecting the theme, the first definition is for theme where put the theme name if you want to use a theme or otherwise leave blank.
xchaser
QUOTE(Stuart60611 @ Sep 27 2006, 14:43) *

QUOTE(xchaser @ Sep 27 2006, 17:36) *

Is there a how to get this running instructions. I can't understand the one thats in the file. I have all the components and I don't know where to go now to get the themes working.



You paste the code from the component download into your trackinfo mod panel (note you need the old trackinfo mod panel b/c the new one will not work yet with this code, and you can download the old trackinfo mod panel in the trackinfo mod thread under the link on the last page). Then you paste the desired theme code under the themes section of the component download code. You put the image for the theme in a folder under your foobar root directory called images. You then go to the definitons section of the component download code and tweak the settings to your liking according to the instructions. As far as selecting the theme, the first definition is for theme where put the theme name if you want to use a theme or otherwise leave blank.


thanks for the help but I am still confused. Oh well Thanks again.
MrEnergizer
Russell777, excellent plugin. It has got me messing with my Foobar cfg agen after a long break. crying.gif
Keep up the good work.
wolfsong
What are the heart icons?
...Just Elliott
Mood.
Russell777
VERSION 1.9 MICRO IS OUT (see the first post)
This version main purpose is to provide compatibility with the latest trackinfo mod component version and
to use it's and latest cwb hooks features.Now the mood and rating editing is one mouse click away from you!
(Just click on the desired rating\mood symbol).I've also changed the playback statistics info alignment
and it now changes every 4 sec in single given rectangle.Also added volume indication and made many
code improvements,Enjoy smile.gif

P.S. Updates for other branches are coming soon together with add on panel by Stuart60611 .
kockroach
Hey Russell, the new mod looks great! Thanks!

I noticed a couple of things though. First, I have MP3 and FLAC files, which have the %track% tag in the XX/YY format. foobar2000 reads the MP3 files as having %tracknumber% and %totaltracks% tags, but the FLAC files are still read as a single %track% tag with the XX/YY format. It might be best to change
CODE
$get(active)[%tracknumber%]
to
CODE
$get(active)[$substr(%tracknumber%,1,2)]
which will compensate for either format.

Also, I noticed in the last played/first played section of the panel that it is saying a song of mine first played yesterday (which should be Sept 28th), but the first played tag actually shows Sept 27th. It is saying that two days ago is actually yesterday. Also, does the code truly account for leap years and different numbers of days in certain months? It seems that months are based on 30 days only. Then again, I could just be getting confused by all of the code in there.

Thanks again for the awesome work.




Russell777
QUOTE(kockroach @ Sep 30 2006, 00:28) *

Hey Russell, the new mod looks great! Thanks!

I noticed a couple of things though. First, I have MP3 and FLAC files, which have the %track% tag in the XX/YY format. foobar2000 reads the MP3 files as having %tracknumber% and %totaltracks% tags, but the FLAC files are still read as a single %track% tag with the XX/YY format. It might be best to change
CODE
$get(active)[%tracknumber%]
to
CODE
$get(active)[$substr(%tracknumber%,1,2)]
which will compensate for either format.

Also, I noticed in the last played/first played section of the panel that it is saying a song of mine first played yesterday (which should be Sept 28th), but the first played tag actually shows Sept 27th. It is saying that two days ago is actually yesterday. Also, does the code truly account for leap years and different numbers of days in certain months? It seems that months are based on 30 days only. Then again, I could just be getting confused by all of the code in there.

Thanks again for the awesome work.

Yes you're right about the 30 days part,it could be easily converted to specify exactly how long every specific month is,but i thought that it will add a lot of code lines and hurt the preformance.As for yesterday issue:
the date range is calculated by cwb hooks function,that will tell you that it's two days old only if 48 hours
has passed from the last playback time (it considers not only the date but also the time),i used to use
home made code for that part in the past (without time consideration),but have switched to cwbowron's
function as i find it much more accurate.As for flac files can you provide me with an example file,so i'll
understand what the problem is?
kockroach
QUOTE(Russell777 @ Sep 29 2006, 18:04) *

Yes you're right about the 30 days part,it could be easily converted to specify exactly how long every specific month is,but i thought that it will add a lot of code lines and hurt the preformance.As for yesterday issue:
the date range is calculated by cwb hooks function,that will tell you that it's two days old only if 48 hours
has passed from the last playback time (it considers not only the date but also the time),i used to use
home made code for that part in the past (without time consideration),but have switched to cwbowron's
function as i find it much more accurate.As for flac files can you provide me with an example file,so i'll
understand what the problem is?

I understand what you mean about why it might show yesterday, but it still doesn't seem right. cwbowron has an example code on his wiki page for cwb_hooks, which is the following:
CODE
$if(%last_played%, $puts(diff,$cwb_datediff(%last_played%,%cwb_systemdate%)) Played $ifgreater(1,$get(diff),Today, $ifgreater(2,$get(diff),Yesterday, $get(diff) days ago)), No last played info)

If I change %last_played% to %first_played%, and throw this code into a blank track_info_mod panel, it properly shows "2 days ago" for the song that shows "Yesterday" in your Home Stereo mod.

If I can, where would I send you an example FLAC file?
Russell777
QUOTE(kockroach @ Sep 30 2006, 01:58) *


If I change %last_played% to %first_played%, and throw this code into a blank track_info_mod panel, it properly shows "2 days ago" for the song that shows "Yesterday" in your Home Stereo mod.

If I can, where would I send you an example FLAC file?

Ok i'll see what can be done,you know it's pretty hard to navigate at this code as it has some sort of complexity
in it,in fact if you ask me today how do things work in sections that i wrote a week ago the answer will be:
"I dunno... blink.gif ",but sure i'll fix it.Send me the file to Russel777@gmail.com.
kockroach
Hey Russell,

I made some changes to your "Date Range" section. Instead of Showing the number of years, months, etc., and today or yesterday, I have it showing the date in a format like "September 29th, at 8:55:07 PM". Thought you might like to use it as a base for your mod. It does the same swap of "First Played", "Last Played", and "Times Played". It took a bit to figure out how you had yours set up, but once I did it was easy to modify my old Track Info Panel code.

Here it is
CODE

//////////////////////////////////////////Date Range///////////////////////////////////////////////
$alignabs(189,$add($div(%_height%,5),38),%_width%,%_height%,,top)
$font(lcdmono2,8,bold$get(font_options),)$get(active)$ifequal($put(yoo,$div($mod(%_time_elapsed_seconds%,12),4)),0,
$if(%last_played%,$puts(timestamp,%last_played%),),
$select($get(yoo),
$if(%first_played%,$puts(timestamp,%first_played%),),
$puts(timestamp,$add(%play_count%,%play_counter%))))


// Day Conversion
$puts(day,$substr($get(timestamp),9,10))
$if($get(timestamp),
$if($strcmp($left($get(day),1),0),$puts(day,$right($get(day),1))))
$if($strcmp($get(day),11),$puts(xx,th),
$if($strcmp($get(day),12),$puts(xx,th),
$if($strcmp($get(day),13),$puts(xx,th),
$if($strcmp($right($get(day),1),1),$puts(xx,st),
$if($strcmp($right($get(day),1),2),$puts(xx,nd),
$if($strcmp($right($get(day),1),3),$puts(xx,rd),
$puts(xx,th)))))))

// Month Conversion
$puts(month,$substr($get(timestamp),6,7))
$puts(month_name,$select($get(month),
Jan.,Feb.,Mar.,Apr.,May,Jun.,Jul.,Aug.,Sep.,Oct.,Nov.,Dec.))

// Year Conversion
$puts(year,$substr($get(timestamp),1,4))

// Time Conversion
$puts(hour,$substr($get(timestamp),12,13))
$puts(min,$substr($get(timestamp),14,16))
$puts(sec,$substr($get(timestamp),17,19))

// 24 Hour to 12 Hour Conversion
$if($strcmp($left($get(hour),1),0),$puts(hour1,$right($get(hour),1)))
$if($strcmp($left($get(hour),1),1),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($left($get(hour),1),2),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($get(hour),00),$puts(hour1,12))
$if($strcmp($get(hour),10),$puts(hour1,10))
$if($strcmp($get(hour),11),$puts(hour1,11))
$if($strcmp($get(hour),12),$puts(hour1,12))

// AM/PM Conversion
$if($strcmp($get(hour),00),$puts(yy,am))
$if($strcmp($get(hour),10),$puts(yy,am))
$if($strcmp($get(hour),11),$puts(yy,am))
$if($strcmp($get(hour),12),$puts(yy,pm))
$if($strcmp($get(hour),24),$puts(yy,am))
$if($strcmp($left($get(hour),1),0),$puts(yy,am))
$if($strcmp($left($get(hour),1),1),$puts(yy,pm))
$if($strcmp($left($get(hour),1),2),$puts(yy,pm))

// Date Format
$puts(time_of_year,$get(month_name) $get(day)$get(xx)',' $get(year))

// Time Format
$puts(time_of_day,$get(hour1)$get(min)$get(sec) $get(yy))


$ifequal($put(yoo,$div($mod(%_time_elapsed_seconds%,12),4)),0,
Last played: $if(%last_played%,$get(time_of_year) at $get(time_of_day),'Never'),
$select($get(yoo),
First played: $if(%first_played%,$get(time_of_year) at $get(time_of_day),'Never'),
Number of times played: $if($or(%play_count%,%play_counter%),%play_count%,0)
))



I still need to figure out how to add it in correctly to the panel.

Figured it out.

I hope you like it.
Sw!ng
Whats Up with the font thing ...??
-Can you rename your "R.segment" so that it can coexist with the "old" one ??

Or what did you change (/improve) ...??


P.s.:
GREAT WORK !!
Russell777
QUOTE(Sw!ng @ Sep 30 2006, 10:32) *

Whats Up with the font thing ...??
-Can you rename your "R.segment" so that it can coexist with the "old" one ??

Or what did you change (/improve) ...??


P.s.:
GREAT WORK !!

No they cannot coexist,if you want to use the latest version of the code,you'll need to uninstall the 7 segment font your machine (close foobar and delete it from from "Windows\Fonts" directory) and to install Rsegment instead of it.Sorry i didn't mention it in the first place.Also from now on all the new versions will use Rsegment
instead of 7 Segment font.

QUOTE(kockroach @ Sep 30 2006, 04:02) *

Hey Russell,

I made some changes to your "Date Range" section. Instead of Showing the number of years, months, etc., and today or yesterday, I have it showing the date in a format like "September 29th, at 8:55:07 PM". Thought you might like to use it as a base for your mod. It does the same swap of "First Played", "Last Played", and "Times Played". It took a bit to figure out how you had yours set up, but once I did it was easy to modify my old Track Info Panel code.

Here it is
CODE

//////////////////////////////////////////Date Range///////////////////////////////////////////////
$alignabs(189,$add($div(%_height%,5),38),%_width%,%_height%,,top)
$font(lcdmono2,8,bold$get(font_options),)$get(active)$ifequal($put(yoo,$div($mod(%_time_elapsed_seconds%,12),4)),0,
$if(%last_played%,$puts(timestamp,%last_played%),),
$select($get(yoo),
$if(%first_played%,$puts(timestamp,%first_played%),),
$puts(timestamp,$add(%play_count%,%play_counter%))))


// Day Conversion
$puts(day,$substr($get(timestamp),9,10))
$if($get(timestamp),
$if($strcmp($left($get(day),1),0),$puts(day,$right($get(day),1))))
$if($strcmp($get(day),11),$puts(xx,th),
$if($strcmp($get(day),12),$puts(xx,th),
$if($strcmp($get(day),13),$puts(xx,th),
$if($strcmp($right($get(day),1),1),$puts(xx,st),
$if($strcmp($right($get(day),1),2),$puts(xx,nd),
$if($strcmp($right($get(day),1),3),$puts(xx,rd),
$puts(xx,th)))))))

// Month Conversion
$puts(month,$substr($get(timestamp),6,7))
$puts(month_name,$select($get(month),
Jan.,Feb.,Mar.,Apr.,May,Jun.,Jul.,Aug.,Sep.,Oct.,Nov.,Dec.))

// Year Conversion
$puts(year,$substr($get(timestamp),1,4))

// Time Conversion
$puts(hour,$substr($get(timestamp),12,13))
$puts(min,$substr($get(timestamp),14,16))
$puts(sec,$substr($get(timestamp),17,19))

// 24 Hour to 12 Hour Conversion
$if($strcmp($left($get(hour),1),0),$puts(hour1,$right($get(hour),1)))
$if($strcmp($left($get(hour),1),1),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($left($get(hour),1),2),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($get(hour),00),$puts(hour1,12))
$if($strcmp($get(hour),10),$puts(hour1,10))
$if($strcmp($get(hour),11),$puts(hour1,11))
$if($strcmp($get(hour),12),$puts(hour1,12))

// AM/PM Conversion
$if($strcmp($get(hour),00),$puts(yy,am))
$if($strcmp($get(hour),10),$puts(yy,am))
$if($strcmp($get(hour),11),$puts(yy,am))
$if($strcmp($get(hour),12),$puts(yy,pm))
$if($strcmp($get(hour),24),$puts(yy,am))
$if($strcmp($left($get(hour),1),0),$puts(yy,am))
$if($strcmp($left($get(hour),1),1),$puts(yy,pm))
$if($strcmp($left($get(hour),1),2),$puts(yy,pm))

// Date Format
$puts(time_of_year,$get(month_name) $get(day)$get(xx)',' $get(year))

// Time Format
$puts(time_of_day,$get(hour1)$get(min)$get(sec) $get(yy))


$ifequal($put(yoo,$div($mod(%_time_elapsed_seconds%,12),4)),0,
Last played: $if(%last_played%,$get(time_of_year) at $get(time_of_day),'Never'),
$select($get(yoo),
First played: $if(%first_played%,$get(time_of_year) at $get(time_of_day),'Never'),
Number of times played: $if($or(%play_count%,%play_counter%),%play_count%,0)
))



I still need to figure out how to add it in correctly to the panel.

Figured it out.

I hope you like it.

That's nice,but it's doing different thing from my code:yours is making the verbal translation of date info
and mine is making verbal translation of how long ago the file was played.Now i don't mind using yours,
or mine i'll let the users to say what they think.Thanks for the code.
Infernus
using 1.9micro and cwb_hooks 0.1.12 I have now 100% cpu on volume change !!! downgrade to cwb 0.1.10 fixed it again
Pingwinho
My volume indicator is not working good, what's the matter?


Nevermind, it was the cwb_hooks.
springsonata
sounds pretty cool. I'll get one.
kockroach
QUOTE(Russell777 @ Sep 30 2006, 05:04) *

That's nice,but it's doing different thing from my code:yours is making the verbal translation of date info
and mine is making verbal translation of how long ago the file was played.Now i don't mind using yours,
or mine i'll let the users to say what they think.Thanks for the code.

No problem. Just wanted to offer up an alterative to displaying the dates.

I have a suggestion. Perhaps you could make the symbol to the left of the volume indicator a mute/unmute button. I think that might be a cool thing to have....unless it causes to big of a resource drain.
Russell777
QUOTE
I have a suggestion. Perhaps you could make the symbol to the left of the volume indicator a mute/unmute button. I think that might be a cool thing to have....unless it causes to big of a resource drain.
Heh,we are thinking in the same direction,I've tried to do it,but unfortunately i wasn't able to implement it,the button assigned to command "Volume mute" just doesn't responce,i believe it's happening b/c "Volume mute" isn't foobar's recognised command.But if you success in doing it let me know.
kockroach
QUOTE(Russell777 @ Sep 30 2006, 09:49) *

QUOTE
I have a suggestion. Perhaps you could make the symbol to the left of the volume indicator a mute/unmute button. I think that might be a cool thing to have....unless it causes to big of a resource drain.
Heh,we are thinking in the same direction,I've tried to do it,but unfortunately i wasn't able to implement it,the button assigned to command "Volume mute" just doesn't responce,i believe it's happening b/c "Volume mute" isn't foobar's recognised command.But if you success in doing it let me know.

In the actual button toolbar, the "Main Menu Item" option of "Playback/Volume Mute" button is functional. Is that what you were trying?
Russell777
QUOTE
In the actual button toolbar, the "Main Menu Item" option of "Playback/Volume Mute" button is functional. Is that what you were trying?

Exactly,and it didn't work,maybe i did something wrong,maybe you can try it out and let me now if it's working for you?
kockroach
Could you give me an example of the code you are using? I'm afraid I don't really know how the $button command works, yet.

Thanks.
Russell777
QUOTE(kockroach @ Sep 30 2006, 17:07) *

Could you give me an example of the code you are using? I'm afraid I don't really know how the $button command works, yet.

Thanks.

Example:$button(10,10,0,0,20,20,Image path1,Image path2,COMMAND,)
Where 10,10 - X1,Y1 on panel where the top left corner of button is located
0,0- X2,Y2 starting position of an active (clackable) part of button relative to X1,Y1
20,20 - X3,Y3 width,height of active part of the button
image path1,image path2-paths of inactive and active images (you can leave it blank)
command-the executable command name (ex:play)
See "Buttons" section of my code for examples
Infernus
Russell777 you don't have problems with high-cpu usage on volume change?
Russell777
QUOTE(Infernus @ Sep 30 2006, 17:37) *

Russell777 you don't have problems with high-cpu usage on volume change?

Yes in fact i do.The problem doesn't come from my code,but from latest version of cwb hooks combined
with latest version of trackinfo mod panel (it's because of callback notifications).I PMed CWBowron
and he said that he and Terrestrial are working on solution.So for now that's what we get.if you feel that it's too much for you,you can switch to prev version of cwb hooks,but it doesn't provide the volume value.
So for now i'm just sitting and waiting for the updates of those components.
kockroach
Hey Russell,

No luck here getting a "Mute" button to work, either. It wasn't that I couldn't get a button in place, it's that I don't think there is a command that can be currently called to mute the volume in the button options. Not sure if terrestrial would need to add the "context menu" to the options, or if perhaps a function in cwb_hooks would be better.

UPDATE: I was able to get a function "Mute" button by using foo_run. The only problem is that when you click the button, it takes a few seconds for it to activate. Wish it were faster. It probably would work best if there were a "Mute" option in the right-click context menu. Wish there was a way to add it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.