Chris Robinson
6d1622dc68
Move InitiatePositionArrays to mixer_defs.h
2014-06-06 07:15:22 -07:00
Timothy Arceri
fc0be88c0f
Add SSE2 and SSE4.1 linear resamplers
...
Currently the only way SSE 4.1 is detected is by using __get_cpuid, i.e. with
GCC. Windows' IsProcessorFeaturePresent does not report SSE4.1 capabilities.
2014-06-06 07:15:00 -07:00
Chris Robinson
3b2fcb3ef6
Avoid a loop when updating the source position variables
2014-06-02 19:19:22 -07:00
Chris Robinson
d2c0a43498
Add an ffmpeg-based example player
...
This example shows proper timing and A/V synchronization with an OpenAL stream.
Requires the in-progress AL_SOFTX_source_length extension to avoid manually
keeping track of the buffer queue length.
2014-06-02 17:33:11 -07:00
Chris Robinson
933f51a8bf
Only define struct timespec if _TIMESPEC_DEFINED isn't set
...
This matches what the mingw-w64 headers define with the struct.
2014-05-31 17:41:10 -07:00
Chris Robinson
1d45c439b8
Add extern "C" to common headers.
2014-05-29 04:22:30 -07:00
Chris Robinson
73614f228e
Add methods to exchange and compare-exchange RefCount values
2014-05-27 15:48:15 -07:00
Chris Robinson
fd62868c17
Avoid unnecessary local variables
2014-05-27 15:32:38 -07:00
Chris Robinson
f0b65aa6b7
Implement condition variables for Windows
2014-05-27 05:22:53 -07:00
Chris Robinson
2d2bc25fd0
Add an extension string for the in-progress source length extension
...
This is the extension that allows you to get the full length of the source's
buffer queue.
2014-05-26 04:07:50 -07:00
Chris Robinson
b6e1042e8c
Implement condition variables (POSIX only!)
...
Windows requires Vista or newer to get the CONDITION_VARIABNLE API, but we
currently only require XP.
2014-05-26 03:52:55 -07:00
Chris Robinson
fd5e7f1466
Don't print an ERR if pulse fails to get latency info due to no data
...
It just means it was called too quickly after starting.
2014-05-26 03:41:33 -07:00
Chris Robinson
0ec0f7561c
Add an option to get the length of a source's full queue
...
This simplifies keeping track how much a source has buffered in its queue,
which reduces a bunch of unnecessary book keeping the app would have to do.
2014-05-25 16:16:55 -07:00
Chris Robinson
3d6ffa282d
Don't resume the backend if there's no contexts
2014-05-24 17:19:52 -07:00
Chris Robinson
4ca561acd3
Move the active source's offset out of the direct params
2014-05-24 16:55:10 -07:00
Chris Robinson
13eac2552e
Update the examples to use SDL2
...
This should make it easier to build the examples on 64-bit, where there are no
premade dev libs for SDL1 on 64-bit mingw. FindSDL_sound.cmake has been
updated to accept SDL or SDL2.
2014-05-23 12:14:51 -07:00
Chris Robinson
5ef5d218c4
Mark a few more functions as const
2014-05-23 10:00:58 -07:00
Chris Robinson
3fc9791747
Rename CONST_FUNC and PRINTF_STYLE, and fix non-GNU AL_PRINT
2014-05-23 08:30:33 -07:00
Chris Robinson
7d997277a0
AL_SOFT_block_alignment is now considered done
2014-05-22 12:27:07 -07:00
Chris Robinson
a48f5d26fd
Ensure a proper amount of new elements are being reserved when inserting
2014-05-22 12:16:22 -07:00
Chris Robinson
9008bcbe54
Include strings.h if it exists for strncasecmp
2014-05-22 11:33:09 -07:00
Chris Robinson
2729a1549b
Add a needed header for the CoreAudio backend
2014-05-22 11:29:26 -07:00
Chris Robinson
e32e3df3aa
Use the first non-0-length buffer when starting a source
2014-05-22 11:08:21 -07:00
Chris Robinson
85e990e915
Don't try to use the non-standard alloca.h
...
Variable-length arrays are C99 standard and are preferred over alloca. The only
compiler that needs alloca (MSVC) has it in malloc.h.
2014-05-22 08:46:13 -07:00
Chris Robinson
2b3550b61c
Use an unsigned type for the win32 size_t formatter
2014-05-22 08:02:39 -07:00
Chris Robinson
100c059157
Mark some functions as const
2014-05-22 07:40:22 -07:00
Chris Robinson
ecdfcdbfa5
The lower value of the gain vector contains the closest target value
2014-05-21 21:20:44 -07:00
Chris Robinson
2e38de349c
Don't clear the current and step gain values when updating a source
2014-05-21 16:32:24 -07:00
Chris Robinson
6ea050cc6c
Use the current buffer item for static sources too
2014-05-21 15:37:22 -07:00
Chris Robinson
4b433c900e
Copy samples if needed in the 'copy' resampler
2014-05-21 15:24:40 -07:00
Chris Robinson
dd2e6b7902
Properly process all samples with a bandpass filter
2014-05-21 14:59:21 -07:00
Chris Robinson
e650db98f7
Use the correct input for HRTF mixing
2014-05-21 14:48:46 -07:00
Chris Robinson
4a8d38c19a
Update the active source's direct and send properties after each mix
2014-05-21 14:47:25 -07:00
Chris Robinson
f313ce2a96
Add some asserts to verify block alignment for conversion
2014-05-20 09:16:54 -07:00
Chris Robinson
cd983245f1
Return a sample pointer from resamplers
...
Both resampling and filtering now avoid copying samples when they no-op.
2014-05-19 05:46:01 -07:00
Chris Robinson
8e04a8a022
Put per-channel filter properties together
2014-05-19 02:24:31 -07:00
Chris Robinson
7b782f6afa
Return a sample pointer from DoFilters
...
This allows us to avoid copying samples when no filtering is needed. Doing the
same for resampling would require another temporary buffer in the device.
2014-05-19 01:54:52 -07:00
Chris Robinson
ef9dfe3772
Move an HRTF mixer parameter and shorten a couple variable names
2014-05-18 11:05:38 -07:00
Chris Robinson
9317ec59b9
Don't pass the SendParams to the wet-path mixer
2014-05-18 10:35:11 -07:00
Chris Robinson
c9083d04fa
Don't pass the DirectParams to the dry-path mixer
2014-05-18 10:24:07 -07:00
Chris Robinson
5a1abf6918
Use different parameters for HRTF mixers
2014-05-18 09:31:08 -07:00
Chris Robinson
29b5dae6aa
Pass some DirectParams as function parameters
2014-05-18 08:59:10 -07:00
Chris Robinson
bd2721dc7a
Use _mm_setr_ps instead of _mm_set_ps
...
Apparently _mm_set_ps loads in reverse order compared to _mm_load_ps, so
_mm_setr_ps should give what we really want.
2014-05-18 06:35:33 -07:00
Chris Robinson
a5631e05cc
Add a ALfilterState method to process multiple samples at once
2014-05-18 06:23:20 -07:00
Chris Robinson
cd53a4b74c
Reset filter properties when setting a null filter type
2014-05-17 08:05:49 -07:00
Chris Robinson
190ab90c0d
Support the band-pass filter
2014-05-17 08:04:14 -07:00
Chris Robinson
82dd2d875e
Apply high-pass source filters as needed
2014-05-17 07:54:25 -07:00
Chris Robinson
3a26ebef0b
Implementing handling high-pass filter properties
2014-05-17 07:29:50 -07:00
Chris Robinson
0b5b39d5e6
Add a flag to specify when the low-pass filter needs to apply
2014-05-17 07:17:48 -07:00
Chris Robinson
70f1e54068
Use logarithmic adjustment for the gain in the autowah effect
2014-05-17 03:08:04 -07:00