mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
audio/internal/readerdriver: Refactoring (Windows)
This commit is contained in:
parent
541156f255
commit
c54e5371ad
@ -184,14 +184,14 @@ func (p *players) removeImpl(player *playerImpl) error {
|
||||
}
|
||||
|
||||
func (p *players) shouldWait() bool {
|
||||
if len(p.players) == 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
if p.waveOut == 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
if len(p.players) == 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
if len(p.buf) < headerBufferSize*len(p.headers) {
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user