aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert ALc.c to C++Chris Robinson2018-11-141-4715/+0
|
* Move extern inline declarations to their own C sourceChris Robinson2018-11-141-19/+0
|
* Avoid using ATOMIC_FLAGChris Robinson2018-11-131-7/+7
| | | | | Although it cant potentially be better than a regular atomic, it presents compatibility issues when non-C11 atomics are mixed with C++
* Don't bother inlining some functionsChris Robinson2018-11-131-3/+0
|
* Convert the backend base to C++Chris Robinson2018-11-131-0/+5
|
* Make the enumerated HRTF entry name a char*Chris Robinson2018-11-121-1/+1
| | | | | Would ideally be a std::string with the HRTF name itself, but they're still seen in C code.
* Use a regular char* for the HRTF string nameChris Robinson2018-11-121-3/+4
|
* Convert helpers.c to C++Chris Robinson2018-11-111-0/+5
|
* Get rid of the last few al_fopen callsChris Robinson2018-11-101-1/+16
|
* Move some extern inline declarations to CChris Robinson2018-10-311-0/+8
|
* Add a comment about waiting to kill the event threadChris Robinson2018-10-071-0/+5
|
* Use a 24-bit dither depth limitChris Robinson2018-10-031-1/+1
|
* Don't limit output for ALC_DONT_CARE_SOFT and float samplesChris Robinson2018-10-031-7/+25
|
* Don't try to get the JNIEnv on AndroidChris Robinson2018-10-021-69/+0
| | | | | It's currently not used. More stuff is needed anyway which may need a different approach.
* Make the Compressor struct opaqueChris Robinson2018-09-301-2/+2
|
* Include the limiter's lookAhead delay in the device latencyChris Robinson2018-09-251-3/+9
|
* Don't hardcode the limiter thresholdChris Robinson2018-09-251-8/+23
| | | | It's now calculated from the output sample type and dither depth.
* Update the output limiter/compressorChris Robinson2018-09-251-3/+5
| | | | | | | | | | This provides better characteristics for an amplitude limiter. In particular, it utilizes the peak amplitude instead of the RMS, and the used parameters basically guarantee no output samples exceed the given threshold... almost, due to floating-point errors as the threshold is converted from dB to log-e for the envelope, then is negated and converted to linear amplitude to apply to the signal. It's quite possible for some rounding errors to creep in and not perfectly saturate the result.
* Remove an unnecessary mutexChris Robinson2018-09-201-2/+0
|
* Stop the event thread when releasing the contextChris Robinson2018-09-201-6/+6
| | | | To ensure no user callback gets called after alcDestroyContext.
* Put user events in a union structureChris Robinson2018-09-201-1/+1
|
* Always start the event thread with the contextChris Robinson2018-09-201-9/+11
|
* Pass the device name list to the backend probe methodChris Robinson2018-09-071-12/+1
|
* Rename ALCsndioBackendChris Robinson2018-09-071-4/+4
|
* EFX: Autowah implementationRaulshc2018-07-251-2/+5
| | | Add autowah effect using biquad peaking filter and envelope follower
* Start an extension to allow source filter gains greater than 1Chris Robinson2018-07-151-0/+1
|
* Prefer sndio over OSS when both are enabledTobias Kortkamp2018-06-221-3/+3
| | | | Signed-off-by: Tobias Kortkamp <[email protected]>
* Stop capture devices while closingkdhp2018-06-081-0/+6
| | | | | | | In 'alcCaptureCloseDevice', check if the capture device is running and stop it if necessary. This fixes the case where the device data is deallocated while a background thread is still running (Issue #199)
* Clamp the dither depth between 2 and 20 bitsChris Robinson2018-05-231-3/+6
|
* EFX: Frequency Shifter implementationRaulshc2018-05-201-1/+5
| | | Add frequency shifter effect using discrete Hilbert transform. Only mono signal processing by now (LEFT_DIRECTION).
* Move the filter implementation to a separate directoryChris Robinson2018-03-221-0/+2
|
* EFX:Pitch Shifter implementationRaulshc2018-03-181-1/+4
| | | Add pitch shifter effect using standard phase vocoder, based on work of Stephan Bernsee. Only mono signal processing by now.
* Add methods to clean up althrd and altss dataChris Robinson2018-03-101-0/+3
|
* Rename the mmdevapi backend to wasapiChris Robinson2018-03-091-2/+12
|
* Avoid deinitializing backends that never initializedChris Robinson2018-03-081-6/+12
|
* Properly limit the max number of effect slots to 2^31 - 1Chris Robinson2018-03-081-0/+2
|
* Add SDL2 backend for playback, fix #173Jan Niklas Hasse2018-03-071-0/+3
|
* Don't check for space in the ringbuffer before trying to writeChris Robinson2018-03-031-2/+1
| | | | The write method already checks and returns how much it managed to fit in.
* Use a plain mutex for the property lockChris Robinson2018-03-031-5/+7
|
* Init more stuff in InitDeviceChris Robinson2018-03-031-18/+9
|
* Use atomic variables instead of volatileChris Robinson2018-03-021-47/+43
|
* Make bformatdec_free and ambiup_free clear the freed pointerChris Robinson2018-02-121-5/+2
|
* Combine multiple functions called sequentiallyChris Robinson2018-02-111-5/+1
|
* Use a function pointer for applying the dry mix post-processChris Robinson2018-02-101-0/+2
|
* Make the Connected state atomicChris Robinson2018-02-041-9/+11
| | | | Also don't send the Disconnected event more than once.
* Provide more descriptive messages to disconnection eventsChris Robinson2018-02-031-5/+5
|
* Remove the unused thunk codeChris Robinson2018-02-021-4/+0
|
* Use a semaphore to signal the event handlerChris Robinson2018-02-011-2/+3
| | | | | | | | | | | Semaphores allow for semi-persistent signals, compared to a condition variable which requires a mutex for proper detection. A semaphore can be 'post'ed after writing some data on one thread, and another thread will be able to recognize it quickly even if the post occured in between checking for data and waiting. This more correctly fixes a race condition with events since the mixer shouldn't be using mutexes, and arbitrary wake-ups just to make sure an event wasn't missed was quite inefficient.
* Add a thread to marshal events from the mixerChris Robinson2018-01-311-1/+19
| | | | | | To avoid having unknown user code running in the mixer thread that could significantly delay the mixed output, a lockless ringbuffer is used for the mixer to provide events that a secondary thread will pop off and process.
* Rename EventLock to make it more clear it's protecting the callbackChris Robinson2018-01-301-2/+2
|