Commit Graph

  • fb79211732 emscriptenaudio: Fire the capture silence_callback at an interval. Ryan C. Gordon 2023-08-23 16:12:30 -04:00
  • 5191b20541 emscriptenaudio: Don't bother undefining things about to be unreachable. Ryan C. Gordon 2023-08-23 16:11:08 -04:00
  • fd75a4ca05 emscriptenaudio: Deal with blocked audio devices better. Ryan C. Gordon 2023-08-23 14:27:10 -04:00
  • 981b8a337a emscriptenaudio: Remove unnecessary functions. Ryan C. Gordon 2023-08-23 11:12:18 -04:00
  • c7588e4261 Transparent window for Win32 + OpenGL (#8143) Sam Huang 2023-08-23 07:42:59 -07:00
  • f9581178de cmake: fixed a typo. Ryan C. Gordon 2023-08-22 10:51:41 -04:00
  • e6c878824c Fixed ResampleAudio interpolation factor calculation Brick 2023-08-22 11:26:39 +01:00
  • 4983638630 Misc audio tweaks/cleanup Brick 2023-08-21 20:45:52 +01:00
  • 72d9d53def Invert the inner ResampleAudio loops to avoid doing unnecessary work Brick 2023-08-21 13:23:38 +01:00
  • 88123a5109 The history buffer should always have the maximum possible padding frames Brick 2023-08-21 10:14:59 +01:00
  • 96e47f1657 Clamp results of GetResampler(AvailableOutput|NeededInput)Frames Brick 2023-08-20 23:03:32 +01:00
  • d2b9c8b80d Fixed maths in testaudiostreamdynamicresample (and just show the actual scale) Brick 2023-08-20 22:50:41 +01:00
  • 14e38b17d6 Removed assertions from inner ResampleAudio loop Brick 2023-08-20 20:43:31 +01:00
  • 9d413dfdc2 The history buffer doesn't need to be so large Brick 2023-08-20 19:56:15 +01:00
  • 2788e848f8 Allow resampling less than 1 frame of input Brick 2023-08-20 19:50:54 +01:00
  • 383084e0ad Pre-calculate resampling rate, and use it instead of .freq in most places Brick 2023-08-20 19:12:04 +01:00
  • 40a6a445ce Update resample_offset inside ResampleAudio Brick 2023-08-20 16:15:03 +01:00
  • 47fea7f06b Used fixed-point arithmetic in ResampleAudio Brick 2023-08-20 16:08:19 +01:00
  • 7bb4e806ea Clear resample_offset in SDL_ClearAudioStream, not SetAudioStreamFormat Not entirely sure if ClearAudioStream is the right place, but SetAudioStreamFormat was the wrong place Brick 2023-08-20 12:17:46 +01:00
  • b9541b9eab Improved ResampleAudio * filterindex2 was off-by-one * Generate ResamplerFilter using doubles * Transpose ResamplerFilter to improve access patterns Brick 2023-08-19 20:12:40 +01:00
  • cdaa19869d Track offset within the current sample when resampling Brick 2023-08-19 15:55:23 +01:00
  • d60ebb06d1 mouse: Ensure that the dummy default cursor is removed from the cursor list Frank Praznik 2023-08-16 13:46:14 -04:00
  • e58c2731fe mouse: Free the default cursor when destroyed Frank Praznik 2023-08-16 12:32:58 -04:00
  • 789ce17e11 audio: Don't resample in chunks for now. Ryan C. Gordon 2023-08-16 10:26:08 -04:00
  • cbab33482a audio: Don't call SDL_AudioStream callbacks for empty data sets. Ryan C. Gordon 2023-08-14 18:16:58 -04:00
  • 3e1ae0c867 Clearified the libusb whitelist default logic Sam Lantinga 2023-08-14 12:19:37 -07:00
  • f4520821ef Removed some unnecessary integer casts Brick 2023-08-14 17:28:44 +01:00
  • 0989b7e86d Avoid using designated initializers Brick 2023-08-14 17:12:42 +01:00
  • c6c1e673c0 Optimized SDL_Convert_*_to_*_Scalar Brick 2023-08-13 14:36:48 +01:00
  • f97b920b31 Optimized SDL_Convert_*_to_*_SSE2 Some of the SDL_Convert_F32_to_*_SSE2 do not explicitly clamp the input, but instead rely on saturating casts. Inputs very far outside the valid [-1.0, 1.0] range may produce an incorrect result, but I believe that is an acceptable trade-off. Brick 2023-08-12 18:53:41 +01:00
  • 300d1ec3ed Added audio_convertAccuracy test Brick 2023-08-12 18:41:15 +01:00
  • 32cecc2eac Fixed assertion in audio_convertAudio Brick 2023-08-12 18:40:56 +01:00
  • 33f11e21ee Removed assertions in AudioConvert(To|From)Float Brick 2023-08-12 18:40:10 +01:00
  • c2f388fd88 cmake: add SDL_HIDAPI_LIBUSB_SHARED option + test on ci Anonymous Maarten 2023-08-14 15:48:14 +02:00
  • 371cc2d173 wayland: Remove unnecessary flag and state settings Frank Praznik 2023-08-14 12:49:13 -04:00
  • fe85e6e754 cocoa: Send a maximized event instead of restored if a deminiaturized window is zoomed Frank Praznik 2023-08-14 11:00:40 -04:00
  • ddddcb78cb cocoa: Use the close method to hide a miniaturized window Frank Praznik 2023-08-12 10:38:33 -04:00
  • be8c42cfd7 Clarify that a window being 'hidden' means that it is unmapped/ordered out Frank Praznik 2023-08-10 13:22:29 -04:00
  • a44338cbc1 Fix typo in SDL_audiocvt.c Ikko Eltociear Ashimine 2023-08-15 00:58:06 +09:00
  • f464eb2c54 SDL_hidapi.c: change 'use_libusb_whitelist_default' into a macro. Ozkan Sezer 2023-08-14 17:01:24 +03:00
  • 6607a3cfac Disable cache in python http server Anonymous Maarten 2023-08-14 03:50:03 +02:00
  • 181d5d285a hidapi: Enable libusb support by default. Ethan Lee 2023-08-09 13:55:36 -04:00
  • f0f15e365d hidapi: Use a whitelist for libusb when other backends are available Ethan Lee 2023-08-09 13:52:14 -04:00
  • c3f7a7dc46 Convert audio using SDL_AUDIO_F32SYS format instead of SDL_AUDIO_F32 capehill 2023-08-13 20:27:12 +03:00
  • ae72cd57b5 Quiet spurious warning Sam Lantinga 2023-08-13 13:53:13 -07:00
  • 0b9d8e679a Quiet spurious warning Sam Lantinga 2023-08-13 13:53:13 -07:00
  • 796713b9d5 xxd.py: always write \n line endings Vlad-Stefan Harbuz 2023-08-13 19:54:08 +01:00
  • 8f858d7908 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. David CARLIER 2023-08-13 13:54:07 +01:00
  • 4a0f56b679 SDL_TriggerBreakppoint for riscv arch (both 32/64) version. David CARLIER 2023-08-13 13:54:07 +01:00
  • 723bcd0a8b SDL_TriggerBreakppoint for riscv arch (both 32/64) version. David CARLIER 2023-08-13 13:54:07 +01:00
  • ec0042081e Add .gitattributes file Anonymous Maarten 2023-08-10 17:42:36 +02:00
  • a5d9db0cd0 cmake: build tests for UWP Anonymous Maarten 2023-04-19 16:28:39 +02:00
  • b7889a7389 winrt: use windowsio in non-libc mode Anonymous Maarten 2023-08-10 17:37:13 +02:00
  • ea8757a748 Make testaudiostreamdynamicresample compatible with emscripten Anonymous Maarten 2023-08-09 18:56:06 +02:00
  • 1a7a74fb2e cmake: build emscripten tests as html page Anonymous Maarten 2023-06-03 15:22:39 +02:00
  • 64d570f027 Add minimal http server for emscripten test apps Anonymous Maarten 2023-08-09 19:05:56 +02:00
  • 8e898c4a21 SDL_test does not parse --samples argument Anonymous Maarten 2023-08-09 19:06:37 +02:00
  • 91cd5478be audio: Fix resampler overflowing input buffer. Ryan C. Gordon 2023-08-12 00:52:11 -04:00
  • f290c85b22 testaudiocapture: Make sure we convert captured audio to output format. Ryan C. Gordon 2023-08-11 16:52:23 -04:00
  • b75c751dfc rwlock: Make generic implmentations work on single-threaded platforms. Ryan C. Gordon 2023-08-11 15:02:52 -04:00
  • 80850af7ce The controller update complete events are no longer disabled by default Sam Lantinga 2023-08-10 17:45:00 -07:00
  • 3f486224a9 Fixed refresh rate calculation for KMSDRM Sam Lantinga 2023-08-10 15:39:38 -07:00
  • 5bfdb6e02f Fix overflow when doing SDL_sscanf("%hd", ...) Anonymous Maarten 2023-08-10 23:43:58 +02:00
  • 10135b2d7b Fix overflow when doing SDL_sscanf("%hd", ...) Anonymous Maarten 2023-08-10 23:43:58 +02:00
  • 342ec51131 Fix overflow when doing SDL_sscanf("%hd", ...) Anonymous Maarten 2023-08-10 23:43:58 +02:00
  • 9129e1d557 Fixed crash when setting the default cursor twice Sam Lantinga 2023-08-10 12:13:40 -07:00
  • 8e99a4f4f5 Undo variable rename Sam Lantinga 2023-08-10 11:45:20 -07:00
  • be67f0de10 Fixed crashes related to the default cursor on WinRT and KMSDRM Sam Lantinga 2023-08-10 11:40:36 -07:00
  • 739d3ec189 Fix out of bound read of 'has_hat' array Mathieu Eyraud 2023-08-10 15:05:29 +02:00
  • f348370e1b Fix out of bound read of 'has_hat' array Mathieu Eyraud 2023-08-10 15:05:29 +02:00
  • 951657c99b Fixed crash when running with the dummy video driver Sam Lantinga 2023-07-25 12:08:21 -07:00
  • 7df721d4e9 Allow running tests with the dummy video driver Sam Lantinga 2023-07-25 12:07:45 -07:00
  • 94b3f78c44 Fix out of bound read of 'has_hat' array Mathieu Eyraud 2023-08-10 15:05:29 +02:00
  • 94f48f19b0 Use more specific build destinations when creating an xcframework Sam Lantinga 2023-08-10 01:52:10 -07:00
  • dabd45997e Back out change supporting multiple names for binding elements Sam Lantinga 2023-08-09 11:25:37 -07:00
  • efe15588d5 Relabel back paddles as left or right Simon McVittie 2023-08-09 18:09:42 +01:00
  • be884f0c95 ci: disable visionos.yml by renaming the file Anonymous Maarten 2023-08-09 19:17:20 +02:00
  • ac094d00f5 ci: add workflow_dispatch event to visionos workflow Anonymous Maarten 2023-08-09 16:12:29 +02:00
  • 9be9e2292b build: Consistently use pathlib APIs in cmake/xxd.py Simon McVittie 2023-08-09 14:38:59 +01:00
  • a9f6950657 Fixed deadlock shutting down Android sensors Sam Lantinga 2023-08-08 23:01:55 -07:00
  • d9f09e77f2 Actually make the sensors magical! Sam Lantinga 2023-08-08 22:34:24 -07:00
  • 690eae7d22 Implement visionOS support Ravbug 2023-07-23 23:11:09 -07:00
  • e385d6da0a Fixed build warning Sam Lantinga 2023-08-08 22:20:49 -07:00
  • 6b93e788fa Improved sensor thread-safety Sam Lantinga 2023-08-08 22:08:40 -07:00
  • 4ee0e5a984 Fixed thread-safety warnings Sam Lantinga 2023-08-08 22:03:52 -07:00
  • 12deed91f8 Added information on how to enable thread-safety analysis Sam Lantinga 2023-08-08 22:03:06 -07:00
  • 5735d2b03b coreaudio: Fixed assertion when device fails/quits mid-iteration. Ryan C. Gordon 2023-08-08 23:56:17 -04:00
  • 1022fd6e04 testaudio: the test framework opens an audio device at startup; close it. Ryan C. Gordon 2023-08-08 21:41:37 -04:00
  • 0714da37a4 audio: Fix audio stream callback calculations when future buffer has space. Ryan C. Gordon 2023-08-08 21:40:23 -04:00
  • 917e036f6f MSVC has __declspec(deprecated) Anonymous Maarten 2023-08-07 21:26:38 +02:00
  • 0465224616 Sync -Wsign-compare warning fix from sdl2-compat Anonymous Maarten 2023-08-09 01:30:56 +02:00
  • 9d6b028e01 tests: build tests with fast math disabled Anonymous Maarten 2023-08-07 22:39:47 +02:00
  • fcae9cd210 cmake: build with -Wdocumentation Anonymous Maarten 2023-08-07 19:00:38 +02:00
  • e5f3b22d63 cmake: update cmake_minimum_required to avoid deprecated warning Anonymous Maarten 2023-08-07 19:03:18 +02:00
  • 64f17314a2 MSVC has __declspec(deprecated) Anonymous Maarten 2023-08-07 21:26:38 +02:00
  • 279ff8909f Changed example code to avoid potential divide by zero Sam Lantinga 2023-08-08 16:52:09 -07:00
  • 8a1afc9b10 Fixed Android not sending controller event timestamps Sam Lantinga 2023-08-08 09:46:57 -07:00
  • 463c456b98 Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE Sam Lantinga 2023-08-08 09:40:30 -07:00
  • 55cf1abaa6 test: Don't flag testsurround as suitable for non-interactive use Simon McVittie 2023-08-08 16:06:41 +01:00
  • 1d8806b0fc Fixed testautomation --filter pixels_allocFreePalette Sam Lantinga 2023-08-07 22:18:35 -07:00