Path: utzoo!utgpu!water!watmath!clyde!att!mtune!mtund!newton From: newton@mtund.ATT.COM (Newton Lee) Newsgroups: comp.sys.mac.programmer Subject: Re: Setting the Sound Volume (XFCN)/ Control Panel Keywords: Sound,Volume,Control,Panel Message-ID: <1032@mtund.ATT.COM> Date: 31 Aug 88 13:16:56 GMT References: <550@vulet.let.vu.nl.UUCP> Organization: AT&T ISL Middletown NJ USA Lines: 17 In article <550@vulet.let.vu.nl.UUCP>, koster@let.vu.nl (C. Koster) writes: > I made a XFCN that does a simple SetSoundVol. Works fine. But when I check > with the General or Sound control panel device it shows the old SoundVol. When I change the sound volume on Mac SE, I do (in C): SetSoundVol(volume); SysParam = GetSysPPtr(); SysParam->volClik = (sysParam->volClik & 0xF8FF) | (volume << 8); The first line sets the speaker volume to the specified level but it doesn't change the volume setting in the control panel. The second and third lines adjust the control panel volume setting by changing the parameter RAM. Newton Lee AT&T Bell Laboratories