- 21 Mar, 2021 1 commit
-
-
David Reid authored
Clang auto-vectorization hints
-
- 16 Mar, 2021 1 commit
-
-
David Reid authored
-
- 15 Mar, 2021 3 commits
-
-
Steven Noonan authored
The range of the value isn't obvious to any compiler, as it could go for one iteration or 4 billion iterations. Adding MA_ASSUME in these places helps the compiler understand the range of possible values, and know how heavily to vectorize (or not vectorize) these loops. Signed-off-by:Steven Noonan <steven@uplinklabs.net>
-
Steven Noonan authored
This tells the compiler that pFrameOut does not alias to pointers used within the function, and teaches Clang that the loop is vectorizable. Signed-off-by:Steven Noonan <steven@uplinklabs.net>
-
Steven Noonan authored
These values are constant, but Clang has some trouble noticing that, especially if the loop body is complex enough. This prevents it from noticing places where vectorization is possible (and desirable). Signed-off-by:Steven Noonan <steven@uplinklabs.net>
-
- 14 Mar, 2021 3 commits
-
-
Steven Noonan authored
This allows us to use the __restrict keyword in places where we know that pointers do not alias. Signed-off-by:Steven Noonan <steven@uplinklabs.net>
-
Steven Noonan authored
This macro can be used to tell the compiler's optimization passes static assumptions which you *know* are true about code behavior. Use of these can be risky -- if you assume incorrectly, the compiler may emit code that will not work in circumstances you didn't anticipate. On the other hand, use of this macro in places where the optimizer is missing an assumption that would have been safe to make can cause it to emit more compact/optimal code. Signed-off-by:Steven Noonan <steven@uplinklabs.net>
-
Steven Noonan authored
Both GCC and Clang can use this feature, so let's make it more general. I didn't touch the dr_wav/dr_flac parts using this, since I figure the amalgamated miniaudio.h header isn't the primary source for those. Signed-off-by:Steven Noonan <steven@uplinklabs.net>
-
- 11 Mar, 2021 1 commit
-
-
David Reid authored
wasapi: ensure that wasapi context structure is zeroed before filling it
-
- 10 Mar, 2021 15 commits
-
-
Steven Noonan authored
I had a situation where I was doing: ma_backend backends[] = { ma_backend_jack, ma_backend_wasapi, }; ma_context_init(backends, sizeof(backends)/sizeof(backends[0]), &contextConfig, &context); And since JACK was unavailable, it fell back to WASAPI. When this happened, the WASAPI commandIndex and commandCount variables were already stomped on by the JACK backend initialization, but the WASAPI backend assumes they are zero-initialized. Signed-off-by:Steven Noonan <steven@uplinklabs.net>
-
David Reid authored
Fix linker error when MA_NO_RESOURCE_MANAGER is defined
-
David Reid authored
Fix -Wcast-qual by using correct ma_offset_pcm_frames_ptr()
-
David Reid authored
-
David Reid authored
Fix CoreAudio's performanceProfile for playback not being set
-
-
David Reid authored
Fix memory leak (macOS)
-
David Reid authored
-
David Reid authored
engine: use atomics for setting live pitch and spatialization variables
-
David Reid authored
-
morlad (iLeitgeb) authored
-
morlad (iLeitgeb) authored
-
morlad (iLeitgeb) authored
-
morlad (iLeitgeb) authored
-
Steven Noonan authored
Signed-off-by:Steven Noonan <steven@uplinklabs.net>
-
- 09 Mar, 2021 3 commits
-
-
Steven Noonan authored
Thread Sanitizer was unhappy about these variables being modified on one thread and read on another (data race). Signed-off-by:Steven Noonan <steven@uplinklabs.net>
-
David Reid authored
-
David Reid authored
-
- 06 Mar, 2021 4 commits
-
-
David Reid authored
-
Steven Noonan authored
Signed-off-by:Steven Noonan <steven@uplinklabs.net>
-
David Reid authored
-
Steven Noonan authored
Signed-off-by:Steven Noonan <steven@uplinklabs.net>
-
- 05 Mar, 2021 1 commit
-
-
David Reid authored
-
- 04 Mar, 2021 2 commits
-
-
David Reid authored
-
David Reid authored
-
- 03 Mar, 2021 1 commit
-
-
David Reid authored
-
- 01 Mar, 2021 1 commit
-
-
David Reid authored
-
- 28 Feb, 2021 1 commit
-
-
David Reid authored
-
- 26 Feb, 2021 1 commit
-
-
David Reid authored
-
- 23 Feb, 2021 2 commits
-
-
David Reid authored
-
David Reid authored
-