Commit Graph

251 Commits

Author SHA1 Message Date
d1str4ught
436db01a80 Merge pull request #33 from nbsnl/fix/fullscreen-wasapi-crash
Fix fullscreen startup crash caused by WASAPI audio initialization
2025-11-21 22:44:56 +01:00
nbsnl
6227fed5be Fix fullscreen startup crash caused by WASAPI audio initialization
The client was crashing during fullscreen initialization due to a NULL 
IMMDeviceEnumerator pointer inside miniaudio’s WASAPI backend.

Crash location:
ma_IMMDeviceEnumerator_GetDefaultAudioEndpoint
(inlined in ma_device_init_internal__wasapi)

Disassembly showed a null vtable dereference:
call qword ptr [rax+20h]

On some systems, WASAPI fails to create or retrieve the default audio endpoint
(especially in VMs, RDP sessions, missing/disabled audio devices, or timing
issues during fullscreen initialization). This results in a NULL COM pointer 
being used, causing a 0xC0000005 access violation before the game window fully 
appears.

Solution:
WASAPI backend has been disabled and the client now falls back to the more stable 
DirectSound/WinMM audio backends.

Applied definitions:
#define MA_NO_WASAPI
#define MA_ENABLE_DSOUND
#define MA_ENABLE_WINMM

Results:
✔ Fullscreen crash completely resolved
✔ Audio still works through DirectSound
✔ Improved stability across fullscreen/windowed modes
✔ No functional drawbacks observed
2025-11-15 23:48:28 +03:00
Mind Rapist
a49dec1c87 fix: Locale selection for RelWithDebInfo and dragon_rock/mobs textures 2025-11-14 18:42:07 +02:00
d1str4ught
2eee9aead2 Merge pull request #26 from rtw1x1/main
QoL Equipment slots
2025-11-13 18:54:08 +01:00
savis
0b60aac3e8 removed matrix 2025-10-13 19:18:16 +02:00
Amun
7caf9639e0 Audio engine: small bug(see desc)
The music wouldn't play if the sound was 0 and you changed the song because it would be stopped by the fade during the next frame.
2025-10-08 21:34:43 +03:00
Amun
01f4417d80 Audio Engine volume bug & small update
Fixed a bug where the volume change would be ignored if the sound was fading
Added SoundEngine::GetMusicVolume
Removed volume factor
Removed unused SetListenerVelocity
2025-10-05 22:08:37 +03:00
d1str4ught
de6817c338 guild packets same size 2025-09-30 11:27:10 +02:00
rtw1x1
a808d1d102 Syncronise Wear/Wearable client - server. 2025-09-29 07:36:29 +01:00
rtw1x1
7c86b64dc3 Let CItemData handle equipment slot instead of keeping track of indexes every time. 2025-09-28 20:23:22 +01:00
heroesf
133ac6fc41 removed cpostit, unused files, small fix warning 2025-09-25 12:45:14 +02:00
d1str4ught
7f42fc2c3f Merge pull request #23 from mq1n/main
fix build error in latest VS
2025-09-24 03:02:15 +02:00
d1str4ught
c0ea439b6d Merge pull request #21 from ThorsDev/features/scissor-rect
Added scissor rect for UI
2025-09-24 03:01:04 +02:00
mq1n
4894b0db9d fix build error in latest VS
https://i.imgur.com/ymbN7Vm.png
2025-09-23 18:19:31 +03:00
ThorsDev
c5feaaf2d9 scissor rect 2025-09-22 17:48:21 +02:00
mq1n
255212e906 fix MSAA and backbuffer format handling in device creation 2025-09-22 17:59:54 +03:00
d1str4ught
252f06bd0c Merge pull request #19 from mq1n/main
crash fixes, ASan support and setup GitHub actions workflow
2025-09-22 14:57:09 +02:00
mq1n
51ee5feb78 fixed some crashes 2025-09-22 11:25:58 +03:00
ThorsDev
ef97bbc54b locale fix 2025-09-22 05:55:39 +02:00
d1str4ught
bdcb68619a guild mark uploading fixed 2025-09-22 02:44:22 +02:00
d1str4ught
81c61692f1 LoadImageFromFile for CImageBox 2025-09-22 01:43:01 +02:00
d1str4ught
b4637e4782 client sources moved to C++20 2025-09-22 00:45:08 +02:00
d1str4ught
5b1d3c6bce new pack system 2025-09-21 05:28:55 +02:00
d1str4ught
775cb2f927 some missing stuff 2025-09-21 01:32:59 +02:00
d1str4ught
7509eeb93b encryption for .py files in PackMaker 2025-09-21 01:24:05 +02:00
d1str4ught
3b1d0fd10a custom PackMaker 2025-09-21 01:09:06 +02:00
mq1n
fb7e53b909 migrate to DirectX 9Ex from DirectX 9 2025-09-19 16:12:33 +03:00
mq1n
eaecf67d33 fix cipher desync issue
update the handshake phase to call the new method after activating the cipher, ensuring buffered data (likely from a second login attempt, GC_PHASE) is properly decrypted, and fix a logging format issue.
2025-09-07 20:24:38 +03:00
mq1n
b3aba3d280 enabled detailed packet logs for easier debugging 2025-09-02 19:40:05 +03:00
d1str4ught
dcf45e3a6e last packet log for not enough packet size error log 2025-09-02 14:53:38 +02:00
d1str4ught
e1eb805f8a Merge pull request #13 from savisxss/main
removed unused code
2025-09-02 12:07:34 +02:00
d1str4ught
cfae08b973 Merge pull request #12 from sndth/fix-audio-casting-warnings
Fix potential casting warnings inside AudioLib
2025-09-02 12:07:03 +02:00
d1str4ught
b24a3ab17d Merge pull request #9 from sndth/fix-audio-pointer-dangling-2
Fix issue with dangling playSoundInstance pointer
2025-09-02 12:06:45 +02:00
savis
252df67871 removed passpod 2025-09-01 21:36:42 +02:00
Amun
1432d4c8ea Removed playSoundInstance->Stop
A new instance is acquired whenever a new sound is played in the area. The previous instance might be acquired by another part of the game, stopping it was a mistake on my side.
2025-09-01 18:36:22 +03:00
sndth
99f04c27d4 Fix potential casting warnings inside AudioLib 2025-09-01 17:28:25 +02:00
sndth
64ed7f2bd5 Fix issue with dangling playSoundInstance pointer 2025-09-01 17:15:18 +02:00
Amun
f6c9422048 Sound engine update 2025-09-01 14:46:23 +03:00
d1str4ught
8c349d4a0f quest image ptr fixed 2025-08-29 00:15:32 +02:00
d1str4ught
d690de0b5a auction removed 2025-08-28 22:52:08 +02:00
d1str4ught
85920e442d item_set and item_del packets normalized to server 2025-08-28 22:41:41 +02:00
d1str4ught
6b97701f0e dirline render states fixed 2025-08-28 21:24:02 +02:00
d1str4ught
f0ce190550 flytrace restorevertexshader fixed 2025-08-28 21:20:49 +02:00
d1str4ught
f791ab6d8c world editor defines removed 2025-08-28 21:03:15 +02:00
d1str4ught
b66e045d80 particle rendering: render all visible particles 2025-08-28 20:52:54 +02:00
d1str4ught
a418f8616d include paths normalized 2025-08-28 20:50:20 +02:00
d1str4ught
f19cb2f118 openid python constants removed 2025-08-28 20:15:58 +02:00
d1str4ught
3c8a5750f5 openid removed 2025-08-28 20:13:47 +02:00
d1str4ught
7651d8cf65 some more unused defines removed 2025-08-28 20:02:30 +02:00
d1str4ught
a83fc7e642 check latest files removed 2025-08-28 19:59:25 +02:00