Commit Graph

  • f066bbe98a x11: Don't include system headers twice. Ryan C. Gordon 2023-08-25 19:41:18 -04:00
  • f032e8c191 updated dynapi after SDL_GDKGetDefaultUser addition Ozkan Sezer 2023-08-25 19:03:40 +03:00
  • d86d02bbbf updated dynapi after SDL_GDKGetDefaultUser addition Ozkan Sezer 2023-08-25 19:03:32 +03:00
  • 4355f9cec5 Fixed warning C4389: '!=': signed/unsigned mismatch Sam Lantinga 2023-08-25 08:49:49 -07:00
  • 5755de07a6 Fixed build warnings Sam Lantinga 2023-08-25 08:45:33 -07:00
  • 0f80d47bbd Fixed thread-safety warning Sam Lantinga 2023-08-25 08:21:54 -07:00
  • ee806597b9 Removed SDL_vulkan_internal.h from SDL_sysvideo.h Sam Lantinga 2023-08-25 08:18:29 -07:00
  • 34860b932b Fixed testautomation --filter pixels_allocFreeFormat Sam Lantinga 2023-08-25 08:06:08 -07:00
  • 6f8a6a31ca gdk: GetBasePath should be a UTF8 version of Win32 GetBasePath Ethan Lee 2023-08-25 10:47:10 -04:00
  • e30e5c77e6 Sync SDL3 wiki -> header SDL Wiki Bot 2023-08-25 14:42:25 +00:00
  • 24fcb61470 – gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation Ethan Lee 2023-08-14 13:32:02 -04:00
  • c0cd8c8142 gdk: Add SDL_GDKGetDefaultUser, SDL_GetPrefPath implementation Ethan Lee 2023-08-25 10:39:39 -04:00
  • 106abce69f Refactored GetAudioStreamDataInternal buffer handling The final conversion step should now always go straight into the output buffer. Brick 2023-08-25 12:28:21 +01:00
  • e44f54ec54 Avoid using hex-floats Brick 2023-08-24 19:49:25 +01:00
  • 5b696996cd Added ResampleFrame_SSE Brick 2023-08-24 19:00:17 +01:00
  • 958b3cfaea Tweaked and enabled audio_convertAudio test Brick 2023-08-24 18:55:40 +01:00
  • 7dbb9b65b1 audio_convertAccuracy: Shuffle the data in case of a bad SIMD implementation Brick 2023-08-24 18:55:07 +01:00
  • f6a4080ff5 audio_resampleLoss: Add support for multiple channels Brick 2023-08-24 10:47:37 +01:00
  • 4f894e748e audio_resampleLoss: SDL_GetAudioStreamData now returns the correct length Brick 2023-08-24 10:44:13 +01:00
  • ab83f75bb9 Make sure GetAudioStreamDataInternal is called with a valid length Brick 2023-08-24 10:37:15 +01:00
  • 6a73f74b6b Rebuild full ResamplerFilter (left wing + right wing) at runtime Brick 2023-08-24 00:18:52 +01:00
  • 0c15ce0060 Add a missing int cast Brick 2023-08-23 19:32:53 +01:00
  • b74ee86b1d Optimized ResampleAudio, with special cases for 1 and 2 channels This would also benefit from some SIMD, since it's just a bunch of multiply-adds Brick 2023-08-23 18:31:15 +01:00
  • fba6e1e3d3 Removed ResamplerFilterDifference It takes 1 extra multiply to calculate the correct interpolation, but I think the improvement in cache locality (and binary size) outweighs that. Brick 2023-08-23 19:09:03 +01:00
  • 9f7a22fa45 Removed 64-bit handling from AudioConvertByteswap Brick 2023-08-23 16:02:16 +01:00
  • 1f5327a9fb Removed future_buffer, left_padding, and right_padding from SDL_AudioStream Brick 2023-08-23 16:01:53 +01:00
  • 71ad52d6db Lowered SDL_GetAudioStreamData to 32 KB No particular reason for this number, but 1 MB was a bit silly Brick 2023-08-23 15:22:01 +01:00
  • 874f6feab4 Fixed the report format for the Razer Wolverine V2 Pro Sam Lantinga 2023-08-24 11:37:50 -07:00
  • 6ff48dddcb Fixed the report format for the Razer Wolverine V2 Pro Sam Lantinga 2023-08-24 11:37:50 -07:00
  • 69aec8c915 Fixed the report format for the Razer Wolverine V2 Pro Sam Lantinga 2023-08-24 11:37:50 -07:00
  • 1df4dce78f Accept key events from any source Sam Lantinga 2023-08-24 10:09:02 -07:00
  • 862a654b70 Accept key events from any source Sam Lantinga 2023-08-24 10:09:02 -07:00
  • 7c2669c9d9 Accept key events from any source Sam Lantinga 2023-08-24 10:09:02 -07:00
  • cc58a09c09 Updated to Android minSdkVersion 19 and targetSdkVersion 34 Sam Lantinga 2023-08-24 08:23:06 -07:00
  • 8e27a69370 Updated to Android minSdkVersion 19 and targetSdkVersion 34 Sam Lantinga 2023-08-24 08:23:06 -07:00
  • 1e9d314482 Updated to Android minSdkVersion 19 and targetSdkVersion 34 Sam Lantinga 2023-08-24 08:23:06 -07:00
  • 8924d0d927 Added missing function prototype for SDL_WriteS64BE() Sam Lantinga 2023-08-23 21:19:04 -07:00
  • 845f3c7450 Fixed mismatch between stdlib calloc() and SDL free() Sam Lantinga 2023-08-23 14:48:44 -07:00
  • 9237f8edc1 video: Fixed small memory leak when disconnecting a display. Ryan C. Gordon 2023-08-18 11:46:19 -04:00
  • 1f4e86d61c video: Minor cleanup in SDL_VideoQuit. Ryan C. Gordon 2023-08-18 11:43:59 -04:00
  • 04ff593bf5 emscriptenaudio: Fire the capture silence_callback at an interval. Ryan C. Gordon 2023-08-23 16:12:30 -04:00
  • ddbbef88e3 emscriptenaudio: Don't bother undefining things about to be unreachable. Ryan C. Gordon 2023-08-23 16:11:08 -04:00
  • ae7f54f514 emscriptenaudio: Deal with blocked audio devices better. Ryan C. Gordon 2023-08-23 14:27:10 -04:00
  • 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