Fix tabs/spaces

This commit is contained in:
Frank-74 2017-10-15 17:50:07 +01:00 committed by GitHub
parent 06e0dcfe23
commit f57e2f6bf7
1 changed files with 10 additions and 10 deletions

View File

@ -132,16 +132,16 @@ void DirectSoundDriver::SetFrequency(uint32_t Frequency, uint32_t BufferSize)
void DirectSoundDriver::SetVolume(uint32_t Volume) void DirectSoundDriver::SetVolume(uint32_t Volume)
{ {
LPDIRECTSOUNDBUFFER & lpdsb = (LPDIRECTSOUNDBUFFER &)m_lpdsb; LPDIRECTSOUNDBUFFER & lpdsb = (LPDIRECTSOUNDBUFFER &)m_lpdsb;
int32_t dsVolume = -((100 - (int32_t)Volume) * 25); int32_t dsVolume = -((100 - (int32_t)Volume) * 25);
if (Volume == 0) if (Volume == 0)
{ {
dsVolume = DSBVOLUME_MIN; dsVolume = DSBVOLUME_MIN;
} }
if (lpdsb != NULL) if (lpdsb != NULL)
{ {
lpdsb->SetVolume(dsVolume); lpdsb->SetVolume(dsVolume);
} }
} }
void DirectSoundDriver::SetSegmentSize(uint32_t length, uint32_t SampleRate) void DirectSoundDriver::SetSegmentSize(uint32_t length, uint32_t SampleRate)