Minor fixes, remove redundant debug info

This commit is contained in:
LeshaInc 2023-03-19 21:11:23 +03:00
parent bcb617815d
commit 1cb24883b3
No known key found for this signature in database
GPG Key ID: 7F51850974C1C795
3 changed files with 1 additions and 5 deletions

View File

@ -49,7 +49,6 @@ object Audio extends Logging {
def playSource(source: SoundSource): Unit = synchronized {
if (sources.contains(source)) {
logger.error(s"play: $source ")
AL10.alSourcePlay(sources(source).sourceId)
return
}

View File

@ -8,9 +8,6 @@ class SoundSettingsTab extends SettingsTab {
override val icon: String = "icons/SettingsSound"
override val label: String = "Sound"
override def applySettings(): Unit = {
}
children :+= new PaddingBox(new Slider(Settings.get.volumeMaster, "Master Volume") {
override def minimumSize: Size2D = Size2D(512, 24)

View File

@ -33,7 +33,7 @@ class StatusBar extends Widget {
children :+= new PaddingBox(new Label {
override def maximumSize: Size2D = minimumSize
override def color: Color = ColorScheme("StatusBarFPS")
override def text: String = f"FPS: ${UiHandler.fps}%02.1f S: ${Audio.numSources}"
override def text: String = f"FPS: ${UiHandler.fps}%02.1f"
}, Padding2D(left = 8, right = 8))
} else {
children = children.take(2)