mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
audio: Remove unneeded 'break'
This commit is contained in:
parent
a6b3f761f8
commit
6d714a16cf
@ -437,7 +437,6 @@ func (p *playerImpl) readLoop() {
|
|||||||
}
|
}
|
||||||
timer = time.NewTimer(time.Millisecond)
|
timer = time.NewTimer(time.Millisecond)
|
||||||
timerCh = timer.C
|
timerCh = timer.C
|
||||||
break
|
|
||||||
|
|
||||||
case <-timerCh:
|
case <-timerCh:
|
||||||
// If the buffer has 1 second, that's enough.
|
// If the buffer has 1 second, that's enough.
|
||||||
|
@ -55,6 +55,8 @@ func (m *mux) Read(b []byte) (int, error) {
|
|||||||
|
|
||||||
allSkipped := true
|
allSkipped := true
|
||||||
|
|
||||||
|
// TODO: Now a player is not locked. Should we lock it?
|
||||||
|
|
||||||
for p := range m.ps {
|
for p := range m.ps {
|
||||||
if p.shouldSkip() {
|
if p.shouldSkip() {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user