libertyernie / brawltools

BrawlBox and BrawlLib
http://forums.kc-mm.com/index.php?topic=67847.0
143 stars 31 forks source link

BrawlBox not wanting to create BRSTM files #251

Open CryoraptorA303tm opened 1 month ago

CryoraptorA303tm commented 1 month ago

Upon importing a WAV file to convert to BRSTM, BrawlBox gives this error if I try to play the audio back:

Attempted to divide by zero. at System.Audio.AudioBuffer.Update() at System.Audio.AudioBuffer.Fill() at System.Windows.Forms.BrstmConverterDialog.tmrUpdate_Tick(Object sender, EventArgs e) at System.Windows.Forms.BrstmConverterDialog.Play() at System.Windows.Forms.BrstmConverterDialog.btnPlay_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

If I ignore the warning and create the BRSTM anyway, BrawlBox will simply crash.

Any ideas why this is happening?