View Single Post
  #1  
Old 05-03-2023, 07:17
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by BLACKFIRE69 View Post
yes, volume control is neither gradual nor smooth. i agree.
the volume range is (-10,000 to 0).

DSBVOLUME_MAX := 0;
DSBVOLUME_MIN := -10,000

For More Info

i don't know how to do smooth control tho.
what i'm doing is simply just set the value as below.

Code:
Vol := (InputVolPct - 100) * 100;
DirectSoundBuffer.SetVolume(Vol)

if anyone knows a better way let me know.
This makes changing the volume a little smoother.
I hope it helps you!
Attached Files
File Type: rar logarithm Volumen.rar (927.1 KB, 22 views)
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
audiofeel (05-03-2023)
Sponsored Links