Allow selection of *.wav

Plus other minor changes.
This commit is contained in:
veroxzik
2022-11-12 19:43:21 -05:00
parent 23a6d01cac
commit 535cb9cbdc
3 changed files with 206 additions and 296 deletions
+2 -2
View File
@@ -7,9 +7,9 @@
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<Version>$(VersionPrefix)2.0.0-rc8</Version>
<Version>$(VersionPrefix)2.0.0</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>2.0.0-rc8</FileVersion>
<FileVersion>2.0.0</FileVersion>
<Company>Goatgarien</Company>
<Copyright>2022</Copyright>
<StartupObject>BAKKA_Editor.Program</StartupObject>
+193 -285
View File
File diff suppressed because it is too large Load Diff
+11 -9
View File
@@ -898,12 +898,15 @@ namespace BAKKA_Editor
songFilePath = openSongDialog.FileName;
songFileLabel.Text = songFilePath;
currentSong = soundEngine.Play2D(songFilePath, true, true);
/* Volume is represented as a float from 0-1. */
currentSong.Volume = (float)trackBarVolume.Value / (float)trackBarVolume.Maximum;
if (currentSong != null)
{
/* Volume is represented as a float from 0-1. */
currentSong.Volume = (float)trackBarVolume.Value / (float)trackBarVolume.Maximum;
songTrackBar.Value = 0;
songTrackBar.Maximum = (int)currentSong.PlayLength;
playButton.Enabled = true;
songTrackBar.Value = 0;
songTrackBar.Maximum = (int)currentSong.PlayLength;
playButton.Enabled = true;
}
}
}
@@ -1246,10 +1249,9 @@ namespace BAKKA_Editor
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show($"VeroxZik's C# port of Goatgarien's BAKKA Editor.\n\n" +
$"Original C++ version: Goatgarien\n" +
$"Initial C# port: VeroxZik\n" +
$"UI Inspiration: Yellowberry",
MessageBox.Show($"BAKKA Editor\n\n" +
$"Authors: Goatgarien and VeroxZik\n" +
$"Contributions: Yellowberry, Farex-GH",
$"BAKKA Editor {fileVersion}");
}