This repository was archived by the owner on Jan 4, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 120
This repository was archived by the owner on Jan 4, 2023. It is now read-only.
Sound instance is throwing an error #482
Copy link
Copy link
Closed
Description
Describe the bug
Every now and then the sound instance will throw an error and crash PV8. Looks like loading a game triggers it then on the error screen it gets triggered again since there is no error sound.
To reproduce
Steps to reproduce the behavior:
- Happens randomly when you load and reload games
Expected behavior
Should be a silent error and not crash the player.
Error
¡ External component has thrown an exception. at Microsoft.Xna.Framework.Audio.SoundEffectInstance.Play() in /Users/jessefreeman/Documents/Projects/PixelVision8/PixelVision8/SDK/MonoVision/Audio/SoundEffectInstance.cs:line 160
at PixelVision8.Player.SoundChannel.Play(SoundData soundData, Nullable`1 frequency) in /Users/jessefreeman/Documents/Projects/PixelVision8/PixelVision8/SDK/Player/Chips/Audio/SoundChannel.Sfxr.cs:line 214
at PixelVision8.Player.SoundChip.PlaySound(Int32 index, Int32 channelId, Nullable`1 frequency) in /Users/jessefreeman/Documents/Projects/PixelVision8/PixelVision8/SDK/Player/Chips/Audio/SoundChip.cs:line 123
at PixelVision8.Player.GameChip.PlaySound(Int32 id, Int32 channel) in /Users/jessefreeman/Documents/Projects/PixelVision8/PixelVision8/SDK/Player/Chips/Game/GameChip.Sound.cs:line 42
at MoonSharp.Interpreter.Interop.MethodMemberDescriptor.Execute(Script script, Object obj, ScriptExecutionContext context, CallbackArguments args)
at MoonSharp.Interpreter.Execution.VM.Processor.Internal_ExecCall(Int32 argsCount, Int32 instructionPtr, CallbackFunction handler, CallbackFunction continuation, Boolean thisCall, String debugText, DynValue unwindHandler)
at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop(Int32 instructionPtr)
at MoonSharp.Interpreter.Execution.VM.Processor.Call(DynValue function, DynValue[] args)
at PixelVision8.Player.LuaGameChip.Update(Int32 timeDelta) in /Users/jessefreeman/Documents/Projects/PixelVision8/PixelVision8/SDK/Lua/Chips/Game/LuaGameChip.cs:line 67
at PixelVision8.Player.PixelVision.Update(Int32 timeDelta) in /Users/jessefreeman/Documents/Projects/PixelVision8/PixelVision8/SDK/Player/PixelVision.cs:line 83
at PixelVision8.Runner.GameRunner.Update(GameTime gameTime) in /Users/jessefreeman/Documents/Projects/PixelVision8/PixelVision8/SDK/Runner/Game/GameRunner.Engine.cs:line 59
at PixelVision8.Runner.DesktopRunner.Update(GameTime gameTime) in /Users/jessefreeman/Documents/Projects/PixelVision8/PixelVision8/SDK/Runner/DesktopRunner.cs:line 843
Reactions are currently unavailable