Skip to content

Commit

Permalink
windows: bug fix: only one channel was played in multi-channel enviro…
Browse files Browse the repository at this point in the history
…nments

Closes #207
  • Loading branch information
hajimehoshi committed Mar 14, 2023
1 parent bd76255 commit cf32f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver_wasapi_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func (c *wasapiContext) writeOnRenderThread() error {
for i := 0; i < int(frames); i++ {
for j := 0; j < c.actualChannelCount; j++ {
if j < c.channelCount {
c.bufForActualChannels[i*c.actualChannelCount+j] = c.buf[i*c.channelCount]
c.bufForActualChannels[i*c.actualChannelCount+j] = c.buf[i*c.channelCount+j]
} else {
c.bufForActualChannels[i*c.actualChannelCount+j] = 0
}
Expand Down

0 comments on commit cf32f45

Please sign in to comment.