It manifests as the inability to change the volume of sounds.
Inside CDirectSoundAudioBuffer::VPlay:
should be changed to
CDirectSoundAudioBuffer::VSetVolume is already doing this.
There is something else that you must do to be able to set volume of sounds:
Inside 'CDirectSoundAudio::VInitAudioBuffer', where you specify 'DSBUFFERDESC dsbd', set 'dsbd.dwFlags' to 'DSBCAPS_CTRLVOLUME' to enable volume changing capabilities.
Also, inside 'CDirectSoundAudio::SetPrimaryBufferFormat', do the same with 'DSBUFFERDESC dsbd' by setting 'dsbd.dwFlags' to 'DSBCAPS_PRIMARYBUFFER | DSBCAPS_CTRLVOLUME'.
Inside CDirectSoundAudioBuffer::VPlay:
should be changed to
CDirectSoundAudioBuffer::VSetVolume is already doing this.
There is something else that you must do to be able to set volume of sounds:
Inside 'CDirectSoundAudio::VInitAudioBuffer', where you specify 'DSBUFFERDESC dsbd', set 'dsbd.dwFlags' to 'DSBCAPS_CTRLVOLUME' to enable volume changing capabilities.
Also, inside 'CDirectSoundAudio::SetPrimaryBufferFormat', do the same with 'DSBUFFERDESC dsbd' by setting 'dsbd.dwFlags' to 'DSBCAPS_PRIMARYBUFFER | DSBCAPS_CTRLVOLUME'.
The post was edited 3 times, last by Kain ().