Hello,
I have just purchased my rpi and very new to python and linux in general. I have been able to get my audio to stream from my iPad using shairport to rpi. However I am having difficulties trying to control the volume/mute on the rpi from the GPIO inputs. Can this be done using python? I tried writing a program to start by muting the output by importing the alsaaudio module and trying the following.
import alsaaudio
m = alsaaudio.Mixer()
m.setmute(1)
I was going to add the GPIO inputs after I am able to get this to work. Am I going about this correctly? Should I be using something other than python?
Please help.
rbeck