Fix SDL audio playback with surround sound
If user has surround sound enabled, ioq3 would not play any sound. Fix painting sound buffer for 4/5.1 audio channels. Extra channels currently play no audio.
This commit is contained in:
parent
e4208cf5a7
commit
812a3dbfa5
3 changed files with 39 additions and 27 deletions
|
@ -1339,7 +1339,7 @@ void S_Update_(void) {
|
|||
& ~(dma.submission_chunk-1);
|
||||
|
||||
// never mix more than the complete buffer
|
||||
samps = dma.samples >> (dma.channels-1);
|
||||
samps = dma.samples / dma.channels;
|
||||
if (endtime - s_soundtime > samps)
|
||||
endtime = s_soundtime + samps;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue