mirror of
https://github.com/scummvm/scummvm.git
synced 2025-04-02 10:52:32 -04:00
SCUMM: DiMUSE: Remove Older Code Path for 8-bit Stereo Audio Mixing
This would have been executed instead of the newer code added in the previous commit on this module.
This commit is contained in:
parent
86d02ef73f
commit
a5d4e15f14
1 changed files with 0 additions and 16 deletions
|
@ -1075,22 +1075,6 @@ void IMuseDigiInternalMixer::mixBits8Stereo(uint8 *srcBuf, int32 inFrameCount, i
|
|||
mixBufCurCell += 2;
|
||||
}
|
||||
}
|
||||
} else if (2 * inFrameCount == feedSize) {
|
||||
srcBuf_ptr = srcBuf;
|
||||
if (inFrameCount - 1 != 0) {
|
||||
for (int i = 0; i < inFrameCount - 1; i++) {
|
||||
mixBufCurCell[0] += *((uint16 *)ampTable + srcBuf_ptr[0]);
|
||||
mixBufCurCell[1] += *((uint16 *)ampTable + srcBuf_ptr[1]);
|
||||
mixBufCurCell[2] += (*((int16 *)ampTable + srcBuf_ptr[0]) + *((int16 *)ampTable + srcBuf_ptr[2])) >> 1;
|
||||
mixBufCurCell[3] += (*((int16 *)ampTable + srcBuf_ptr[1]) + *((int16 *)ampTable + srcBuf_ptr[3])) >> 1;
|
||||
mixBufCurCell += 4;
|
||||
srcBuf_ptr += 2;
|
||||
}
|
||||
}
|
||||
mixBufCurCell[0] += *((uint16 *)ampTable + srcBuf_ptr[0]);
|
||||
mixBufCurCell[1] += *((uint16 *)ampTable + srcBuf_ptr[1]);
|
||||
mixBufCurCell[2] += *((uint16 *)ampTable + srcBuf_ptr[0]);
|
||||
mixBufCurCell[3] += *((uint16 *)ampTable + srcBuf_ptr[1]);
|
||||
} else if (2 * feedSize == inFrameCount) {
|
||||
if (feedSize) {
|
||||
srcBuf_ptr = srcBuf;
|
||||
|
|
Loading…
Add table
Reference in a new issue