Portaudio: Mix channels if mono (don't just output left channel)
This commit is contained in:
parent
d9100677ff
commit
7c489920b8
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,8 @@ namespace
|
|||
if(audiobuf_get == audiobuf_size)
|
||||
audiobuf_get = 0;
|
||||
}
|
||||
if(!stereo)
|
||||
l = l / 2 + r / 2;
|
||||
*(_output++) = l - 32768;
|
||||
if(stereo)
|
||||
*(_output++) = r - 32768;
|
||||
|
|
Loading…
Add table
Reference in a new issue