From 48c8d9d56ae21860558d76e36af095e41d742b45 Mon Sep 17 00:00:00 2001 From: ocealot Date: Fri, 23 Feb 2024 21:43:31 -0500 Subject: [PATCH] Update AudioPlayer.cs --- .../Formats/ScdFormat/Music/AudioPlayer.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/VFXEditor/Formats/ScdFormat/Music/AudioPlayer.cs b/VFXEditor/Formats/ScdFormat/Music/AudioPlayer.cs index 3795fb4b..0a2bb2d9 100644 --- a/VFXEditor/Formats/ScdFormat/Music/AudioPlayer.cs +++ b/VFXEditor/Formats/ScdFormat/Music/AudioPlayer.cs @@ -64,15 +64,16 @@ public void DrawMiniPlayer() { } private void DrawControls() { - using var font = ImRaii.PushFont( UiBuilder.IconFont ); - if( State == PlaybackState.Stopped ) { - if( ImGui.Button( FontAwesomeIcon.Play.ToIconString() ) ) Play(); - } - else if( State == PlaybackState.Playing ) { - if( ImGui.Button( FontAwesomeIcon.Pause.ToIconString() ) ) CurrentOutput.Pause(); - } - else if( State == PlaybackState.Paused ) { - if( ImGui.Button( FontAwesomeIcon.Play.ToIconString() ) ) CurrentOutput.Play(); + using( var font = ImRaii.PushFont( UiBuilder.IconFont ) ) { + if( State == PlaybackState.Stopped ) { + if( ImGui.Button( FontAwesomeIcon.Play.ToIconString() ) ) Play(); + } + else if( State == PlaybackState.Playing ) { + if( ImGui.Button( FontAwesomeIcon.Pause.ToIconString() ) ) CurrentOutput.Pause(); + } + else if( State == PlaybackState.Paused ) { + if( ImGui.Button( FontAwesomeIcon.Play.ToIconString() ) ) CurrentOutput.Play(); + } } var selectedTime = ( float )CurrentTime;