mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48: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 {
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user