Fix tabs/spaces
This commit is contained in:
parent
06e0dcfe23
commit
f57e2f6bf7
|
@ -132,16 +132,16 @@ void DirectSoundDriver::SetFrequency(uint32_t Frequency, uint32_t BufferSize)
|
|||
|
||||
void DirectSoundDriver::SetVolume(uint32_t Volume)
|
||||
{
|
||||
LPDIRECTSOUNDBUFFER & lpdsb = (LPDIRECTSOUNDBUFFER &)m_lpdsb;
|
||||
int32_t dsVolume = -((100 - (int32_t)Volume) * 25);
|
||||
if (Volume == 0)
|
||||
{
|
||||
dsVolume = DSBVOLUME_MIN;
|
||||
}
|
||||
if (lpdsb != NULL)
|
||||
{
|
||||
lpdsb->SetVolume(dsVolume);
|
||||
}
|
||||
LPDIRECTSOUNDBUFFER & lpdsb = (LPDIRECTSOUNDBUFFER &)m_lpdsb;
|
||||
int32_t dsVolume = -((100 - (int32_t)Volume) * 25);
|
||||
if (Volume == 0)
|
||||
{
|
||||
dsVolume = DSBVOLUME_MIN;
|
||||
}
|
||||
if (lpdsb != NULL)
|
||||
{
|
||||
lpdsb->SetVolume(dsVolume);
|
||||
}
|
||||
}
|
||||
|
||||
void DirectSoundDriver::SetSegmentSize(uint32_t length, uint32_t SampleRate)
|
||||
|
|
Loading…
Reference in New Issue