aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
Commit message (Collapse)AuthorAgeFilesLines
* Remove the old thread wrappers for the new onesChris Robinson2014-04-161-10/+4
|
* Implement a C11-like thread wrapper and use it in mmdevapi and pulseaudioChris Robinson2014-04-161-5/+77
|
* Use a C11-like mutex wrapper instead of CRITICAL_SECTIONsChris Robinson2014-04-161-0/+86
|
* Use C11's static_assert when availableChris Robinson2014-04-071-0/+12
|
* Make HRTF stepping values per-channelChris Robinson2014-04-051-2/+2
|
* Use an al_string for the device nameChris Robinson2014-03-281-1/+2
|
* Use C99 VLA instead of alloca when availableChris Robinson2014-03-251-0/+6
|
* Remove an unused methodChris Robinson2014-03-231-9/+0
|
* Remove the last bits of the predictive sample processingChris Robinson2014-03-231-3/+3
|
* Remove the click removal buffers for auxiliary effect slotsChris Robinson2014-03-232-7/+1
|
* Add gain stepping to the send mixersChris Robinson2014-03-231-1/+8
|
* Remove the now-unneeded click removal buffers for the deviceChris Robinson2014-03-232-7/+1
| | | | | | They are still there for auxiliary sends. However, they should go away soon enough too, and then we won't have to mess around with calculating extra "predictive" samples in the mixer.
* Step mixing gains per-sample for non-HRTF mixingChris Robinson2014-03-231-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | This fades the dry mixing gains using a logarithmic curve, which should produce a smoother transition than a linear one. It functions similarly to a linear fade except that step = (target - current) / numsteps; ... gain += step; becomes step = powf(target / current, 1.0f / numsteps); ... gain *= step; where 'target' and 'current' are clamped to a lower bound that is greater than 0 (which makes no sense on a logarithmic scale). Consequently, the non-HRTF direct mixers do not do not feed into the click removal and pending click buffers, as this per-sample fading would do an adequate job of stopping clicks and pops caused by extreme gain changes. These buffers should be removed shortly.
* Move the step counter and moving flag to DirectParamsChris Robinson2014-03-231-2/+4
|
* Store the HrtfState directly in the DirectParamsChris Robinson2014-03-232-6/+3
|
* Move some HRTF and mixer structs to alu.hChris Robinson2014-03-222-63/+60
|
* Use a void* for the effect state Delete method paramChris Robinson2014-03-212-2/+6
|
* Add a generic vector interface and use it for the active effect slotsChris Robinson2014-03-211-3/+6
|
* Use flexible array members to pad the device and context structsChris Robinson2014-03-201-0/+6
| | | | | This helps avoid the convoluted math otherwise required to ensure the default slot and listener, respectively, are aligned.
* Keep track of the mix countChris Robinson2014-03-191-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | The purpose of this is to provide a safe way to be able to "swap" resources used by the mixer from other threads without the need to block the mixer, as well as a way to track when mixes have occurred. The idea is two-fold: It provides a way to safely swap resources. If the mixer were to (atomically) get a reference to an object to access it from, another thread would be able allocate and prepare a new object then swap the reference to it with the stored one. The other thread would then be able to wait until (count&1) is clear, indicating the mixer is not running, before safely freeing the old object for the mixer to use the new one. It also provides a way to tell if the mixer has run. With this, a thread would be able to read multiple values, which could be altered by the mixer, without requiring a mixer lock. Comparing the before and after counts for inequality would signify if the mixer has (started to) run, indicating the values may be out of sync and should try getting them again. Of course, it will still need something like a RWLock to ensure another (non-mixer) thread doesn't try to write to the values at the same time. Note that because of the possibility of overflow, the counter is not reliable as an absolute count.
* Use a union to combine HRTF and non-HRTF mixer paramsChris Robinson2014-03-191-9/+11
|
* Store some source mixing parameters in the active source structChris Robinson2014-03-192-24/+21
|
* Use a separate struct for tracking active sourcesChris Robinson2014-03-182-5/+10
|
* Store the old-style backend funcs in the wrapperChris Robinson2014-03-171-1/+0
|
* Avoid GCC's macro arg concat extension with IDE parsingChris Robinson2014-03-171-1/+1
|
* Move the sample conversion routines to a separate fileChris Robinson2014-03-051-0/+9
|
* Add an extension to support MSADPCM buffer formatsChris Robinson2014-03-042-0/+7
|
* Add an extension to alter the block alignment for buffer unpack/pack opsChris Robinson2014-03-042-0/+9
| | | | | | | | | | | | | | | | This is for unpacking (reading, e.g. alBufferData) and packing (writing, e.g. alGetBufferSamplesSOFT) operations. The alignments are specified in sample frames, with 0 meaning the default (65 for IMA4, 1 otherwise). IMA4 alignment must be a multiple of 8, plus 1 (e.g. alignment = n*8 + 1), otherwise an error will occur during (un)packing. Chenging the block alignment does not affect already-loaded sample data, only future unpack/pack operations... so for example, this is perfectly valid: // Load mono IMA4 data with a block alignment of 1024 bytes, or 2041 sample // frames. alBufferi(buffer, AL_UNPACK_BLOCK_ALIGNMENT_SOFT, 2041); alBufferData(buffer, AL_FORMAT_MONO_IMA4, data, data_len, srate); alBufferi(buffer, AL_UNPACK_BLOCK_ALIGNMENT_SOFT, 0);
* Store the original frame size alignment in the bufferChris Robinson2014-03-031-0/+1
|
* Move PATH_MAX fallback definitions to alMain.hChris Robinson2014-02-271-0/+9
|
* Move OpenDataFile to helpers.c so other sources can use itChris Robinson2014-02-271-0/+1
|
* Move HRTF macros and function declarations to a separate headerChris Robinson2014-02-232-14/+1
|
* Add a return value to FindHrtfFormatChris Robinson2014-02-231-1/+1
|
* Add an alcGetInteger64vSOFT method and a way to get the device clockChris Robinson2014-02-011-0/+11
|
* Keep track of a device clock time, based on the number of samples processedChris Robinson2014-02-011-0/+7
|
* Rename aftertouch to keypressureChris Robinson2014-01-171-6/+6
|
* Use a proper struct for envelope propertiesChris Robinson2014-01-171-20/+13
|
* Handle fontsound sample types using explicit enum valuesChris Robinson2014-01-151-0/+2
| | | | | | Uses AL_MONO_SOFT, AL_RIGHT_SOFT, and AL_LEFT_SOFT. "Linked" samples types aren't explicitly supported due to being under-defined in the SF2 spec, nor are ROM samples currently.
* Add a flag to specify the device being pausedChris Robinson2014-01-151-0/+3
| | | | | Used to prevent UpdateDeviceParams from restarting the device, if a new context is created while paused.
* Add an extension to pause audio processingChris Robinson2014-01-151-0/+10
|
* Add a method to get soundfont samplesChris Robinson2014-01-131-0/+2
|
* Add a method to get the current MIDI stateChris Robinson2014-01-121-0/+1
|
* Load soundfont modulators into FluidSynthChris Robinson2014-01-061-2/+2
|
* Add methods to get and set modulator properties on fontsoundsChris Robinson2014-01-052-3/+48
|
* Move some soundfont methods to ALsoundfontChris Robinson2014-01-051-0/+2
|
* Add storage for a default soundfont objectChris Robinson2014-01-032-0/+4
|
* Avoid using alFontsoundiSOFT when loading a soundfontChris Robinson2014-01-031-0/+2
| | | | This should now make the soundfont loader thread-safe.
* Use a uint map for modulatorsChris Robinson2014-01-021-3/+6
|
* Mostly load into fontsound objects directlyChris Robinson2014-01-021-5/+1
| | | | This leaves only one unsafe alFontsoundiSOFT call.
* Move some error macros to alError.hChris Robinson2014-01-022-16/+15
|