Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!sdd.hp.com!wuarchive!uunet!europa.asd.contel.com!sura.net!haven!cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!cathedral!vinay From: vinay@cathedral.cerc.wvu.wvnet.edu (Vinay Kumar) Newsgroups: comp.sys.sgi Subject: SGI Audio Device Keywords: Device Driver Unix Message-ID: <1354@babcock.cerc.wvu.wvnet.edu> Date: 20 Feb 91 18:06:31 GMT Sender: news@cerc.wvu.wvnet.edu Lines: 33 NEED HELP/ SUGGESTIONS ---------------------- I'm facing one problem related to audio-device on SGI workstation with Unix O.S . Following is the way I'm initializing the audio device: Audio_fd = open("/dev/audio",O_RDWR); ioctl(Audio_fd,AUDIOCSETOUTGAIN,250); ioctl(Audio_fd,AUDIOCSETRATE,2); I believe the above code shoould be able to initialize the device for further read operations. Right now, it is successfully doing the read/write operations but the second function doesn't seem to be working. when I do the following: x = ioctl(Audio_fd,AUDIOCGETOUTGAIN); printf("%d",x); the value of gain it returns is 16 instead of 250 that I set earlier. Infact,no matter what gain value I set, it always returns 16 as gain. Any suggestions/ advice to set the audio port gain would be appreciated. Thanks Vinay Kumar e-mail: vinay@cerc.wvu.wvnet.edu phone: (304)-293-7226