aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert the solaris backend to the new APIChris Robinson2015-05-171-1/+1
|
* Add a method to reset the deviceChris Robinson2015-05-161-0/+38
| | | | | | | This basically acts as if the app created a new context with the specified attributes (causing the device to reset with new parameters), then immediately delete it. Existing contexts remain undisturbed, except for a temporary pause while the device output is reconfigured.
* Add a few more HRTF status valuesChris Robinson2015-05-161-3/+19
| | | | | | | | | DISABLED - Generic disabled status ENABLED - Generic enabled status DENIED - Not allowed (user has configured HRTF to be off) REQUIRED - Forced (user has forced HRTF to be used) HEADPHONES_DETECTED - Enabled because headphones were detected UNSUPPORTED_FORMAT - Device format is not compatible with available filters
* Add an HRTF status queryChris Robinson2015-05-151-4/+23
| | | | | This can report the status of HRTF, specifying if it's enabled or not and why (currently only reports unsupported formats, but this may be extended).
* Add an option for "basic" HRTF renderingChris Robinson2015-02-111-7/+26
| | | | | | | | | | | | | | | | | This method is intended to help development by easily testing the quality of the B-Format encode and B-Format-to-HRTF decode. When used with HRTF, all sources are renderer using the virtual B-Format output, rather than just B-Format sources. Despite the CPU cost savings (only four channels need to be filtered with HRTF, while sources all render normally), the spatial acuity offered by the B-Format output is pretty poor since it's only first-order ambisonics, so "full" HRTF rendering is definitely preferred. It's /possible/ for some systems to be edge cases that prefer the CPU cost savings provided by basic over the sharper localization provided by full, and you do still get 3D positional cues, but this is unlikely to be an actual use- case in practice.
* Make sure the BS2B filter is freed if HRTF is enabledChris Robinson2015-02-091-0/+4
|
* Avoid unnecessary uses of ExchangeInt/PtrChris Robinson2015-02-041-3/+9
|
* Try the JACK backend before PulseAudioChris Robinson2015-02-031-3/+3
| | | | | The backend will not spawn a server by default, so PulseAudio will still be preferred as long as a JACK server isn't already running.
* Add a skeleton backend for JACKChris Robinson2014-12-211-0/+3
|
* Set error if capture device fails to startChris Robinson2014-12-211-4/+10
|
* Use aluVector in some more placesChris Robinson2014-12-161-6/+2
|
* Add explicit matrix and vector types to operate withChris Robinson2014-12-161-9/+7
|
* Use a lookup table to do cubic resamplingChris Robinson2014-12-151-0/+1
|
* Support B-Format output with the wave file writerChris Robinson2014-11-251-0/+9
|
* Avoid using ALCdevice_Lock and ALCdevice_Unlock unnecessarilyChris Robinson2014-11-231-12/+12
|
* Update a commentChris Robinson2014-11-231-3/+3
|
* Add a boolean to specify if a device is headphonesChris Robinson2014-11-231-1/+4
|
* Handle loopback devices when deciding to use HRTFChris Robinson2014-11-231-20/+18
|
* Remove a couple unnecessary tracesChris Robinson2014-11-221-2/+0
|
* Attempt to use BS2B when using headphones without HRTFChris Robinson2014-11-221-20/+23
|
* Rework HRTF decision logicChris Robinson2014-11-221-36/+53
| | | | | | This way takes into account a new stereo-mode config option, which when set to "headphones" will default to using HRTF. Eventually the device will also be able to specify if headphones are being used.
* Move a warning check earlierChris Robinson2014-11-221-8/+8
|
* Use a different method for HRTF mixingChris Robinson2014-11-221-3/+11
| | | | | | | | | | | | | | | | | | | | | | | This new method mixes sources normally into a 14-channel buffer with the channels placed all around the listener. HRTF is then applied to the channels given their positions and written to a 2-channel buffer, which gets written out to the device. This method has the benefit that HRTF processing becomes more scalable. The costly HRTF filters are applied to the 14-channel buffer after the mix is done, turning it into a post-process with a fixed overhead. Mixing sources is done with normal non-HRTF methods, so increasing the number of playing sources only incurs normal mixing costs. Another benefit is that it improves B-Format playback since the soundfield gets mixed into speakers covering all three dimensions, which then get filtered based on their locations. The main downside to this is that the spatial resolution of the HRTF dataset does not play a big role anymore. However, the hope is that with ambisonics- based panning, the perceptual position of panned sounds will still be good. It is also an option to increase the number of virtual channels for systems that can handle it, or maybe even decrease it for weaker systems.
* Reformat a couple linesChris Robinson2014-11-211-10/+8
|
* Initialize panning after setting up HRTFChris Robinson2014-11-211-5/+5
|
* Allocate the DryBuffer dynamicallyChris Robinson2014-11-211-0/+14
|
* Align UpdateSize for Neon, tooChris Robinson2014-11-171-1/+1
|
* Don't use the device lock/unlock wrappers needlesslyChris Robinson2014-11-081-4/+4
|
* Remove the unused wide-stereo optionChris Robinson2014-11-081-4/+0
|
* Allow selecting the 5.1-rear channel config from the config fileChris Robinson2014-11-081-0/+1
|
* Remove the long-deprecated 'format' config optionChris Robinson2014-11-081-49/+0
|
* Only enable the BS2B filter with stereo outputChris Robinson2014-11-071-1/+2
|
* Go to the next voice when a source is stoppedChris Robinson2014-11-071-1/+1
|
* Use a separate macro for the max output channel countChris Robinson2014-11-071-2/+2
|
* Fix 5.1 surround soundChris Robinson2014-11-071-60/+69
| | | | | | | | | | | | | Apparently, 5.1 surround sound is supposed to use the "side" channels, not the back channels, and we've been wrong this whole time. That means the "5.1 Side" is actually the correct 5.1 setup, and using the back channels is anomalous. Additionally, this means the 5.1 buffer format should also use the the side channels instead of the back channels. A final note: the 5.1 mixing coefficients are changed so both use the original 5.1 surround sound set (with the surround channels at +/-110 degrees). So the only difference now between 5.1 "side" and 5.1 "back" is the channel labels.
* Support AL_EXT_MULAW_BFORMATChris Robinson2014-10-311-1/+3
|
* Add preliminary AL_EXT_BFORMAT supportChris Robinson2014-10-311-7/+13
| | | | | Currently missing the AL_ORIENTATION source property. Gain stepping also does not work.
* Make alcSuspendContext and alcProcessContext batch updatesChris Robinson2014-10-121-4/+135
| | | | | | | | | | This behavior better matches Creative's hardware drivers and Rapture3D's OpenAL driver. A compatibility environment variable is provided to restore the old no-op behavior for any app that behaves badly from this change (set __ALSOFT_SUSPEND_CONTEXT to "ignore"). If too many apps have a problem with this, the default behavior may need to be changed to ignore, with the env var providing an option to defer/batch instead.
* Add a helper to search for a channel index by nameChris Robinson2014-10-021-0/+2
|
* Copy the null terminator from the string instead of appending itChris Robinson2014-09-301-4/+1
|
* Invert the ChannelOffsets arrayChris Robinson2014-09-101-51/+51
|
* Remove the GetLatency method from the old BackendFuncsChris Robinson2014-09-081-6/+1
|
* Convert the winmm backend to the new backend APIChris Robinson2014-09-081-1/+1
|
* Use al_calloc/al_free to allocate contexts and voicesChris Robinson2014-08-301-6/+6
|
* Setup the HRTF format before tracing the pre-reset formatChris Robinson2014-08-291-17/+17
|
* Return the correct default capture device nameChris Robinson2014-08-261-1/+1
|
* Convert the wave writer backend to the new APIChris Robinson2014-08-241-1/+1
|
* Rename activesource to voiceChris Robinson2014-08-211-17/+16
|
* Use an array of objects for active sources instead of pointersChris Robinson2014-08-211-10/+3
|
* Use a NULL source for inactive activesourcesChris Robinson2014-08-211-2/+6
| | | | Also only access the activesource's source field once per update.