Skip to content

Commit

Permalink
Final edits before 0.3.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
WesternGamer committed Oct 12, 2023
1 parent 3597bc8 commit 916057b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RDR2AudioTool/AudioEditingWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<CheckBox x:Name="AutoPlayBox" Content="Autoplay" HorizontalAlignment="Left" Margin="115,0,0,18" VerticalAlignment="Bottom" IsEnabled="False" Checked="autoPlay_Checked" Unchecked="autoPlay_Unchecked"/>
<CheckBox x:Name="LoopAutoPlay" Content="Loop Entire AWC" HorizontalAlignment="Left" Margin="195,0,0,18" VerticalAlignment="Bottom" IsEnabled="False" Checked="loopAutoPlay_Checked" Unchecked="loopAutoPlay_Unchecked"/>
<Button x:Name="PlayLastButton" Content="" HorizontalAlignment="Center" Margin="-85,0,0,8" VerticalAlignment="Bottom" Height="40" Width="40" FontSize="24" Click="PlayLastButton_Click" IsEnabled="False"/>
<Button x:Name="PlayButton" Content="" HorizontalAlignment="Center" Margin="15,0,0,8" VerticalAlignment="Bottom" Height="40" Width="40" FontSize="24" Click="PlayButton_Click" IsEnabled="False"/>
<Button x:Name="PlayButton" Content="" HorizontalAlignment="Center" Margin="15,0,0,8" VerticalAlignment="Bottom" Height="40" Width="40" FontSize="24" Click="PlayButton_Click" IsEnabled="False"/>
<Button x:Name="PlayNextButton" Content="" HorizontalAlignment="Center" Margin="115,0,0,8" VerticalAlignment="Bottom" Height="40" Width="40" FontSize="24" Click="PlayNextButton_Click" IsEnabled="False"/>
<DockPanel DockPanel.Dock="Bottom" LastChildFill="True" Margin="10">
<Slider x:Name="slider" HorizontalAlignment="Stretch" Margin="0,0,0,45" VerticalAlignment="Bottom" IsEnabled="False" ValueChanged="Slider_ValueChanged"/>
Expand Down
8 changes: 6 additions & 2 deletions RDR2AudioTool/AudioEditingWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,10 @@ private void Play()
waveOut.Play();
timer.Start();

PlayButton.Content = "⏸";
PlayButton.Click -= playHandler;
PlayButton.Click += pauseHandler;

double totalDuration = lengthSeconds; //this is how we make sure that the bar length is equal to the duration so that it properly goes from start to finish
slider.Maximum = totalDuration;
slider.Value = 0;
Expand Down Expand Up @@ -525,7 +529,7 @@ private void Pause()
{
waveOut.Pause();
isPaused = true;
PlayButton.Content = "";
PlayButton.Content = "";
PlayButton.Click -= pauseHandler;
PlayButton.Click += playHandler;
}
Expand All @@ -538,7 +542,7 @@ private void Stop()
waveOut.Dispose();
waveOut = new WaveOut();
timer.Stop();
PlayButton.Content = "";
PlayButton.Content = "";
}

private void PlayNext()
Expand Down
2 changes: 1 addition & 1 deletion RDR2AudioTool/RDR2AudioTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Description>Tool to edit RDR2 AWC files.</Description>
<Product>RDR 2 Audio Tool</Product>
<AssemblyTitle>RDR2AudioTool</AssemblyTitle>
<Version>0.2.1</Version>
<Version>0.3.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 916057b

Please sign in to comment.