mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 16:41:07 +00:00
Fix some typos
This commit is contained in:
parent
cd550cf9b6
commit
34c9a47435
1 changed files with 4 additions and 4 deletions
|
@ -326,7 +326,7 @@ void *OpenALSoundStream::GetData(size_t bytes)
|
||||||
for(size_t i = 0;i < count;i++)
|
for(size_t i = 0;i < count;i++)
|
||||||
{
|
{
|
||||||
short smp = *samples;
|
short smp = *samples;
|
||||||
*(samples++) = ((smp>>8)&0x00FF) | ((smp<<8)*0xFF00);
|
*(samples++) = ((smp>>8)&0x00FF) | ((smp<<8)&0xFF00);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(NeedS8Conv)
|
if(NeedS8Conv)
|
||||||
|
@ -410,7 +410,7 @@ bool OpenALSoundStream::InitSample()
|
||||||
Format = AL_FORMAT_MONO16;
|
Format = AL_FORMAT_MONO16;
|
||||||
else if(Sample->actual.channels == 2)
|
else if(Sample->actual.channels == 2)
|
||||||
Format = AL_FORMAT_STEREO16;
|
Format = AL_FORMAT_STEREO16;
|
||||||
smpsize = 1 * Sample->actual.channels;
|
smpsize = 2 * Sample->actual.channels;
|
||||||
}
|
}
|
||||||
else if(Sample->actual.format == AUDIO_U16LSB || Sample->actual.format == AUDIO_U16MSB)
|
else if(Sample->actual.format == AUDIO_U16LSB || Sample->actual.format == AUDIO_U16MSB)
|
||||||
{
|
{
|
||||||
|
@ -420,7 +420,7 @@ bool OpenALSoundStream::InitSample()
|
||||||
Format = AL_FORMAT_MONO16;
|
Format = AL_FORMAT_MONO16;
|
||||||
else if(Sample->actual.channels == 2)
|
else if(Sample->actual.channels == 2)
|
||||||
Format = AL_FORMAT_STEREO16;
|
Format = AL_FORMAT_STEREO16;
|
||||||
smpsize = 1 * Sample->actual.channels;
|
smpsize = 2 * Sample->actual.channels;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Format == AL_NONE)
|
if(Format == AL_NONE)
|
||||||
|
@ -570,7 +570,7 @@ void* Decoder::GetData(ALsizei *size)
|
||||||
for(size_t i = 0;i < count;i++)
|
for(size_t i = 0;i < count;i++)
|
||||||
{
|
{
|
||||||
short smp = *samples;
|
short smp = *samples;
|
||||||
*(samples++) = ((smp>>8)&0x00FF) | ((smp<<8)*0xFF00);
|
*(samples++) = ((smp>>8)&0x00FF) | ((smp<<8)&0xFF00);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue