Commit Graph

3031 Commits

Author SHA1 Message Date
Max Roncace 49080f6119 Move aurora_begin_frame/aurora_end_frame calls to main loop
This fixes an issue when using SDL's X11 backend due to Dusk
attempting to render ImGui menus without an active frame.
2026-03-18 16:33:03 -04:00
Max Roncace 2194b7ecf4 Update m_Do window viewport immediately on Aurora window resize
The framebuffer size flows into Aurora as follows:

Into JUTVideo:
  AURORA_WINDOW_RESIZED handler ->
  mDoGph_gInf_c::setWindowSize ->
  JUTVideo::setWindowSize
From JUTVideo -> dComIfG_play_c:
  fpcCt_Handler ->
  phase_4 ->
  dComIfGp_setWindow
From dComIfGp_play_c -> Aurora:
  mDoGph_Painter ->
  drawDepth2 ->
  GXSetTexCopySrc ->
  GXCopyTex ->
  aurora::gfx::resolve_pass (called by GXCopyTex)

The trouble is that 1) phase_4 is only called when creating a new scene/room,
and 2) even when it is called, mDoGph_Painter is executed before fpcCt_Handler
in the main loop so the new size isn't visible to aurora::gfx::resolve_pass
until one frame after it's set. This causes a crash due to the original size
being passed to CopyTextureToTexture despite the destination framebuffer now
being smaller.

As a workaround, we just cut out the whole middleman section and call
dComIfGp_setWindow immediately when we receive a resize event. This way the new
size is immediately visible to Aurora.
2026-03-18 12:46:56 -04:00
TakaRikka 674e5dcaa1 Merge https://github.com/zeldaret/tp 2026-03-18 02:58:55 -07:00
TakaRikka 81add0a2ab fix push pull callback UB in other compilers (#3134) 2026-03-18 02:57:37 -07:00
TakaRikka 929e71975c add cc collider view (broken color) 2026-03-18 01:25:42 -07:00
Max Roncace bb061a1225 Merge remote-tracking branch 'decomp/main' 2026-03-18 01:56:47 -04:00
TakaRikka dee722dab5 cc debug work (#3133) 2026-03-17 22:48:37 -07:00
Max Roncace 8578874254 Fix a bunch of compiler warnings and document several more bugs (#3130) 2026-03-17 22:38:05 -07:00
Lurs 7ba4862622 BE or un-BE, that is the question 2026-03-17 14:39:02 +01:00
Lurs f2b73c1037 BE field_0x04 of "new" struct SizedGroup in src\d\actor\d_a_passer_mng.cpp 2026-03-17 13:25:27 +01:00
TakaRikka eaad85d618 initial collision viewer 2026-03-17 05:17:43 -07:00
TakaRikka 266c4317d9 Merge https://github.com/zeldaret/tp 2026-03-17 04:08:44 -07:00
TakaRikka 3aec45d6d7 various d_bg debug cleanup / d_menu_window_HIO debug (#3132)
* various d_bg debug cleanup

* matching forward decl for compiler compatibility

* fix build
2026-03-17 03:44:11 -07:00
CraftyBoss 851452bca6 npc actor in screen check fix, fix dBgWKCol::RoofChk using wrong var for prism idx calc 2026-03-17 02:16:09 -07:00
CraftyBoss e17c32f41e BE swap shop params, fix shop cursor projection, handle divide by zero in d_vibration, stub startLevelSound audio func 2026-03-16 22:01:46 -07:00
TakaRikka a10f7b7806 Merge pull request #96 from TakaRikka/ira-bloomtoggle
Toggle bloom from graphics menu
2026-03-16 17:03:39 -07:00
Irastris 563e25e1b9 Toggle bloom from graphics menu 2026-03-16 19:54:44 -04:00
PJB3005 2688ed93f0 Audio processing in f32 2026-03-17 00:03:35 +01:00
PJB3005 db47a6b9bd Clear history samples when resetting channel 2026-03-17 00:03:15 +01:00
CraftyBoss e751e3b3da fix uninitialized f32 causing crash in palace of twilight, add FPS to menu bar 2026-03-16 15:43:42 -07:00
PJB3005 b6fc8019ce More ImGuiAudio stuff 2026-03-16 23:37:57 +01:00
TakaRikka 61d2ba1e33 Merge pull request #93 from TakaRikka/ira-crashfix1
JAUSoundTable-related crash fix
2026-03-16 14:27:43 -07:00
TakaRikka 609685b3e6 Merge pull request #94 from TakaRikka/bugfixes
Bugfixes for some issues (cXyz in savegame, collision and fading)
2026-03-16 14:21:49 -07:00
Max Roncace 2679b7d02b Fix crashes due to current texture not being set before loading (#61, #95) 2026-03-16 16:28:22 -04:00
Irastris 451ebcbb3c Use DUSK_AUDIO_DISABLED instead of TARGET_PC 2026-03-16 11:48:45 -04:00
PJB3005 b383fad1ad Fix fopAcM_cullingCheck use after scope 2026-03-16 15:53:15 +01:00
PJB3005 1e1dc8d88e dStage_startStage_c::set fix strcpy to same pointer
And just switch to strncpy_s while we're at it.
2026-03-16 15:48:09 +01:00
PJB3005 a724d1b9ad Fix sprintf buffer too small in dMsgObject_c::readMessageGroupLocal 2026-03-16 15:44:26 +01:00
PJB3005 0db942f82a Clang Windows compile fixes 2026-03-16 15:44:02 +01:00
PJB3005 0b9bcc7e08 Only mark channel as finished when resample buffer is empty
Does not fix the audio corruption but necessary either way
2026-03-16 14:27:27 +01:00
PJB3005 247b04379a Output as F32
This completely fucks up audio. Pending debugging to figure out why
2026-03-16 13:57:04 +01:00
Lurs a791288d95 Fixes #80
?
2026-03-16 08:35:35 +01:00
Lurs eafc00383c Fixes crash when entering the very first house 2026-03-16 08:35:35 +01:00
Max Roncace a763c8ee05 Increase Scene2DHeap size (#90)
This fixes a crash when the game asks to save when leaving the ranch
after goats 1.
2026-03-15 23:28:34 -04:00
roeming eb9dc59d5b convert daPasserMng_c::mGroupTbl underlying data from bytes to daPasserMng_c::Group (#3129)
* daPasserMng_c::mGroupTbl underlying data to daPasserMng_c::Group

* move over to const groups

* templated solution that works on modern compilers + mwcc

---------

Co-authored-by: roeming <roeming@users.noreply.github.com>
2026-03-15 18:06:16 -07:00
TakaRikka e5ca5af3f2 work on controller config 2026-03-15 15:54:03 -07:00
Irastris ee2079bcf9 JAUSoundTable-related crash fix 2026-03-15 18:53:42 -04:00
PJB3005 3d90854579 Ignore oscillator channels
Idk if these show up yet but they did when the BMS stuff was broken
2026-03-15 20:36:04 +01:00
PJB3005 baf10b6b4e Basic volume control, no panning yet 2026-03-15 20:35:30 +01:00
PJB3005 07892dbe28 Allow decoding less PCM samples than a full frame 2026-03-15 20:35:06 +01:00
PJB3005 4307f9149f More audio debug imgui that idk how useful it is 2026-03-15 17:57:44 +01:00
PJB3005 df7d08a7f7 Un-stub audio wave loading code
guh
2026-03-15 17:56:26 +01:00
PJB3005 2c84387ec9 Implement DSP pause somewhat 2026-03-15 01:32:13 +01:00
Max Roncace 4fd2ddd67a Fix some Clang compile warnings 2026-03-14 18:37:18 -04:00
PJB3005 197e59896e Foiled again 2026-03-14 17:38:26 +01:00
PJB3005 0bd5ec4da5 Audio debug imgui 2026-03-14 17:35:09 +01:00
PJB3005 c962c167b7 Fix sound userdata pointers being truncated 2026-03-14 16:43:29 +01:00
PJB3005 5eaec7360b Resample audio with SDL3 2026-03-14 15:50:39 +01:00
PJB3005 82b4f6327c Assign names to threads
Visible in debuggers etc
2026-03-14 14:16:49 +01:00
PJB3005 7eaabe6ecc We have audio!! 2026-03-14 14:03:10 +01:00