The time now is Tue 24 Apr 2018, 18:55
All times are UTC - 4 |
Page 1 of 4 [51 Posts] |
Goto page: 1, 2, 3, 4 Next |
Author |
Message |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: Wed 21 Feb 2007, 02:18 Post subject:
Puppy Volume Mixer. Updated Mar 3, 2007 Subject description: 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.
 |
Description |
|

Download |
Filename |
pvolume-mixer-0.3.pet |
Filesize |
3.48 KB |
Downloaded |
1412 Time(s) |
_________________ http://rarsa.blogspot.com Covering my eclectic thoughts
http://www.kwlug.org/blog/48 Covering my Linux How-to
Last edited by rarsa on Sat 03 Mar 2007, 20:38; edited 3 times in total
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Wed 21 Feb 2007, 03:17 Post subject:
|
|
you are good !!!
|
Back to top
|
|
 |
WhoDo

Joined: 11 Jul 2006 Posts: 4440 Location: Lake Macquarie NSW Australia
|
Posted: Wed 21 Feb 2007, 03:24 Post subject:
Re: Puppy Volume Mixer Subject description: 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!
Thanks, rarsa. The size issue, in particular, is a big help.
Cheers
|
Back to top
|
|
 |
klhrevolutionist

Joined: 08 Jun 2005 Posts: 1124
|
Posted: 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
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6266 Location: Knoxville, TN, USA
|
Posted: 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
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Wed 21 Feb 2007, 19:47 Post subject:
Puppy volume mixer Subject description: 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
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: 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
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Wed 21 Feb 2007, 21:46 Post subject:
Puppy Volume Mixer Subject description: 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
|
|
 |
Kal
Joined: 05 May 2005 Posts: 624 Location: California, High Desert
|
Posted: 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
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: Thu 22 Feb 2007, 00:13 Post subject:
Re: Puppy Volume Mixer Subject description: 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
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 12824 Location: Arizona USA
|
Posted: 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
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: 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
|
|
 |
Kal
Joined: 05 May 2005 Posts: 624 Location: California, High Desert
|
Posted: 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
|
|
 |
rarsa

Joined: 29 May 2005 Posts: 3053 Location: Kitchener, Ontario, Canada
|
Posted: 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
|
|
 |
Nathan F

Joined: 08 Jun 2005 Posts: 1760 Location: Wadsworth, OH (occasionally home)
|
Posted: 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
|
|
 |
|
Page 1 of 4 [51 Posts] |
Goto page: 1, 2, 3, 4 Next |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|