soopercool101 / BrawlCrate

BrawlBox/BrawlTools Fork, Wii File Editor
https://discord.gg/s7c8763
GNU Lesser General Public License v3.0
148 stars 38 forks source link

Crashes when attempting to make a brstm with wav file that has 8 channels #45

Open mkwiimaster7 opened 2 years ago

mkwiimaster7 commented 2 years ago

Im trying to make a brstm with 8 channels, but when i import the wav file used, it instantly crashes. here is the crash log:

Value does not fall within the expected range. at BrawlLib.Platform.Win32.DirectSound.IDirectSound8.CreateSoundBuffer(DSBufferDesc& pcDSBufferDesc, IDirectSoundBuffer8& ppDSBuffer, IntPtr pUnkOuter) at BrawlLib.Internal.Audio.wAudioBuffer..ctor(wAudioProvider parent, DSBufferDesc& desc) at BrawlLib.Internal.Audio.wAudioProvider.CreateBuffer(IAudioStream target) at BrawlLib.Internal.Windows.Forms.BrstmConverterDialog.LoadAudio(String path) at BrawlLib.Internal.Windows.Forms.BrstmConverterDialog.OnShown(EventArgs e) at System.Windows.Forms.Form.CallShownEvent() at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbacks()