waveOutSetVolume not working after windows 10 fall update

I’ve been using this code to set the volume in windows audio mixer for different apps and since the windows 10 fall update it just creates a new instance in the audio mixer and nothing changes in the actual app. Image! for clarity [DllImport(“winmm.dll”)] private static extern int waveOutSetVolume(IntPtr hwo, uint dwVolume);

private void SetVolume(int volume) { int NewVolume = ((ushort.MaxValue / 10) * volume); uint NewVolumeAllChannels = ((Convert.ToUInt32(NewVolume) & 0xffff) | (Convert.ToUInt32(NewVolume) << 16)); waveOutSetVolume(IntPtr.Zero, NewVolumeAllChannels); } 

submitted by /u/peterj74
[link] [comments]

Leave a Reply