mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
examples/audio: Remove 'loading' message
This commit is contained in:
parent
59110ba5ec
commit
3cac19d1b8
@ -93,7 +93,6 @@ type Player struct {
|
|||||||
seBytes []uint8
|
seBytes []uint8
|
||||||
seCh chan []uint8
|
seCh chan []uint8
|
||||||
volume128 int
|
volume128 int
|
||||||
previousPos time.Duration
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -264,12 +263,6 @@ Press S to toggle Play/Pause
|
|||||||
Press P to play SE
|
Press P to play SE
|
||||||
Press Z or X to change volume of the music
|
Press Z or X to change volume of the music
|
||||||
%s`, ebiten.CurrentFPS(), currentTimeStr)
|
%s`, ebiten.CurrentFPS(), currentTimeStr)
|
||||||
current := p.audioPlayer.Current()
|
|
||||||
prev := p.previousPos
|
|
||||||
p.previousPos = p.audioPlayer.Current()
|
|
||||||
if p.audioPlayer.IsPlaying() && prev == current {
|
|
||||||
msg += "\nLoading..."
|
|
||||||
}
|
|
||||||
ebitenutil.DebugPrint(screen, msg)
|
ebitenutil.DebugPrint(screen, msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user