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.

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.

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.

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

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.

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.

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

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.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum