Commit Graph

  • a315c1a1e2 audio: Fix static analysis concerns about a dead assignment. Ryan C. Gordon 2017-01-24 10:09:29 -05:00
  • 0a8fc77425 Added a note about aligning SDL_AudioCVT data. Ryan C. Gordon 2017-01-24 00:55:41 -05:00
  • 4d4583b945 audio: Make sure SDL_AudioStream's work buffer is 16-byte aligned, for SIMD. Ryan C. Gordon 2017-01-24 00:51:33 -05:00
  • c46ce3d40c audio: Streams now resample in-place. Removed second allocated buffer. Ryan C. Gordon 2017-01-24 00:17:40 -05:00
  • 04d83dd25d audio: allow stereo Sint16 resampling fast path in SDL_AudioStream. Ryan C. Gordon 2017-01-24 00:08:24 -05:00
  • 8229b1e63b audio: Fixed off-by-one error in upsampling. Ryan C. Gordon 2017-01-24 00:03:36 -05:00
  • 99118f5b74 audio: Resampler now special-cases stereo and mono processing. Ryan C. Gordon 2017-01-23 16:45:50 -05:00
  • c8f77a1877 audio: Fixed incorrect pointer in SDL_ResampleCVT_si16_c2(). Ryan C. Gordon 2017-01-23 16:42:47 -05:00
  • e94d4e6d64 audio: Fixed copy/paste bug in float32->sint16/SSE2 scalar leftover code. Ryan C. Gordon 2017-01-23 12:14:28 -05:00
  • b6cb80a301 audio: Fix same bug as last commit, but for _mm_bslli_si128 vs _mm_slli_si128. Ryan C. Gordon 2017-01-23 12:06:10 -05:00
  • b4cf89beae audio: use _mm_srli_si128 instead of _mm_bsrli_si128. Ryan C. Gordon 2017-01-23 12:02:02 -05:00
  • 3fc61a22e3 audio: Wired up new SSE code to build system. Ryan C. Gordon 2017-01-23 01:05:44 -05:00
  • a0afcd716e audio: Special case for resampling stereo AUDIO_S16SYS audio data. Ryan C. Gordon 2017-01-22 20:27:48 -05:00
  • 52448e5b7d audio: Make the simple resampler operate in-place. Ryan C. Gordon 2017-01-22 23:48:15 -05:00
  • 2f563d7f93 audio: Added SSE3 implementation of SDL_ConvertStereoToMono(). Ryan C. Gordon 2017-01-23 00:57:19 -05:00
  • 45b8749071 audio: don't cast to double in SDL_ConvertStereoToMono(). Ryan C. Gordon 2017-01-22 20:18:59 -05:00
  • 2eff2773e3 audio: removed conditional from simple resampler's inner loop. Ryan C. Gordon 2017-01-20 16:26:24 -05:00
  • e1087cd67e Haiku: Fixed memory leak if creating framebuffer failed. Philipp Wiesemann 2017-01-22 22:15:36 +01:00
  • 8e185ea2db WinRT: Fixed typo in README. Philipp Wiesemann 2017-01-22 22:15:24 +01:00
  • 8ff6299a1f Haiku: Removed unused variable. Philipp Wiesemann 2017-01-21 22:01:17 +01:00
  • c370750a65 Fixed compiler warning about returning a value in a void function. Philipp Wiesemann 2017-01-21 22:00:56 +01:00
  • 715bc7f1f1 Fixed copyright symbol in testgles2 program. Philipp Wiesemann 2017-01-21 22:00:40 +01:00
  • d1508cc1ad Fixed mapping the PG-9021 which, on Linux, emits a button partway through the trigger press along with axis motion all along the pull Sam Lantinga 2017-01-20 16:40:11 -08:00
  • 2e6f3f1808 Added support for the 8Bitdo Zero GamePad Sam Lantinga 2017-01-20 08:13:23 -08:00
  • 7ac28607b4 Fixed mingw64 32-bit build, which does have the correct structure definitions Sam Lantinga 2017-01-19 20:19:37 -08:00
  • 9ac97dd412 Removed unused variable Sam Lantinga 2017-01-18 12:19:57 -08:00
  • 9fa40e721d Fixed bug 3533 - Enumeration joystick devices omitted during directinput enumeration Sam Lantinga 2017-01-18 12:18:50 -08:00
  • c5fca62860 Fixed bug 3561 - Re-acquire device before playing effects if needed. Sam Lantinga 2017-01-18 11:58:16 -08:00
  • 83184dca24 Fixed building with mingw32 Sam Lantinga 2017-01-18 11:57:27 -08:00
  • c3f4dfdf93 audio: Several fixes to "simple" resampler (thanks, Vitaly!). Ryan C. Gordon 2017-01-18 02:11:56 -05:00
  • 73bdeb179a Use icon width * sizeof(Uint32) instead of icon pitch when copying to icon resource data Sam Lantinga 2017-01-17 21:18:31 -08:00
  • 033f17ff44 audio: Implemented SIMD support for audio data type converters. Ryan C. Gordon 2017-01-16 00:58:28 -05:00
  • 4080182bac audio: Some fixes to the audio data type converter code. Ryan C. Gordon 2017-01-15 05:01:59 -05:00
  • 35743474ce Fixed comments. Philipp Wiesemann 2017-01-14 21:36:06 +01:00
  • 74758a9d74 Fixed doxygen warning and linking of function names. Philipp Wiesemann 2017-01-14 21:35:49 +01:00
  • 35b0f86be6 Changed Bugzilla link in README.md to HTTPS like in BUGS.txt. Philipp Wiesemann 2017-01-14 21:35:18 +01:00
  • e5d8e161d0 Fixed warnings about missing initializers in testoverlay2 program. Philipp Wiesemann 2017-01-14 21:34:45 +01:00
  • 570688e552 Fixed comment Sam Lantinga 2017-01-13 11:37:12 -08:00
  • 83727f6cdb fixed SENSOR_LANDSCAPE and SENSOR_PORTRAIT mode false nativeResume bug dmuratshin 2017-01-12 10:58:35 -08:00
  • cc9b924c51 We don't actually build with the Xt library Sam Lantinga 2017-01-10 23:23:32 -08:00
  • 9fca03e6fd Fixed bugs 2570, 3145, improved OpenGL ES context support on Windows and X11 Sam Lantinga 2017-01-10 08:54:33 -08:00
  • 6fcde18035 Fixed bug 3552 - Building SDL in release mode fails under VS 2017 RC Sam Lantinga 2017-01-09 20:37:52 -08:00
  • 847a5cfd86 audio: Don't ever use libsamplerate in the SDL_AudioCVT codepath. Ryan C. Gordon 2017-01-09 16:31:57 -05:00
  • 01d4ee3876 testresample: write correct length to the .wav header. Ryan C. Gordon 2017-01-09 15:56:11 -05:00
  • 05be9212ad We only need the first few keymaps corresponding to the following constants: K_NORMTAB, K_SHIFTTAB, K_ALTTAB, K_ALTSHIFTTAB Sam Lantinga 2017-01-09 11:58:01 -08:00
  • 94b00d8b7e Fixed spacing Sam Lantinga 2017-01-09 11:30:29 -08:00
  • f7e2f9c098 Fixed bug 3100 - SetSwapInterval should now be enabled for ANGLE/EGL Sam Lantinga 2017-01-09 10:10:33 -08:00
  • f344385ceb audio: Replaced older resamplers in SDL_AudioCVT with the new ones. Ryan C. Gordon 2017-01-09 06:00:58 -05:00
  • d794fc120a audio: Patched to compile if linking directly to libsamplerate. Ryan C. Gordon 2017-01-09 05:59:30 -05:00
  • 78328cd67d Implemented full evdev keyboard text support This is based on the Linux kernel driver, and has fallback mapping tables in case we aren't connected to a virtual terminal. Sam Lantinga 2017-01-09 02:54:42 -08:00
  • c733b3c0a0 Fixed bug 3545 - SDL_EVDEV_do_text_input() may be too eager to find error cases Sam Lantinga 2017-01-08 20:03:18 -08:00
  • 164fc4a1a5 Removed console check, let the kernel decide whether muting is appropriate on this terminal. We don't fail the init if we can't mute the terminal (we might be running from ssh, or on a system without virtual terminals, etc.) Sam Lantinga 2017-01-08 19:04:38 -08:00
  • 233563d80c Check the return value of SDL_EVDEV_Init() Sam Lantinga 2017-01-08 18:32:20 -08:00
  • 67c4e17d5c audio: Improvements in channel conversion code. Ryan C. Gordon 2017-01-08 16:18:49 -05:00
  • fe889522e3 audio: Patched to compile with libsamplerate support (again). Ryan C. Gordon 2017-01-08 14:28:44 -05:00
  • e61edeaca4 audio: Patched to compile with libsamplerate support. Ryan C. Gordon 2017-01-08 14:23:15 -05:00
  • 85fdec59da audio: libsamplerate loading now happens once at init time. Ryan C. Gordon 2017-01-08 14:18:03 -05:00
  • 62849dceb1 Fixed coding style on a function signature. Ryan C. Gordon 2017-01-08 14:17:09 -05:00
  • a612eae69e README-linux: added notes about libsamplerate. Ryan C. Gordon 2017-01-08 14:16:19 -05:00
  • 06a7429702 Fixed attempting to dynamically load libsamplerate when shared object loading is disabled. Thanks to Ozkan Sezer for pointing this out Sam Lantinga 2017-01-08 10:52:02 -08:00
  • 030ce1fe57 Fixed bug 3304 - Android black screen on resume Sam Lantinga 2017-01-08 10:41:22 -08:00
  • 87ee83abcb SDL_evdev.c: fix building against old kernel headers (K_OFF may not be defined.) Sam Lantinga 2017-01-08 10:15:22 -08:00
  • bf17aaf493 Don't fail if we can't open the tty, this can be a legitimate use case. Sam Lantinga 2017-01-07 16:49:23 -08:00
  • 1a6d67b9f4 Added mappings for the 8Bitdo NES30 Pro and iBuffalo SNES Controller Also swapped the Wii U Pro controller button mappings to position instead of label, as emulators expect from XBox controllers. Sam Lantinga 2017-01-07 13:47:34 -08:00
  • b678227a81 Fixed a bunch of compiler warnings in the test code. Ryan C. Gordon 2017-01-07 22:24:45 -05:00
  • 9750a9a17b x11: make the X11 target work on macOS with Xquartz. Ryan C. Gordon 2017-01-07 19:55:29 -05:00
  • bda48fafc9 Replaced a few single-line "//" comments. Ryan C. Gordon 2017-01-07 17:09:14 -05:00
  • 4ce11f04d7 Really fixed blit issue for capehill Sam Lantinga 2017-01-07 16:51:48 -08:00
  • 09a8d2db85 Fixed bug 3469 - Keypresses leak to the console with 2.0.5 Sam Lantinga 2017-01-07 10:13:04 -08:00
  • 4d0e3910dc Added configure and cmake support for libsamplerate Sam Lantinga 2017-01-06 20:43:53 -08:00
  • 5691f0a47e audio: Don't call a NULL function pointer when clearing audio streams. Ryan C. Gordon 2017-01-06 21:23:51 -05:00
  • 451164092d Better fix for static analysis issue in SDL_DestroyRenderer(). Ryan C. Gordon 2017-01-06 21:17:33 -05:00
  • 2d868c2ed6 emscripten-buildbot.sh: let user override default SDKDIR. Ryan C. Gordon 2017-01-06 20:00:17 -05:00
  • 2590e16033 Added support for using libsamplerate to do audio resampling Sam Lantinga 2017-01-06 02:16:26 -08:00
  • 6ccc5dba96 Fixed confusion between Ryan's new audio stream and the audio buffer we were calling stream in the callback Sam Lantinga 2017-01-06 00:47:42 -08:00
  • 4c38503101 Just roll back the entire portion of the commit from b6ec7005ca15 which caused bug 3544 until we figure out what the right static analysis fix is. Sam Lantinga 2017-01-06 00:40:22 -08:00
  • 00ec10cdfd audio: Add an assert to make sure non-streaming audio uses good buffer sizes. Ryan C. Gordon 2017-01-06 03:38:14 -05:00
  • 6bf502c625 Fixed bug 3544 - Memory freeing bug in SDL_DestroyRenderer/SDL_DestroyTexture Sam Lantinga 2017-01-06 00:32:06 -08:00
  • 4777c6045c haiku: Patched to compile. Ryan C. Gordon 2017-01-06 03:15:27 -05:00
  • e8817d2de0 Don't do any audio conversion if none is necessary Sam Lantinga 2017-01-05 23:53:46 -08:00
  • a5fe411e09 Fixed bug 3546 - SDL_EVDEV_is_console() uses type of wrong size when calling ioctl Sam Lantinga 2017-01-05 23:26:13 -08:00
  • 46cb198f18 audio: rename fake_stream to work_buffer. Ryan C. Gordon 2017-01-06 01:07:34 -05:00
  • 01ef898525 audio: Fixed SDL_AudioStreamGet() function parameters. Ryan C. Gordon 2017-01-06 01:02:58 -05:00
  • 6ad693799a naclaudio: Untested attempt to migrate to SDL_AudioStream. Ryan C. Gordon 2017-01-06 00:56:29 -05:00
  • 8b97edfd35 haikuaudio: Untested attempt to get this working with SDL_AudioStream. Ryan C. Gordon 2017-01-06 00:50:01 -05:00
  • d559e45eba emscriptenaudio: don't get stuck in infinite loop if SDL_AudioStreamPut fails. Ryan C. Gordon 2017-01-06 00:49:35 -05:00
  • f36aa7ccc0 emscriptenaudio: Reworked to use SDL_AudioStream. Ryan C. Gordon 2017-01-05 21:31:02 -05:00
  • 81f7ac425c Fixed a few compiler warnings. Ryan C. Gordon 2017-01-05 20:11:19 -05:00
  • 9002a16f88 Patched to compile on some compilers. Ryan C. Gordon 2017-01-05 19:45:57 -05:00
  • 8ffb5f4ace audio: Added SDL_AudioStream. Non-power-of-two resampling now works! Ryan C. Gordon 2017-01-05 19:29:38 -05:00
  • 7ef486f9c8 audio: More effort to improve and simplify audio resamplers. Ryan C. Gordon 2017-01-05 19:12:20 -05:00
  • 839e13056d diskaudio: Use SDL_Log, not fprintf. Ryan C. Gordon 2017-01-05 19:30:45 -05:00
  • 76a2d66c03 Fixed signedness issue when blitting on a big endian platform, as reported by capehill For example, if sR is 0 and dR is 255, we will get -255*sA casted to an unsigned value. Basically results are quite large numbers instead of the expected 0-255 range. Sam Lantinga 2017-01-05 08:16:39 -08:00
  • 8aadb53049 Fixed build warning on Haiku Sam Lantinga 2017-01-05 02:53:29 -08:00
  • 1e81ac1559 Added SDL_JoystickGetAxisInitialState() to get a joystick axis' initial value. This is useful for controller mapping programs to determine an axis' zero state Sam Lantinga 2017-01-04 10:28:07 -08:00
  • 999abbda52 Assume D-pad or thumbstick style axes are centered at 0 Sam Lantinga 2017-01-04 07:06:48 -08:00
  • b5558339f4 Added mappings for several GameCube and SNES controllers Sam Lantinga 2017-01-04 06:21:17 -08:00
  • 7eb2170c58 Added the NEXT SNES Controller to the list of zero-centered joysticks Sam Lantinga 2017-01-04 06:19:56 -08:00
  • 0e28ded311 Increased joystick jitter tolerance for PS3 controllers Sam Lantinga 2017-01-04 05:56:47 -08:00
  • c35b0eefbe Some controllers have trouble getting out to 20000 Sam Lantinga 2017-01-04 05:09:02 -08:00