Hello Riccardo,
On 2025-07-15 12:42:29 +0200 Riccardo Mottola
<[email protected]> wrote:
Hi Patrick
Patrick Cardona wrote:
I would like to use AudioMixer with Alsa (sound default system
within
Debian RPI OS Lite)
Good luck... it is old, unreleased software which I wrote years ago.
If I
didn't release it I deemed it not finished, but I don't remember in
which
state it was.
Maybe some new life can be breathed in.
And I note this issue about a 'forward class' while building with
the
latest GNUstep
I fixed that plus a couple of other things and made a quick hack to
link it
against alsa and not oss. Run just make and don't use ProjectCenter
or it
will override you things.
Thanks for the hack and interest.
It compiles and links for me now.
I needed to add this include directive in 'SoundDevice.m' to avoid an
error about 'ioctl' with an 'implicit declaration of function':
#include <sys/ioctl.h>
And then it was successfully built.
Launched with 'debugapp', it output this self explaned log:
(gdb) run
Starting program:
/usr/local/lib/GNUstep/Applications/AudioMixer.app/AudioMixer
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/aarch64-linux-gnu/libthread_db.so.1".
libpng warning: iCCP: known incorrect sRGB profile
2025-07-15 19:16:25.589 AudioMixer[15359:15359] opening of mixer failed
2025-07-15 19:16:25.590 AudioMixer[15359:15359] Error reading main
output volume2025-07-15 19:16:25.590 AudioMixer[15359:15359] output
main: 0
2025-07-15 19:16:25.590 AudioMixer[15359:15359] output main: 0 0
(...)
On Gentoo it works (where I actually have pulseaudio + alsa
compatibility).
Master volume changes, but left/right balance does not.
In Debian Lite, no pulseaudio. Maybe a side effect with it in Gentoo?
It tries to write
values, but gets back stereo values. Maybe old bug, maybe new bug.
I could launch Cynthiune and change the volume while playing,
The volume control did not change the level previously fixed by the
system (alsactl restore...) and only the CLI alsamixer was able to
change the level while listening with Cynthiune.
On my Devuan laptop, however, I just get permissions errors. Maybe I
have a
setup issue or something is different.
Try on your side and see! I never used Audio on my RPIs! Maybe I
should once
this is working.
Well it works (I use a USB 2 JACK adaptator) which is seen as UC02
card, but only with alsamixer CLI or WMAlsaMixer dockApp, which I
vould to avoid because I do not use the dock/clip of WindowMaker, only
the Dock of GWorkspace.
Riccardo
regards,
--
Patrick Cardona - Pi400 - GNU/Linux (Debian 12 aarch64: RPI OS Lite)
Xorg (1:1.7.1-1.2) - libcairo2 (1.16.0-7+rpt1 arm64)
Window Maker (0.96.0) - GWorkspace (1.1.0 - 02 2025) - Theme: Heritage
- MUA: GNUMail (1.4.0)