• Welcome to Theos PowerBasic Museum 2017.

Reading and changing the master volume on Vista/7

Started by Bud Meyer, July 07, 2009, 04:59:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Theo Gottwald

I have expanded this sample code, trying to get the volume of avilable Audio Channel.

I have used:



LOCAL ch AS LONG, vol AS SINGLE

pIAudioEndpointVolume.SetChannelVolumeLevelScalar(ch,vol,BYVAL %NULL)


But it seems not to produce the expected Result.
Has anybody tried this before and knows whats wrong (why the volume doesn't change in the Mixer?)