| 
              
0d763800
               | 
              
2023-03-09T15:10:00
               | 
              
               | 
              
Code style: changed "sizeof foo" to "sizeof(foo)" (thanks @sezero!)
(cherry picked from commit c6443d86c92e962683a1efe5f123a144988875b5)
               | 
            
            
              
   
               | 
              
0479df53
               | 
              
2023-01-09T09:48:21
               | 
              
               | 
              
Updated copyright for 2023
               | 
            
            
              
   
               | 
              
b8d85c69
               | 
              
2022-11-30T12:51:59
               | 
              
               | 
              
Update for SDL3 coding style (#6717)
I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base.
In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted.
The script I ran for the src directory is added as build-scripts/clang-format-src.sh
This fixes:
#6592
#6593
#6594
(cherry picked from commit 5750bcb174300011b91d1de20edb288fcca70f8c)
               | 
            
            
              
   
               | 
              
fb0ce375
               | 
              
2022-11-27T17:38:43
               | 
              
               | 
              
Cleanup add brace (#6545)
* Add braces after if conditions
* More add braces after if conditions
* Add braces after while() conditions
* Fix compilation because of macro being modified
* Add braces to for loop
* Add braces after if/goto
* Move comments up
* Remove extra () in the 'return ...;' statements
* More remove extra () in the 'return ...;' statements
* More remove extra () in the 'return ...;' statements after merge
* Fix inconsistent patterns are xxx == NULL vs !xxx
* More "{}" for "if() break;"  and "if() continue;"
* More "{}" after if() short statement
* More "{}" after "if () return;" statement
* More fix inconsistent patterns are xxx == NULL vs !xxx
* Revert some modificaion on SDL_RLEaccel.c
* SDL_RLEaccel: no short statement
* Cleanup 'if' where the bracket is in a new line
* Cleanup 'while' where the bracket is in a new line
* Cleanup 'for' where the bracket is in a new line
* Cleanup 'else' where the bracket is in a new line
(cherry picked from commit 6a2200823c66e53bd3cda4a25f0206b834392652 to reduce conflicts merging between SDL2 and SDL3)
               | 
            
            
              
   
               | 
              
8c51cae7
               | 
              
2022-07-23T14:56:04
               | 
              
               | 
              
audio/aaudio, audio/openslES: fix -Wdeclaration-after-statement errors
Fixes https://github.com/libsdl-org/SDL/issues/5950
               | 
            
            
              
   
               | 
              
08d27dfd
               | 
              
2022-02-22T15:27:30
               | 
              
               | 
              
SDL_openslES.c: Detect float support in runtime and use it
Allow using of the float output type on newer Android devices, but keep PCM16 output on older
Closes #5358
               | 
            
            
              
   
               | 
              
a70bb259
               | 
              
2022-01-20T13:16:03
               | 
              
               | 
              
drop handle parameter of OpenDevice
               | 
            
            
              
   
               | 
              
2eafe434
               | 
              
2022-01-20T12:18:59
               | 
              
               | 
              
cleanup/sync the main loop of *_OpenDevice functions to pick audio format
               | 
            
            
              
   
               | 
              
1043dd8c
               | 
              
2022-01-19T12:58:04
               | 
              
               | 
              
adjust handling of iscapture
- drop iscapture parameter of OpenDevice
- use SDL_bool for iscapture
               | 
            
            
              
   
               | 
              
0dda8a7f
               | 
              
2022-01-17T11:21:01
               | 
              
               | 
              
cleanup init functions of audio
- use SDL_bool if possible
- assume NULL/SDL_FALSE filled impl
- skip zfill of current_audio at the beginning of SDL_AudioInit (done before the init() calls)
               | 
            
            
              
   
               | 
              
120c76c8
               | 
              
2022-01-03T09:40:00
               | 
              
               | 
              
Updated copyright for 2022
               | 
            
            
              
   
               | 
              
a0cb079a
               | 
              
2021-11-21T15:45:08
               | 
              
               | 
              
Fixed bug #4982 - Failed to open audio_device on OpenSLES / Android 5.x with freq 96khz+
               | 
            
            
              
   
               | 
              
8ac0fb52
               | 
              
2021-04-29T09:29:02
               | 
              
               | 
              
OpenSLES: CloseDevice() is called at higher level, if OpenDevice() fails
- explicit initialization of static variables
               | 
            
            
              
   
               | 
              
4118fe62
               | 
              
2021-04-15T20:52:43
               | 
              
               | 
              
Android: OpenSLES, explicitly initialise the global variable 'bqPlayerPlay',
it may be read even if OpenSLES back-end hasn't been intialized
               | 
            
            
              
   
               | 
              
9130f7c3
               | 
              
2021-01-02T10:25:38
               | 
              
               | 
              
Updated copyright for 2021
               | 
            
            
              
   
               | 
              
cb361896
               | 
              
2020-12-09T07:16:22
               | 
              
               | 
              
Fixed bug 5235 - All internal sources should include SDL_assert.h
Ryan C. Gordon
We should really stick this in SDL_internal.h or something so it's always available.
               | 
            
            
              
   
               | 
              
14bf532d
               | 
              
2020-02-13T16:10:52
               | 
              
               | 
              
Fixed opening audio on Android from the Steam Link shell activity
               | 
            
            
              
   
               | 
              
4bb95e84
               | 
              
2020-02-11T16:14:02
               | 
              
               | 
              
Implemented OpenSL-ES audio recording on Android
               | 
            
            
              
   
               | 
              
a8780c6a
               | 
              
2020-01-16T20:49:25
               | 
              
               | 
              
Updated copyright date for 2020
               | 
            
            
              
   
               | 
              
70dc8d16
               | 
              
2019-08-30T08:55:20
               | 
              
               | 
              
Android: fix corresponding warnings
               | 
            
            
              
   
               | 
              
03cf2416
               | 
              
2019-06-08T10:21:38
               | 
              
               | 
              
OpenSL ES audio cleanup and added a note with low latency audio discussion
               | 
            
            
              
   
               | 
              
166d15fd
               | 
              
2019-06-07T15:09:15
               | 
              
               | 
              
Fixed surround sound channel setup for Android OpenSL ES audio driver
               | 
            
            
              
   
               | 
              
02f9667a
               | 
              
2019-05-23T13:47:27
               | 
              
               | 
              
Fixed static and buzzing when trying to use floating point audio on the OpenSL ES audio driver.
               | 
            
            
              
   
               | 
              
03cbac40
               | 
              
2019-02-05T15:14:15
               | 
              
               | 
              
Android/openslES: fix warnings, comment out un-used interface
               | 
            
            
              
   
               | 
              
614c8aea
               | 
              
2019-02-05T15:09:41
               | 
              
               | 
              
Android/openslES: set number of buffers of DATALOCATOR to internal NUM_BUFFER
If we increase NUM_BUFFER, Enqueue won't fail with SL_RESULT_BUFFER_INSUFFICIENT
               | 
            
            
              
   
               | 
              
bf823bf2
               | 
              
2019-02-05T15:05:32
               | 
              
               | 
              
Android/openslES: prevent to run out of buffers if Enqueue() fails.
               | 
            
            
              
   
               | 
              
1b24b2ec
               | 
              
2019-01-14T22:56:57
               | 
              
               | 
              
Android/openslES: fix Pause/ResumeDevices when openslES is not used
               | 
            
            
              
   
               | 
              
647b1f6a
               | 
              
2019-01-14T14:36:13
               | 
              
               | 
              
Android/openslES: check for non NULL variable, some intialization.
use the previous naming
               | 
            
            
              
   
               | 
              
7b1cc441
               | 
              
2019-01-14T14:31:06
               | 
              
               | 
              
Android/openslES: start playing, after creating ressources
               | 
            
            
              
   
               | 
              
955d8789
               | 
              
2019-01-14T12:33:29
               | 
              
               | 
              
Android/openslES: set audio in paused/resumed state for Android event loop
And also in "stopped" state before closing the device.
               | 
            
            
              
   
               | 
              
59c8c7b6
               | 
              
2019-01-14T10:58:57
               | 
              
               | 
              
Android/openslES: move a few static variables to SDL_PrivateAudioData structure
               | 
            
            
              
   
               | 
              
5aeeaaab
               | 
              
2019-01-14T10:16:26
               | 
              
               | 
              
Android/openslES: register and use CloseDevice function.
               | 
            
            
              
   
               | 
              
365fd9c6
               | 
              
2019-01-14T10:04:54
               | 
              
               | 
              
Android/openslES: some space and indentation to match SDL conventions
               | 
            
            
              
   
               | 
              
7dc92a76
               | 
              
2019-01-12T12:18:44
               | 
              
               | 
              
Initial Android OpenSL ES implementation, contributed by ANTA
               |