Re: [DNG] Mixer for alsa

2022-09-04 Thread aitor

Hi,

On 4/9/22 11:31, aitor wrote:


On 3/9/22 19:14, aitor wrote:


Today I did a mistake somewhere and the gui is not receiving sound event 
notifications. I'll fix this issue as soon as possible.
On the other hand, I have tested it on other machines (on august I had only one 
computer to hand), and it's working only for
the "hw:0" card, but I'll work on that too.
I'll let you know...

Done. I've fixed a segmentation fault as well, and now it's possible to pass 
the card number as an argument in the command line.
For example, "amixer-gtk 1" would use "hw:1". Future releases will read the 
default card from /etc/asound.conf
First packages will be available today, I hope.


Now it's working very well for me. Packages are available at:

https://www.gnuinos.org/amixer-gtk/

In order to launch the mixer with a concrete card "hw:N" run:

$ amixer-gtk N

By default, it'll assume "hw:0".

Steve, you can build the alsa mixer from source downloading the tarball:

https://www.gnuinos.org/amixer-gtk/amixer-gtk_0.1.tar.gz

Hope you like it.

Cheers,

Aitor.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-09-04 Thread aitor

Hi again,

On 3/9/22 19:14, aitor wrote:

Today I did a mistake somewhere and the gui is not receiving sound event 
notifications. I'll fix this issue as soon as possible.
On the other hand, I have tested it on other machines (on august I had only one 
computer to hand), and it's working only for
the "hw:0" card, but I'll work on that too.
I'll let you know...


Done. I've fixed a segmentation fault as well, and now it's possible to pass 
the card number as an argument in the command line.
For example, "amixer-gtk 1" would use "hw:1". Future releases will read the 
default card from /etc/asound.conf

First packages will be available today, I hope.

Cheers,

Aitor.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-09-03 Thread aitor

Hi again, Steve

On 3/9/22 13:12, aitor wrote:


Hi Steve,

On 3/9/22 0:40, Steve Litt wrote:

Any chance of my getting the source code to compile on my computer?

Yes, I have it working in my Void Linux:
https://www.gnuinos.org/gmixer/amixer-gtk.png
You can download the tarball from here:
https://www.gnuinos.org/gmixer/amixer-gtk.tar.xz
Then, you need to remove pulseaudio and install the following dependencies:

  - make
  - base-devel  (provides g++)
  - pkg-config
  - alsa-lib-devel
  - gtkmm2-devel
  - libsigc++dev
  - procps-ng-devel
  - wmctrl

The last one is a runtime dependency required in order to send the application 
to the current desktop workspace via:

   $ wmctrl -i -r $(wmctrl -l | grep " amixer-gtk$" | cut -d ' ' -f 1) \
-t $(xprop -root -notype _NET_CURRENT_DESKTOP | cut -d ' ' -f 3)

Once you've installed all the packages, use the make commands:

   
   make,

   make clean,
   make cleanall,
   make install,
   make uninstall

Amixer-gtk is a very recent project and there might be some possible bugs. If 
so, please let me know.
Thanks for your interest in the project!


Today I did a mistake somewhere and the gui is not receiving sound event 
notifications. I'll fix this issue as soon as possible.
On the other hand, I have tested it on other machines (on august I had only one 
computer to hand), and it's working only for
the "hw:0" card, but I'll work on that too.

I'll let you know...

Cheers,

Aitor.


___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-09-03 Thread aitor

Hi Steve,

On 3/9/22 0:40, Steve Litt wrote:

Any chance of my getting the source code to compile on my computer?


Yes, I have it working in my Void Linux:

https://www.gnuinos.org/gmixer/amixer-gtk.png

You can download the tarball from here:

https://www.gnuinos.org/gmixer/amixer-gtk.tar.xz

Then, you need to remove pulseaudio and install the following dependencies:

 - make
 - base-devel  (provides g++)
 - pkg-config
 - alsa-lib-devel
 - gtkmm2-devel
 - libsigc++dev
 - procps-ng-devel
 - wmctrl

The last one is a runtime dependency required in order to send the application 
to the current desktop workspace via:

  $ wmctrl -i -r $(wmctrl -l | grep " amixer-gtk$" | cut -d ' ' -f 1) \
   -t $(xprop -root -notype _NET_CURRENT_DESKTOP | cut -d ' ' -f 3)

Once you've installed all the packages, use the make commands:

  
  make,

  make clean,
  make cleanall,
  make install,
  make uninstall

Amixer-gtk is a very recent project and there might be some possible bugs. If 
so, please let me know.

Thanks for your interest in the project!

Cheers,

Aitor.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-09-02 Thread Steve Litt
On Fri, 2022-09-02 at 21:50 +0200, aitor wrote:
> Hi,
> 
> On 24/8/22 3:35, Steve Litt wrote:
> 
> > > I'll call it Gmixer for sure.
> > Better publicize the hell out of the fact it has no connection with Gnome.
> 
> The project is already finished, and finally I've decided to call it 
> amixer-gtk,
> because most of the code in the backend is taken from amixer.c, by Jaroslav
> Kysela:
> 
> https://github.com/alsa-project/alsa-utils/tree/master/amixer
> 
> Software .deb packages will be available this weekend.

Any chance of my getting the source code to compile on my computer?

SteveT

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-09-02 Thread aitor

Hi,

On 24/8/22 3:35, Steve Litt wrote:


I'll call it Gmixer for sure.

Better publicize the hell out of the fact it has no connection with Gnome.


The project is already finished, and finally I've decided to call it amixer-gtk,
because most of the code in the backend is taken from amixer.c, by Jaroslav 
Kysela:

https://github.com/alsa-project/alsa-utils/tree/master/amixer

Software .deb packages will be available this weekend.

Cheers,

Aitor.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-28 Thread aitor

Hi,

On 24/8/22 2:24, terryc wrote:

I'll call it Gmixer for sure.

FYI. I mentally associate g-something with gnome.
Similarly k-something with kde.
You may or may not want the association. OTOH, it may not matter now.


Many projects have taken this character from gnu, for example GCompriz. But 
yes, I agree with you.
People will associate it with gnome. So i'll think about another name.

In the meantime, I've improved the interface a lot, but there are still a few 
bugs pending to be fixed,
as you can see in the bottom right corner of the video below, when I try to 
display the decibels of
'Capture',0 and 'Capture'1:

https://www.gnuinos.org/gmixer/mixer.mkv

However, most of the work is done and packages will be available soon.

Thanks for your suggestions,

Aitor.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-27 Thread Gregory Nowak via Dng
On Sat, Aug 27, 2022 at 11:16:57AM +0200, aitor wrote:
> Amixer is only a piece of alsa-utils. The following utility will do the job:
> 
> $ aplay --list-devices

Yes, that's another way. The /proc method doesn't require remembering
or looking up aplay syntax, or invoking a second utility. So, that's
the method I pointed out. I could have listed both for the sake of
completeness though.

Greg


-- 
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-mana...@eu.org
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-27 Thread aitor

Hi,

On 24/8/22 10:20, al3xu5 via Dng wrote:

- other mixers for alsa? I do not know...

So a good gtk gui for alsamixer (just a gui, whitout code changes) would
be very useful ("good gtk gui" I mean: gtk, with desktop layout
integration, user configurable).


Yes, I think there is an ongoing lack of a good alsamixer in gtk. In previous 
releases of devuan, we had Volti:

https://github.com/gen2brain/volti

but it's missing in Chimaera because pygtk-2 seems to be deprecated. The same 
has happened for wicd-gtk.
Either way, I don't really miss volti too much because of its dependency on 
dbus [*]

Cheers,

Aitor.

[*] I still use it time to time to go to dhospital
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-27 Thread aitor

Hi Steve,

On 27/8/22 10:10, Steve Litt wrote:

On Fri, 2022-08-26 at 16:24 -0700, Gregory Nowak via Dng wrote:

On Thu, Aug 25, 2022 at 04:23:38PM -0400, Steve Litt wrote:

Is it my imagination, or does amixer not have a command to list all cards, with
their card numbers and maybe device numbers? If this capability is really
missing,
it's quite an omission, as it forces one to trial and error cards.

No, not really. There is a list of cards in /proc/asound/cards.

Greg

Cool, that's all that's needed.


Amixer is only a piece of alsa-utils. The following utility will do the job:

$ aplay --list-devices

Cheers,

Aitor.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-27 Thread Steve Litt
On Fri, 2022-08-26 at 16:24 -0700, Gregory Nowak via Dng wrote:
> On Thu, Aug 25, 2022 at 04:23:38PM -0400, Steve Litt wrote:
> > Is it my imagination, or does amixer not have a command to list all cards, 
> > with
> > their card numbers and maybe device numbers? If this capability is really
> > missing,
> > it's quite an omission, as it forces one to trial and error cards.
> 
> No, not really. There is a list of cards in /proc/asound/cards.
> 
> Greg

Cool, that's all that's needed.

SteveT
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-26 Thread Gregory Nowak via Dng
On Thu, Aug 25, 2022 at 04:23:38PM -0400, Steve Litt wrote:
> Is it my imagination, or does amixer not have a command to list all cards, 
> with
> their card numbers and maybe device numbers? If this capability is really 
> missing,
> it's quite an omission, as it forces one to trial and error cards.

No, not really. There is a list of cards in /proc/asound/cards.

Greg


-- 
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-mana...@eu.org
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-25 Thread Steve Litt
On Wed, 2022-08-24 at 11:57 -0700, Gregory Nowak via Dng wrote:
> On Tue, Aug 23, 2022 at 10:42:15PM -1000, Joel Roth via Dng wrote:
> > On Wed, Aug 24, 2022 at 10:20:23AM +0200, al3xu5 via Dng wrote:
> > > - other mixers for alsa? I do not know...
> > 
> > aumix has an ncurses interactive mode much simpler than
> > alsamixer, and also a command line mode.
> 
> amixer has met my needs nicely for a number of years. Takes some
> getting used to, but the simplicity makes it worth the effort for me.

Is it my imagination, or does amixer not have a command to list all cards, with
their card numbers and maybe device numbers? If this capability is really 
missing,
it's quite an omission, as it forces one to trial and error cards.

SteveT
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-24 Thread Gregory Nowak via Dng
On Tue, Aug 23, 2022 at 10:42:15PM -1000, Joel Roth via Dng wrote:
> On Wed, Aug 24, 2022 at 10:20:23AM +0200, al3xu5 via Dng wrote:
> > - other mixers for alsa? I do not know...
> 
> aumix has an ncurses interactive mode much simpler than
> alsamixer, and also a command line mode.

amixer has met my needs nicely for a number of years. Takes some
getting used to, but the simplicity makes it worth the effort for me.

Greg


-- 
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-mana...@eu.org
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-24 Thread Joel Roth via Dng
On Wed, Aug 24, 2022 at 10:20:23AM +0200, al3xu5 via Dng wrote:
> - other mixers for alsa? I do not know...

aumix has an ncurses interactive mode much simpler than
alsamixer, and also a command line mode.



-- 
Joel Roth
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-24 Thread al3xu5 via Dng
Tue, 23 Aug 2022 21:34:09 +0200 - aitor :

> Hi all,
> 
> As I said in the irc channel some days ago, I've started developing a 
> new alsamixer in Gtk.

...which IMHO could be very useful:

- alsamixer is good, but (?) it has a ncurses interface...

- alsamixergui is a gui (FLTK) frontend for alsamixer which code is kept
  unchanged, but the gui is really poor: 
  + you cannot change the mixer device to control from inside the gui
  itself 
  + there is no user configuration available (i.e. you cannot change the
  font size, which could be a problem if text is displayed too small etc)
  + there is no integration with the desktop theme/layout
  + ...

- qasmixer maybe good... but it is qt not gtk...

- other mixers for alsa? I do not know...

So a good gtk gui for alsamixer (just a gui, whitout code changes) would
be very useful ("good gtk gui" I mean: gtk, with desktop layout
integration, user configurable).

> Here you are a video:
> https://www.gnuinos.org/gmixer/
> 
> In the video you can see three different mixers for alsa:
> 
> - On the bottom, qasmixer (developed in Qt5)
> 
> - On the top left, alsamixergui

see above...

> - On the top right, my new project.
> 
> I'll call it Gmixer for sure.

hum... let me suggest use a different name (g refers gnome too much)...
say gtkamixer or amixer-gtk or gtkalsamixer and similar...

Thanks
Regards


al3xu5

-- 
Say NO to copyright, patents, trademarks and industrial design
restrictions!


Public GPG/PGP key: 8FC2 3121 2803 86E9 F7D8  B624 DA50 835B 2624 A36B


pgpXyd16riCRk.pgp
Description: Firma digitale OpenPGP
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-23 Thread Steve Litt
On Tue, 2022-08-23 at 21:34 +0200, aitor wrote:

> I'll call it Gmixer for sure.

Better publicize the hell out of the fact it has no connection with Gnome.

In 2013 I kicked every KDE executable and library off my computer for the same
reason I never let systemd onto my computers. Nowadays, I check dependencies of 
any
new software I want to put on or any software updates, and if they start with 
k, I
either decline to install or research carefully. I fear you'll face similar
discrimination with Gmixer.

SteveT
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-23 Thread Steve Litt
On Wed, 2022-08-24 at 10:24 +1000, terryc wrote:
> On Tue, 23 Aug 2022 21:34:09 +0200
> aitor  wrote:
> 
> 
> > I'll call it Gmixer for sure.
> 
> FYI. I mentally associate g-something with gnome.
> Similarly k-something with kde.
> You may or may not want the association. OTOH, it may not matter now.

Alsamixer works very well for me.

SteveT
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Mixer for alsa

2022-08-23 Thread terryc
On Tue, 23 Aug 2022 21:34:09 +0200
aitor  wrote:


> I'll call it Gmixer for sure.

FYI. I mentally associate g-something with gnome.
Similarly k-something with kde.
You may or may not want the association. OTOH, it may not matter now.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] Mixer for alsa

2022-08-23 Thread aitor

Hi all,

As I said in the irc channel some days ago, I've started developing a 
new alsamixer in Gtk.


Here you are a video:

https://www.gnuinos.org/gmixer/

In the video you can see three different mixers for alsa:

- On the bottom, qasmixer (developed in Qt5)

- On the top left, alsamixergui

- On the top right, my new project.

I'll call it Gmixer for sure.

Cheers,

Aitor.

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng