Trismegistus con mit cum Ex

#35
I just spent like (god who really knows) many hours trying to figure out what the hell was wrong with the volume levels with the sound fixes applied, and then I find this (https://msdn.microsoft.com/en-us/library...85%29.aspx) little chestnut (whilst basically trying to figure out if duplicate buffers can even have independent volume levels)

Quote:There is a known issue with volume levels of duplicated buffers. The duplicated buffer will play at full volume unless you change the volume to a different value than the original buffer's volume setting. If the volume stays the same (even if you explicitly set the same volume in the duplicated buffer with a IDirectSoundBuffer8::SetVolume ‎  call), the buffer will play at full volume regardless. To work around this problem, immediately set the volume of the duplicated buffer to something slightly different than what it was, even if you change it one millibel. The volume may then be immediately set back again to the original desired value.

Wtf right?! Ninja


UPDATE: This "feature" probably also affects Som because it tends to use the same volume level for everything. It also fixes the bug around 0 volume level which I was getting before. To add more insult to injury though while choosing volume fudge factor you have to be careful not to go above 0 or below the silence level.

SetVolume(vol-100<DSBVOLUME_MIN?vol+100:vol-100); //geez
SetVolume(vol);

Brilliant Rolleyes

UPDATE: I think all that's needed is to synchronize the volume of paused sounds with the new volume levels whenever the volume is changed in order to perfect everything in this dept. I am planning to setup a "sounds" key asap so individual sounds can be tweaked. I'd thought the volume level was too high for many of them, but I think mainly that was the DirectSound "feature" described above defaulting to maximum volume levels. So maybe the sounds key won't be super necessary just yet.
Reply



Messages In This Thread
Trismegistus con mit cum Ex - by HolyDiver - 2010-11-23, 07:18 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-11-23, 07:55 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-11-23, 09:14 PM
Re: Trismegistus con mit cum Ex - by dmpdesign - 2010-12-06, 02:35 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-06, 08:06 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-06, 09:22 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-08, 01:02 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-08, 02:02 AM
Re: Trismegistus con mit cum Ex - by Verdite - 2010-12-08, 12:44 PM
Re: Trismegistus con mit cum Ex - by dmpdesign - 2010-12-08, 02:39 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-08, 10:45 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-08, 10:50 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-09, 07:53 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-09, 09:44 AM
Re: Trismegistus con mit cum Ex - by dmpdesign - 2010-12-09, 03:44 PM
Re: Trismegistus con mit cum Ex - by dmpdesign - 2010-12-09, 04:10 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-10, 02:08 AM
Re: Trismegistus con mit cum Ex - by dmpdesign - 2010-12-10, 08:09 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-11, 01:47 PM
Re: Trismegistus con mit cum Ex - by dmpdesign - 2010-12-11, 08:47 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-11, 10:49 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-12, 02:27 AM
Re: Trismegistus con mit cum Ex - by dmpdesign - 2010-12-12, 04:37 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-12, 06:01 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-12, 07:58 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-12, 11:42 AM
Re: Trismegistus con mit cum Ex - by dmpdesign - 2010-12-13, 03:57 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-13, 04:42 AM
Re: Trismegistus con mit cum Ex - by dmpdesign - 2010-12-13, 06:36 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-13, 07:31 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-13, 10:10 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-13, 10:12 AM
Re: Trismegistus con mit cum Ex - by dmpdesign - 2010-12-13, 10:55 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-14, 02:35 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-14, 11:32 AM
Re: Trismegistus con mit cum Ex - by Verdite - 2010-12-15, 02:35 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-15, 03:36 PM
Re: Trismegistus con mit cum Ex - by Verdite - 2010-12-15, 04:39 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-16, 02:18 AM
Re: Trismegistus con mit cum Ex - by Verdite - 2010-12-16, 09:00 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-17, 02:56 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-17, 02:43 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-27, 05:11 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2010-12-29, 09:14 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2011-01-02, 07:20 AM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2011-01-02, 02:08 PM
Re: Trismegistus con mit cum Ex - by HolyDiver - 2011-01-03, 07:57 AM



Users browsing this thread:
2 Guest(s)