Commit Graph

9446 Commits

Author SHA1 Message Date
Sam Lantinga
71dad8a81e Added an audio recording test program 2017-03-15 11:39:54 -07:00
Sam Lantinga
4dddeae7c5 Compile fix for android.
"ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]"

Moving some variable declarations to the top of Android_SetScreenResolution()
2017-03-14 07:22:08 -07:00
Sam Lantinga
52b52e86e7 ALSA driver improvements:
* alsa hotplug thread is low priority
* give a chance for other threads to catch up when audio playback is not progressing
* use nonblocking for alsa audio capture
  There is a bug with SDL hanging when an audio capture USB device is removed, because poll never returns
2017-03-14 07:20:14 -07:00
Sam Lantinga
5def53e935 differentiate between capture / playback audio thread names 2017-03-14 07:16:56 -07:00
Sam Lantinga
e147ccd615 Added an API to get the joystick instance ID before opening the device: SDL_JoystickGetDeviceInstanceID() 2017-03-09 16:09:16 -08:00
Sam Lantinga
abd8f65ba3 Fixed tabs to spaces 2017-03-09 15:12:19 -08:00
Sam Lantinga
5aa5988090 Added support to loopwave for hotplugging audio devices 2017-03-09 14:50:23 -08:00
Sam Lantinga
fd16cf4a66 Fixed compile error with gcc -std=c99 2017-03-06 21:25:06 -08:00
Philipp Wiesemann
3f675a01a7 Fixed warning about implicit conversion in controllermap program. 2017-03-04 23:05:47 +01:00
Philipp Wiesemann
54307c406b Mir: Fixed crash if creating default cursor failed.
Found by Cppcheck.
2017-03-04 23:05:32 +01:00
Philipp Wiesemann
343c84b28b Linux: Fixed error message. 2017-03-04 23:05:11 +01:00
Ryan C. Gordon
b17cd02507 video: Don't compile isAtLeastGL3() if we don't have OpenGL support _at all_. 2017-03-03 16:38:45 -05:00
Ryan C. Gordon
cf875b61dd Fix some more compiler warnings on armcc. 2017-03-03 16:38:17 -05:00
Ryan C. Gordon
9ed1eef16c Some patches to make SDL compile with armcc (ARM's C compiler). 2017-03-02 13:33:04 -05:00
Brandon Schaefer
62c9848b3d mistake: Revert the files that I did not mean to commit 2017-03-01 15:05:54 -08:00
Brandon Schaefer
88dad22cdf * Some refactoring and bug fixes. Thanks Michał Kuchta! 2017-03-01 14:50:59 -08:00
Ryan C. Gordon
0231d80e0d raspberrypi: RPI_Destroy() should free the SDL_VideoDevice and its driverdata. 2017-02-28 19:48:52 -05:00
Brandon Schaefer
d7c67d0210 mir: Get ready for Mir 1.0, clean up deprecations. Thanks Michał Kuchta! 2017-02-27 12:20:16 -08:00
Ryan C. Gordon
05df03613b audio: clarified what SDL_AudioSpec::samples is, removed note about power of 2.
These don't have to be power-of-2 sizes anymore because of SDL_AudioStream,
and the new resampler, but also, many platforms don't give you power-of-2 DMA
buffer in the first place!
2017-02-27 10:11:40 -05:00
Philipp Wiesemann
de892528d9 Fixed comment style. 2017-02-26 21:20:39 +01:00
Ryan C. Gordon
176718fcd2 Updated generated configure script. 2017-02-26 01:03:39 -05:00
Ryan C. Gordon
74bb7c2910 Patched to compile on C89 compilers. 2017-02-26 00:56:13 -05:00
Ryan C. Gordon
82690f7ff4 configure: Cygwin and MingW should try to use -Wdeclaration-after-statement. 2017-02-26 00:54:45 -05:00
Ryan C. Gordon
da406a0194 audio: Try to keep callbacks firing at normal pace when device is lost. 2017-02-26 00:39:22 -05:00
Ryan C. Gordon
98e18e9ccf Removed a bunch of unnecessary #ifdefs. 2017-02-26 00:40:04 -05:00
Ryan C. Gordon
e8ccf808b2 audio: run the audio callback even if device was lost.
We will throw away the data anyhow, but some apps depend on the callback
firing to make progress; testmultiaudio.c, if nothing else, is an example
of this.

Capture also will now fire the callback in these conditions, offering nothing
but silence.

Apps can check SDL_GetAudioDeviceStatus() or listen for the
SDL_AUDIODEVICEREMOVED event if they want to gracefully deal with
an opened audio device that has been unexpectedly lost.
2017-02-26 00:12:33 -05:00
Ryan C. Gordon
1c1a6f82d3 audio: Make sure the disk and dummy targets are the last ones we try to init. 2017-02-26 00:10:02 -05:00
David Ludwig
a37300b021 WinRT: removed Windows 8.0 from build-bot + NuGet package creation scripts
According to Steam's OS stats, Windows 8.0 use is pretty much nil.  Further,
Microsoft hasn't support Windows 8.0 development in any of their
actively-updated toolchains, and setting it up can be a pain.

In theory, SDL2 still supports Windows 8.0, however building of Windows 8.0
.dlls is no longer the default, if and when using the 'winrtbuild.*' scripts.
The MSVC 2012 project files for building Windows 8.0 dlls remain, though,
for the time being.
2017-02-25 21:23:12 -05:00
David Ludwig
07484eaf8a WinRT: removed buildbot debug code, pending further research 2017-02-24 20:49:14 -05:00
David Ludwig
e007cc26d7 WinRT: more buildbot debug code 2017-02-24 20:19:28 -05:00
David Ludwig
6a8bb75542 WinRT: added code to help debug a buildbot error 2017-02-24 19:59:57 -05:00
Ryan C. Gordon
ed2ceada1a cmake: add WASAPI audio target to the build (thanks, Martin!).
Fixes Bugzilla #3588.
2017-02-23 22:38:04 -05:00
Sam Lantinga
5378779815 Stop CoreAudio from doing expensive audio rate conversion 2017-02-23 12:10:02 -08:00
Sam Lantinga
ffef80b48e Added config for the Razer Wildcat on Mac OS X 2017-02-20 11:02:35 -08:00
Sam Lantinga
94bf94069f Updated iOS fat build 2017-02-20 10:55:49 -08:00
Sam Lantinga
44823377c0 Updated config headers to override the base SDL_config.h if both are included 2017-02-20 10:55:33 -08:00
Philipp Wiesemann
844198cfac Fixed warnings if compiling loopwave programs with C++. 2017-02-19 21:05:42 +01:00
Philipp Wiesemann
7ffc9b62a7 Updated library name in header file. 2017-02-19 21:05:26 +01:00
Philipp Wiesemann
57d250b7cc Fixed comment. 2017-02-19 21:05:09 +01:00
Sam Lantinga
2a137f0858 Added support for the Razer Wildcat on Linux 2017-02-17 17:46:58 -08:00
Charlie Birks
b9b4bc070d Emscripten: implement custom cursors 2017-02-17 10:13:17 +00:00
Charlie Birks
d9bbbedd1e Emscripten: refactor cursor handling 2017-02-17 10:13:12 +00:00
Charlie Birks
1d731963fe Remove link to emscripten tests
Not updated since early port. Also stopped working when Dropbox
stopped allowing HTML to be parsed.
2017-02-17 10:13:10 +00:00
Charlie Birks
b45b4ee64f Emscripten: only update pixel ratio if HiDPI is enabled 2017-02-17 10:13:07 +00:00
Ryan C. Gordon
87ec58a52a audio: Added basic WAVE_FORMAT_EXTENSIBLE support to .wav loader.
This is just enough to get you through a file that just used the extended
header for float or int data. It doesn't handle all the other things that
you expect from this header, like 24-bit samples inside a 32-bit container
or speaker masks.
2017-02-17 02:25:37 -05:00
Ryan C. Gordon
15fe3429b5 More HTTPS doc tweaks.
(mostly I'm testing buildbot though.  :)   )
2017-02-16 16:59:07 -05:00
Ryan C. Gordon
db299ecef4 More HTTPS changes in the documentation. 2017-02-16 16:52:03 -05:00
Ryan C. Gordon
411c27dd6b readme: more HTTPS changes. 2017-02-16 13:55:12 -05:00
Ryan C. Gordon
4952519867 readme: correct webpage URL to use HTTPS. 2017-02-16 13:30:34 -05:00
Ryan C. Gordon
d54c536c19 Patched to compile on Windows. 2017-02-14 03:12:09 -05:00