From: Ron Fox Date: 2008-03-28T20:40:04+09:00 Subject: Re: accessing mixer values http://www.4front-tech.com/pguide/sndcrd.html May also help now that you know that _SIOR is just _IOR. search there for MIXER_READ...below it are the legal values for dev if I'm getting this right. ruud wrote: > hi group > > I want to read the volume of the mixer device with a ruby script. > Can anybody tell me what the ruby equivalent is of what the MIXER_READ > macro does in C? > > #define SOUND_MIXER_VOLUME 0 > #define SOUND_MIXER_READ_VOLUME MIXER_READ(SOUND_MIXER_VOLUME) > #define MIXER_READ(dev) _SIOR('M', dev, int) > > I've been googling with keywords like 'ioctl, MIXER_READ SOUND_MIXER', > but with little result. Hopefully someone can me push me in the right > direction... > > > thanks in advance, > > Ruud