Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having "Input cycle" axis input set to 0 in SubGBHawk core with Audio Throttle with Unthrottled option enabled while using the XAudio2 output crashes BizHawk #4116

Open
getCursorsExe opened this issue Nov 15, 2024 · 3 comments
Labels
App: EmuHawk Relating to EmuHawk frontend Core: GBHawk Game Boy / Color (GB/GBC) core Repro: Could not reproduce The reporter hasn't given enough info, or the fix was made and not recorded

Comments

@getCursorsExe
Copy link

I can't have the title shorter.

I have no idea if this is device-dependent. This doesn't happen when using OpenAL.

SharpGen.Runtime.SharpGenException: HRESULT: [0x88960001], Module: [Vortice.XAudio2], ApiCode: [XAUDIO2_E_INVALID_CALL/InvalidCall]
   w SharpGen.Runtime.Result.ThrowFailureException()
   w Vortice.XAudio2.IXAudio2SourceVoice.SubmitSourceBuffer(AudioBuffer buffer, Nullable`1 bufferWMA)
   w Vortice.XAudio2.IXAudio2SourceVoice.SubmitSourceBuffer(AudioBuffer buffer, UInt32[] decodedXMWAPacketInfo)
   w BizHawk.Bizware.Audio.XAudio2SoundOutput.WriteSamples(Int16[] samples, Int32 sampleOffset, Int32 sampleCount) w /src/BizHawk.Bizware.Audio/XAudio2SoundOutput.cs:wiersz 159
   w BizHawk.Client.EmuHawk.Sound.UpdateSound(Single atten, Boolean isSecondaryThrottlingDisabled) w /src/BizHawk.Client.EmuHawk/Sound/Sound.cs:wiersz 240
   w BizHawk.Client.EmuHawk.MainForm.StepRunLoop_Core(Boolean force) w /src/BizHawk.Client.EmuHawk/MainForm.cs:wiersz 3126
   w BizHawk.Client.EmuHawk.MainForm.ProgramRunLoop() w /src/BizHawk.Client.EmuHawk/MainForm.cs:wiersz 885
   w BizHawk.Client.EmuHawk.Program.SubMain(String[] args) w /src/BizHawk.Client.EmuHawk/Program.cs:wiersz 351
@CasualPokePlayer
Copy link
Member

I cannot reproduce this.

Also, "Input Cycle" is treated as 70224 if it is 0, it should have absolutely no effect for this issue (so the regular GBHawk core would be affected here)

@Morilli
Copy link
Collaborator

Morilli commented Nov 15, 2024

Could also be rom dependent. Does this happen consistently for you no matter what rom is loaded? Also, what's your audio buffer size configured to?

@YoshiRulz YoshiRulz added Core: GBHawk Game Boy / Color (GB/GBC) core App: EmuHawk Relating to EmuHawk frontend labels Nov 16, 2024
@getCursorsExe
Copy link
Author

100 miliseconds.
It seems that this issue is device-dependent.
Besides, this issue is too hard for me to describe.
I think this happens when you map the axis input to WMouse X, then you slowly scroll towards 0. I can't describe this in other way.

@YoshiRulz YoshiRulz added the Repro: Could not reproduce The reporter hasn't given enough info, or the fix was made and not recorded label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App: EmuHawk Relating to EmuHawk frontend Core: GBHawk Game Boy / Color (GB/GBC) core Repro: Could not reproduce The reporter hasn't given enough info, or the fix was made and not recorded
Projects
None yet
Development

No branches or pull requests

4 participants