audio/internal/readerdriver: Refactoring (Windows)

This commit is contained in:
Hajime Hoshi 2021-05-28 16:45:55 +09:00
parent 541156f255
commit c54e5371ad

View File

@ -184,14 +184,14 @@ func (p *players) removeImpl(player *playerImpl) error {
} }
func (p *players) shouldWait() bool { func (p *players) shouldWait() bool {
if len(p.players) == 0 {
return true
}
if p.waveOut == 0 { if p.waveOut == 0 {
return false return false
} }
if len(p.players) == 0 {
return true
}
if len(p.buf) < headerBufferSize*len(p.headers) { if len(p.buf) < headerBufferSize*len(p.headers) {
return false return false
} }