Skip to content

Commit

Permalink
Update AudioPlayer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
0ceal0t committed Feb 24, 2024
1 parent 84ae9a2 commit 48c8d9d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions VFXEditor/Formats/ScdFormat/Music/AudioPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 48c8d9d

Please sign in to comment.