mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
examples/audio: Show the current volume (#730)
This commit is contained in:
parent
123be16699
commit
348e50c5e7
@ -212,7 +212,8 @@ Press S to toggle Play/Pause
|
||||
Press P to play SE
|
||||
Press Z or X to change volume of the music
|
||||
Press B to switch the run-in-background state
|
||||
Current Time: %s`, ebiten.CurrentTPS(), currentTimeStr)
|
||||
Current Time: %s
|
||||
Current Volume: %d/128`, ebiten.CurrentTPS(), currentTimeStr, int(p.audioPlayer.Volume()*128))
|
||||
ebitenutil.DebugPrint(screen, msg)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user