mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-14 00:47:37 +00:00
Fix non generic audio files not loading the audio player,
This commit is contained in:
parent
6afce74460
commit
8b2c8466fc
7 changed files with 4 additions and 1 deletions
Binary file not shown.
|
@ -40,6 +40,9 @@ namespace FirstPlugin
|
|||
|
||||
public AudioPlayer OpenForm()
|
||||
{
|
||||
if (audioData == null)
|
||||
throw new Exception("Audio data is null!");
|
||||
|
||||
AudioPlayer form = new AudioPlayer();
|
||||
form.Text = FileName;
|
||||
form.Dock = DockStyle.Fill;
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -131,7 +131,7 @@ namespace Switch_Toolbox.Library.Forms
|
|||
memWav.Position = 0;
|
||||
|
||||
//Load the player
|
||||
audioChannel.audioPlayer.Open(new MemoryStream(audioChannel.Data),"wav", activeDevice);
|
||||
audioChannel.audioPlayer.Open(new MemoryStream(audioChannel.Data),"test.wav", activeDevice);
|
||||
|
||||
/* OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
if (openFileDialog.ShowDialog() == DialogResult.OK)
|
||||
|
|
Loading…
Reference in a new issue