Skip to contentSkip to conversation

Setting alsamixer settings from API

DISCUSSION Pete Barnard 2 participants 2 messages Feb 18, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

I have just finished writing a sound capture program using ALSA 0.9.0rc7 and Red Hat Linux 7.2. Whilst there are no problems with the operation of the program some users are complaining that whenever they re-boot their machines and re-start my sound program, they have to :
1. bring up alsamixer
2. unmute everything in alsamixer
3. set the ADC capture flag on in alsamixer
4. adjust various volume settings in alsamixer.
5. Bring up the gnome audiomixer gui (the sound comes out in mono until the audiomixer is brought up - without even changing any settings - I don't know what's going on there???).

It all seems a lot of hassle for the average, non-IT trained users and I do like to keep them HAPPY.

Are there API function calls which allow altering alsamixer settings etc from within the program code? Any information on this (or direction to useful documentation) would be appreciated.

Regards,

Pete

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#1 lore raw

mixer API is a bit under documented.
but you can look at amixer and alsamixer for hints.
There is some mixer docs generated if you have doxygen installed, but theres no link to it from the rest of the documentation, you have to look at the docs dir.

Quoted 36 lines · Pete Barnard

Hi,

I have just finished writing a sound capture program using ALSA 0.9.0rc7 and Red Hat Linux 7.2. Whilst there are no problems with the operation of the program some users are complaining that whenever they re-boot their machines and re-start my sound program, they have to :
1. bring up alsamixer
2. unmute everything in alsamixer
3. set the ADC capture flag on in alsamixer
4. adjust various volume settings in alsamixer.
5. Bring up the gnome audiomixer gui (the sound comes out in mono until the audiomixer is brought up - without even changing any settings - I don't know what's going on there???).

It all seems a lot of hassle for the average, non-IT trained users and I do like to keep them HAPPY.

Are there API function calls which allow altering alsamixer settings etc from within the program code? Any information on this (or direction to useful documentation) would be appreciated.

Regards,

Pete

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Signature · 18 lines
My cat's a debugger....

Potter, Lorn, "ljp"
core developer / Web Administrator
Project OPIE- the Open Palmtop Integrated Environment
http://opie.handhelds.org | http://www.opie.info (german) |
http://www.opie.us
IRC: irc.freenode.net #opie #opie.de

[email protected]
[email protected]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf