Commit Graph

2677 Commits

Author SHA1 Message Date
Lior Halphon 04afa64597 Can't be NULL 2022-07-23 14:24:28 +03:00
Lior Halphon 8e125b31f6 macOS compatibility, stability 2022-07-23 14:21:31 +03:00
Lior Halphon 2a29570f17 Merge remote-tracking branch 'origin/master' into openal 2022-07-23 13:41:35 +03:00
Lior Halphon dd24801507
Merge pull request #476 from CasualPokePlayer/camera_improvements
Various GB Camera improvements
2022-07-23 13:24:50 +03:00
Lior Halphon 6a8743e13a Fix Cocoa being broken outside of a debug environment 2022-07-23 13:24:10 +03:00
Lior Halphon 93c611e9bc
Values must be added to the end of a GB_SECTION for save state compatibility 2022-07-23 13:12:48 +03:00
CasualPokePlayer bb8f973fb4 Implement GB Camera timing (when no webcam is connected), misc camera accuracy improvements, use GB_random instead of rand for noise_seed 2022-07-22 20:15:00 -07:00
Lior Halphon f5f79f88ab Insert the pixel at the correct position 2022-07-23 01:52:33 +03:00
Lior Halphon f75f170448 Proper fix for WX=0 in the window pixel insertion glitch 2022-07-22 19:51:38 +03:00
Lior Halphon 029b7492b6 Fix WX=0 regression 2022-07-22 19:51:20 +03:00
Lior Halphon 537d0e1b25 Fix for WX=1-6 2022-07-22 18:55:48 +03:00
Lior Halphon ee407f07f3 Better describe softbreak 2022-07-22 13:51:56 +03:00
Lior Halphon 1fedb81ab7 Emulate window pixel insertion glitch, fixes Star Trek - 25th Anniversary, closes #278 2022-07-22 00:27:21 +03:00
Lior Halphon 3a86b868fe Add the same feature to Cocoa. Closes #474 2022-07-21 21:27:10 +03:00
Lior Halphon 349114097b Add joypad hotkeys to SDL 2022-07-19 23:55:34 +03:00
Lior Halphon 08549c1395 Typo 2022-07-19 02:19:31 +03:00
Lior Halphon 541dbc5db3 One last try 2022-07-19 01:52:38 +03:00
Maximilian Mader de10338962
Change `_audio_get_queue_length()` accoring to a856566b
This also reduces the internal audio buffer size down to 5 ms,
similar to the SDL backend at 96 kHz.
2022-07-18 22:24:00 +02:00
Lior Halphon 110deee6f8 Oops 2022-07-18 23:22:23 +03:00
Maximilian Mader 43210876be
Use `pkg-config` to check if OpenAL is available
If `pkg-config` is available, the OpenAL driver will be compiled
unless OpenAL dev headers cannot be found or `ENABLE_OPENAL=0` is set.

If `pkg-config` is unavailable `ENABLE_OPENAL=1` can be set to force
the use of OpenAL. In this case users must make sure that they have
OpenAL dev headers installed to compile successfully.
2022-07-18 22:16:34 +02:00
Maximilian Mader 8760cc5517
Mark `check_al_error()` as `static` 2022-07-18 22:16:34 +02:00
Maximilian Mader 91a2b459f9
Initialize the SDL audio system in the driver 2022-07-18 22:16:32 +02:00
Maximilian Mader d48037beec
Remove `__FILE__` usage in the OpenAL driver 2022-07-18 22:15:35 +02:00
Maximilian Mader 8fa02e0ea2
Make sure that audio resumes playing after clearing the queue 2022-07-18 22:15:35 +02:00
Maximilian Mader 7a24073f6d
Make sure that `AL_BUFFERS_PROCESSED` returns a valid value in `_audio_deinit()` 2022-07-18 22:15:35 +02:00
Maximilian Mader 64db300f24
Add an optional OpenAL audio driver for the SDL frontend
To compile the OpenAL driver specify `ENABLE_OPENAL=1` when
invoking `make`.
2022-07-18 22:15:35 +02:00
Lior Halphon 09cbf6a13f Fix GCC C++ warning? #464 2022-07-18 22:19:10 +03:00
Lior Halphon a856566b54 Fixed GB_audio_get_queue_length to actually be the length rather than size, fixed XAudio2.7 audio overflow crash, changed the maximum lag limit to 1/8s rather than 1/4s. Closes #473 2022-07-18 21:56:47 +03:00
Lior Halphon d31f34cab4 Allow the user-configured keys to be used in the SDL menu 2022-07-17 20:30:09 +03:00
Lior Halphon 96b5306ff3 Make the scrollbar draggable in SDL 2022-07-17 19:57:29 +03:00
Lior Halphon cbf1a5481f Allow the SDL port to use custom palettes imported from Cocoa 2022-07-17 15:48:41 +03:00
Lior Halphon 9a966a5581 SDL GUI follows the DMG palette 2022-07-17 01:19:43 +03:00
Lior Halphon 500e767247 And the same feature in Cocoa as well. Closes #472 2022-07-16 18:54:16 +03:00
Lior Halphon f9401300b5 SDL – Add setting to allow background joypad control 2022-07-16 18:23:08 +03:00
Lior Halphon 56deb4b92e Update version to 0.15.1 2022-07-08 20:10:11 +03:00
Lior Halphon eceb2e4830 Fix SDL/tester release builds on ARM64 Macs, strip and codesign Quick Look 2022-07-08 20:08:28 +03:00
Lior Halphon 0dbfaef4cf Query the system sample rate on Windows and use it, rather than hardcode 96KHz 2022-07-08 19:51:10 +03:00
Lior Halphon 88f5b22bf6 Allow setting a non-default audio driver, fixes #466 2022-07-08 17:51:42 +03:00
Lior Halphon d9b8e829a5 Fix crash on Windows 8.x 2022-07-08 14:17:28 +03:00
Lior Halphon 856a2b0ebe Makefile fixes, explicitly codesign the app bundle for releases 2022-07-04 00:13:05 +03:00
Lior Halphon 004c20d8e2 Handle GateKeeper and write permissions in the auto updater 2022-07-03 22:23:35 +03:00
Lior Halphon 3c4bfd2a1b Update version to 0.15 2022-07-02 22:41:17 +03:00
Lior Halphon faccdd3e9b Correct the Windows audio dialog rate, add a default file name 2022-07-02 22:41:07 +03:00
Lior Halphon e466c3c5b1 Ehh oops 2022-07-02 22:40:37 +03:00
Lior Halphon 7071032288 Improved MMM01 emulation, fixes #447 2022-07-02 21:03:26 +03:00
Lior Halphon 887a8104f5 Refresh icon if launched via a software update 2022-07-02 21:00:40 +03:00
Lior Halphon a773297b3a Add CGB revision selection to the SDL frontend 2022-07-02 18:11:55 +03:00
Lior Halphon 63a858d767 Fix GBS player's appearance on Big Sur and newer 2022-07-01 22:46:03 +03:00
Lior Halphon 1065a40d8f Add rX as symbol aliases to IO_X 2022-07-01 17:40:47 +03:00
Lior Halphon f2429e1c25 Fix IB oopsies 2022-07-01 16:24:54 +03:00