Skip to content

Commit 5904502

Browse files
committed
internal/mux: refactoring
1 parent 0089e93 commit 5904502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/mux/mux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ func (p *playerImpl) readBufferAndAdd(buf []float32) int {
459459
}
460460

461461
channelCount := p.mux.channelCount
462-
rateDenom := float32(n) / float32(channelCount)
462+
rateDenom := float32(n / channelCount)
463463
// If the volume change is caused by a state change, use a small denom.
464464
// On browsers, n might be too big and pausing might not be smooth.
465465
if p.prevVolume == p.volume {

0 commit comments

Comments
 (0)