dsound: Remove useless casts to self.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c6cd92bedd
commit
841541a6a6
|
@ -576,7 +576,7 @@ static HRESULT WINAPI PrimaryBufferImpl_SetVolume(IDirectSoundBuffer8 *iface, LO
|
||||||
|
|
||||||
for (i = 0; i < DS_MAX_CHANNELS; i++) {
|
for (i = 0; i < DS_MAX_CHANNELS; i++) {
|
||||||
if (device->pwfx->nChannels > i){
|
if (device->pwfx->nChannels > i){
|
||||||
fvol = (float)((DWORD)(device->volpan.dwTotalAmpFactor[i] & 0xFFFF) / (float)0xFFFF);
|
fvol = (float)((device->volpan.dwTotalAmpFactor[i] & 0xFFFF) / (float)0xFFFF);
|
||||||
hr = IAudioStreamVolume_SetChannelVolume(device->volume, i, fvol);
|
hr = IAudioStreamVolume_SetChannelVolume(device->volume, i, fvol);
|
||||||
if (FAILED(hr)){
|
if (FAILED(hr)){
|
||||||
LeaveCriticalSection(&device->mixlock);
|
LeaveCriticalSection(&device->mixlock);
|
||||||
|
@ -932,7 +932,7 @@ static HRESULT WINAPI PrimaryBufferImpl_SetPan(IDirectSoundBuffer8 *iface, LONG
|
||||||
|
|
||||||
for (i = 0; i < DS_MAX_CHANNELS; i++) {
|
for (i = 0; i < DS_MAX_CHANNELS; i++) {
|
||||||
if (device->pwfx->nChannels > i) {
|
if (device->pwfx->nChannels > i) {
|
||||||
fvol = (float)((DWORD)(device->volpan.dwTotalAmpFactor[i] & 0xFFFF) / (float)0xFFFF);
|
fvol = (float)((device->volpan.dwTotalAmpFactor[i] & 0xFFFF) / (float)0xFFFF);
|
||||||
hr = IAudioStreamVolume_SetChannelVolume(device->volume, i, fvol);
|
hr = IAudioStreamVolume_SetChannelVolume(device->volume, i, fvol);
|
||||||
if (FAILED(hr)){
|
if (FAILED(hr)){
|
||||||
LeaveCriticalSection(&device->mixlock);
|
LeaveCriticalSection(&device->mixlock);
|
||||||
|
|
Loading…
Reference in New Issue