aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Don't bother with an explicit stop backend methodChris Robinson2018-01-291-8/+1
|
* Combine common initialization code into a functionChris Robinson2018-01-281-143/+105
|
* Make EnabledEvts atomicChris Robinson2018-01-281-1/+1
|
* Use a fixed array for the effect state factory listChris Robinson2018-01-281-4/+0
|
* Store filters in an array of listsChris Robinson2018-01-271-10/+12
|
* Store effects in an array of listsChris Robinson2018-01-271-10/+12
|
* Use a vector to store the effect slot pointersChris Robinson2018-01-271-12/+13
| | | | And make the ID a simple index into it (1-base, to avoid ID 0).
* Use an array lookup for source IDsChris Robinson2018-01-271-37/+48
| | | | | This is now similar to buffers, being stored in groups of 64 in a vector with the ID providing the array indices.
* Use a different method for storing and looking up buffersChris Robinson2018-01-271-10/+12
| | | | | | | | | | | | | | | | | Rather than each buffer being individually allocated with a generated 'thunk' ID that's used with a uint:ptr map, buffers are allocated in arrays of 64 within a vector. Each group of 64 has an associated 64-bit mask indicating which are free to use, and the buffer ID is comprised of the two array indices which directly locate the buffer (no searching, binary or otherwise). Currently no buffers are actually deallocated after being allocated, though they are reused. So an app that creates a ton of buffers once, then deletes them all and uses only a couple from then on, will have a bit of waste, while an app that's more consistent with the number of used buffers won't be a problem. This can be improved by removing elements of the containing vector that contain all-free buffers while there are plenty of other free buffers. Also, this method can easily be applied to other resources, like sources.
* Report AL_SOFTX_events as an in-progress extensionChris Robinson2018-01-241-0/+1
|