Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 02 Oct 2014, 10:49
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Puppy Volume Mixer. Updated Mar 3, 2007
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 4 Posts_count   Goto page: 1, 2, 3, 4 Next
Author Message
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Wed 21 Feb 2007, 02:18    Post_subject:  Puppy Volume Mixer. Updated Mar 3, 2007
Sub_title: A volume mixer with full functionality
 

After reading that people are really using the traybar volume mini-app, and hearing sugestions to have a full featured volume mixer that looks good, I decide to take up the challenge and in the process learn more about tcl and gnocl.

This application is eerily similar to the zmixer sound mixer included in puppy as of 2.14.
Both applications control volume, both are native GTK and both applications have sliders.

Here show with a GTK XAqua theme (click to see full size image)


The similarities end there, here are some of the pvolume-mixer highlights:
Some functional:
- It includes controls for all the different devices available to /dev/mixer, that means that the more capabilities your sound card has, the more controls will show. (up to the 13 devices supported by /dev/mixer)
- It includes balance controls for each device that has a left and a right level
- It reflects changes to the volume levels from external applications (e.g. if you move the volume slider in gxine it will also move on pvolume-mixer)
- It can be launched from the tray mini-volume.
- Option to selectivelly hide level controls.
- Fine control spinner to set the volume preciselly

Some technical
- It's 1/4 the size of zmixer (6.5Kb vs. 23.9Kb) and I'd expect that it'll compress even better to the sfs file.
- It is only 225 lines of code including generous spacing and a few comments. This means, only 154 lines of usable code.

It depends on:
- setvol: Already included on the Puppy LiveCD
- gnocl: Download it from here. It's just 125 Kb and I will be using it for many other projects.

To-do:
- Internationalize it and make it fully localizable.
- If requested, ability so save volume settings for later use.
pvolume-mixer-0.3.pet
Description 
pet

 Download 
Filename  pvolume-mixer-0.3.pet 
Filesize  3.48 KB 
Downloaded  1245 Time(s) 

_________________
http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
zigbert


Joined: 29 Mar 2006
Posts: 5729
Location: Valåmoen, Norway

PostPosted: Wed 21 Feb 2007, 03:17    Post_subject:  

you are good !!!
Back to top
View user's profile Send_private_message Visit_website 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Wed 21 Feb 2007, 03:24    Post_subject: Re: Puppy Volume Mixer
Sub_title: A volume mixer with full functionality
 

rarsa wrote:
Here are some of the pvolume-mixer highlights:
Some functional:
- It includes controls for all the different devices available to /dev/mixer, that means that the more capabilities your sound card has, the more controls will show. (up to the 13 devices supported by /dev/mixer)
- It includes balance controls for each device that has a left and a right level
- It reflects changes to the volume levels from external applications (e.g. if you move the volume slider in gxine it will also move on pvolume-mixer)
Some technical
- It's 1/4 the size of zmixer (6.5Kb vs. 23.9Kb) and I'd expect that it'll compress even better to the sfs file.
- It is only 225 lines of code including generous spacing and a few comments. This means, only 154 lines of usable code.

Naturally, this has found its way straight into Puppy 2.15CE! Razz

Thanks, rarsa. The size issue, in particular, is a big help.

Cheers
Back to top
View user's profile Send_private_message 
klhrevolutionist


Joined: 08 Jun 2005
Posts: 1124

PostPosted: Wed 21 Feb 2007, 18:41    Post_subject:  

Great work rarsa ! Will be replacing zmixer with this mixer.

Hopefully it is included in the next standard release.

_________________
Heaven is on the way, until then let's get the truth out!
Back to top
View user's profile Send_private_message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Wed 21 Feb 2007, 19:14    Post_subject:  

Goodie. When I free up some time I'll add this to my local Pizzapup, at least until I make my retro-themed version.
_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send_private_message Visit_website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Wed 21 Feb 2007, 19:47    Post_subject: Puppy volume mixer
Sub_title: Tcl error message
 

Dear rarsa,

I just downloaded the pvolume dotpup and installed it. When I try to run, Tcl starts sputtering as follows:

invalid command name "dict"
while executing
"dict set devDict $deviceId name $deviceName"
(procedure "addDevice" line 3)
invoked from within
"addDevice 0 "master" "master""
(procedure "loadDevicesDictionary" line 3)
invoked from within
"loadDevicesDictionary"
(file "/usr/sbin/pvolume-mixer.tcl" line 223)

I installd gnocl (overwriting an older version) and tried to run pvolume in Tcl 8.5 and 8.4xxxTLS with no luck. Am I missing the "dict" program? My system is Puppy 2.10

With kind regards,
vovchik
Back to top
View user's profile Send_private_message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Wed 21 Feb 2007, 20:16    Post_subject:  

What version of Puppy are you using? that's odd.
_________________
http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
Back to top
View user's profile Send_private_message Visit_website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Wed 21 Feb 2007, 21:46    Post_subject: Puppy Volume Mixer
Sub_title: Tcl problem?
 

Dear rarsa,

It may be that my souped-up Puppy 2.10 is to blame, or rather, my mods to the standard Puppy 2.10. I have several versions of Tcl and chose the latest two for testing pvolume. I don't know the Tcl language (and would, if at all possible, want to steer clear of it, since I have my hands full with C, bash and Gambas). I am beginning to think that the problem is with my version of GTK (perhaps a library incompatibility with 2.8...), but, then, everything else seems to work.

With kind regards,
vovchik

PS. I think that using tcl with GTK widgets and theming is a splendid idea for Puppy, since Tcl progs are relatively small and don't require compilation. Without the GTK libs they can be somewhat off-putting in terms of desktop integration, and we all want pretty puppies, I gather. Zenity, gxmessage, perl and bash could also be exploited nicely, in addition to MU's wxbasic scripting, in order to keep Puppy's weight down and still provide a uniform and pleasant user experience.
Back to top
View user's profile Send_private_message 
Kal

Joined: 05 May 2005
Posts: 624
Location: California, High Desert

PostPosted: Wed 21 Feb 2007, 22:29    Post_subject: Balance Control  

Hi rarsa,

Looks really nice, NO problems installing on Puppy 2.14. The balance control seems to be jerky and will only return to the center with the volume muted. This will be a good addition to Puppy over Zmix. I have faith in you, that the balance can be fixed.

Good Luck, Kal
Back to top
View user's profile Send_private_message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Thu 22 Feb 2007, 00:13    Post_subject: Re: Puppy Volume Mixer
Sub_title: Tcl problem?
 

vovchik wrote:
It may be that my souped-up Puppy 2.10 is to blame, or rather, my mods to the standard Puppy 2.10.
I think you may have the clue of your problem. I only tested with the tcl8.5 that comes with Puppy 2.14
_________________
http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
Back to top
View user's profile Send_private_message Visit_website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11083
Location: Arizona USA

PostPosted: Thu 22 Feb 2007, 00:37    Post_subject:  

Rarsa, I downloaded both dotpups. Gnocl seemed to install ok. Pvolume-mixer seemed to install, but when I said ok to the last window asking to refresh the window manager, nothing happened. Nothing has been added to the Menu and the volume control looks the same.
_________________
Puppy Help 101 - an interactive tutorial for Lupu 5.25
Back to top
View user's profile Send_private_message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Thu 22 Feb 2007, 01:04    Post_subject:  

Flash wrote:
when I said ok to the last window asking to refresh the window manager.
It is asking YOU to refresh the window manager. One you refresh the window manager it will be there.
_________________
http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
Back to top
View user's profile Send_private_message Visit_website 
Kal

Joined: 05 May 2005
Posts: 624
Location: California, High Desert

PostPosted: Thu 22 Feb 2007, 01:31    Post_subject:  

Flash.
For 2.14's menu, I did a "fixmenus" in terminal and then restarted JWM. Puppy sound mixer was then in the Multimedia menu.
Kal
Back to top
View user's profile Send_private_message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Thu 22 Feb 2007, 02:02    Post_subject:  

Kal wrote:
For 2.14's menu, I did a "fixmenus" in terminal and then restarted JWM. Puppy sound mixer was then in the Multimedia menu.
The installer runs "fixmenus" so the only thing left is restart the WM.
_________________
http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
Back to top
View user's profile Send_private_message Visit_website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Thu 22 Feb 2007, 15:11    Post_subject:  

Quite handy, grabbed all the available devices on my soundcard just as advertised. It is slightly jerky in some situations, but I chalk that up to the slowness of this particular box and the fact that both Audacious and Opera were running also at the same time. You've got me sold on Gnocl. Also, this mixer will be in the next Grafpup snapshot.

Thanks,
Nathan

_________________
Bring on the locusts ...
Back to top
View user's profile Send_private_message AIM YIM MSNM 
Display_posts:   Sort by:   
Page 1 of 4 Posts_count   Goto page: 1, 2, 3, 4 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0849s ][ Queries: 13 (0.0043s) ][ GZIP on ]