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)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue