Commit Graph

  • bb1fe302cf wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's Anonymous Maarten 2023-08-30 19:28:11 +02:00
  • da5d93d3da wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's Anonymous Maarten 2023-08-30 19:28:11 +02:00
  • f002f7d12e ci: build emscripten with Debug buid type Anonymous Maarten 2023-08-29 23:18:37 +02:00
  • 3699b12ed0 audio: Fixed some "is_*" variables to be cleaner and/or more specific. Ryan C. Gordon 2023-08-29 10:46:14 -04:00
  • 2471d8cc2a audio: Fixed logic error in SDL_OpenAudioDeviceStream. Ryan C. Gordon 2023-08-27 19:30:31 -04:00
  • 1b03a2430a testsurround: fix order of arguments of callback Anonymous Maarten 2023-08-28 00:12:59 +02:00
  • 82db2b58f9 Renamed audio stream callback and moved the userdata parameter first Sam Lantinga 2023-08-27 14:43:21 -07:00
  • 5bdad5210f Sync SDL3 wiki -> header SDL Wiki Bot 2023-08-27 20:55:12 +00:00
  • 58c859f64d audio: Rename SDL_GetAudioStreamBinding to SDL_GetAudioStreamDevice. Ryan C. Gordon 2023-08-27 16:34:26 -04:00
  • efd2023a72 audio: Fixed documentation. Ryan C. Gordon 2023-08-27 16:24:38 -04:00
  • 1e775e0eef audio: Replace SDL_CreateAndBindAudioStream with SDL_OpenAudioDeviceStream. Ryan C. Gordon 2023-08-27 13:32:33 -04:00
  • bd088c2f99 Revert "Clarify whether an audio function expects a physical or logical device ID" Sam Lantinga 2023-08-27 13:42:20 -07:00
  • 82e481b520 Added --randmem test parameter Brick 2023-08-27 20:05:43 +01:00
  • ea68bb8027 Add some additional checks to audio_convertAudio Brick 2023-08-27 14:21:10 +01:00
  • f8286df167 Fixed ResampleFrame_SSE doing unnecessary work Brick 2023-08-27 14:16:36 +01:00
  • b1d63be538 Fixed audio_resampleLoss test Brick 2023-08-26 23:41:47 +01:00
  • c191d6c306 Better Win32 transparent window support Sam Huang 2023-08-27 12:56:44 -07:00
  • 923d612ca1 hidapi: sync macOS code with mainstream. Ozkan Sezer 2023-08-27 22:33:32 +03:00
  • 363f4fa9c1 avoid type redefinition errors after commit ee806597b9. Ozkan Sezer 2023-08-27 22:22:10 +03:00
  • 615824a806 Updated documentation now that SDL_GetAudioDevices() has been split into separate functions for output and capture devices Sam Lantinga 2023-08-26 17:30:57 -07:00
  • 506a133d84 Clarify whether an audio function expects a physical or logical device ID Sam Lantinga 2023-08-26 17:03:01 -07:00
  • 3b1d1e4e31 hidapi: sync the hidraw changes with mainstream Ozkan Sezer 2023-08-26 11:40:32 +03:00
  • f617918e0a cmake: check linkage to libusb too, instead of libusb.h presence only. Ozkan Sezer 2023-08-26 15:55:50 +03:00
  • 041dbd6b5f Fixed GetResamplerAvailableOutputFrames Non-euclidean division is a pain Brick 2023-08-26 10:00:58 +01:00
  • b49d0a607e x11: Avoid including full Vulkan headers. Ryan C. Gordon 2023-08-25 19:45:45 -04:00
  • 4d2f9f3a32 yuv_rgb: Comment out unused code. Ryan C. Gordon 2023-08-25 19:42:46 -04:00
  • 3c3486e2ac wayland: Don't include full Vulkan headers when not necessary. Ryan C. Gordon 2023-08-25 19:42:08 -04:00
  • 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