aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace restrict with RESTRICTChris Robinson2018-10-291-6/+6
|
* Simplify some statementsFilip Gawin2018-10-291-1/+1
|
* Remove another duplicate functionChris Robinson2018-09-191-2/+1
|
* Combine nearly-duplicate structuresChris Robinson2018-09-191-5/+5
|
* Remove a couple duplicate functionsChris Robinson2018-09-191-27/+2
|
* Add macros for commonly used square rootsChris Robinson2018-09-191-3/+3
|
* Use a separate method to warp the azimuth for plain stereo outputChris Robinson2018-08-291-8/+1
|
* Trace the NFC reference distance when setChris Robinson2018-08-031-0/+1
|
* Don't hardcode the max channels for HRTF B-Format decodingChris Robinson2018-05-261-1/+0
|
* Add a function to calculate coefficients from X, Y, Z componentsChris Robinson2018-05-171-6/+3
|
* Use more accurate elevations for virtual HRTF speaker positionsChris Robinson2018-05-141-8/+8
|
* Pass in the number of channels per order to InitNearFieldCtrlChris Robinson2018-05-011-26/+14
|
* Move the bnad-splitter filters to a separate sourceChris Robinson2018-04-211-0/+1
|
* Adjust the stereo panning front gainChris Robinson2018-04-191-2/+2
| | | | This gives it a (more) precise -4.5dB gain drop for front-center panned sounds.
* Don't minimize the HRTF per-response delayChris Robinson2018-04-161-2/+2
| | | | | | The reverts both fa9ab9af7cb559ff9ecc1846f2996265bfbea1ec and 79604c3c0e0f3f71832a09348cc273a38882cc3e. As helpful as it was for the high frequencies, the overall response's gain suffered.
* Limit the near-field control distance to 10m.Chris Robinson2018-03-311-2/+2
|
* Fix HRTF HOA coefficientsChris Robinson2018-03-311-21/+37
| | | | | | ACN8 was accidentally put on ACN7. However, rather than adding the missing channel of silence, set up the coefficient map to only use the ambisonic channels that can contribute to output.
* Reduce the gain of front-panned sounds with plain stereoChris Robinson2018-03-251-2/+2
| | | | | | Now front-center sounds are attenuated by roughly -4.5dB instead of -3dB. This will help keep rear-panned sounds from attenuating too much while not making front-panned also attenuate too much.
* Avoid multiple GetChannelIdxByName callsChris Robinson2018-02-211-18/+20
|
* Use a proper struct for specifying angular pointsChris Robinson2018-02-181-1/+1
|
* Remove the unnecessary ComputeAmbientGainsChris Robinson2018-02-181-26/+0
|
* Preserve RMS for the high-frequency HRTF ambisonic coefficientsChris Robinson2018-02-181-2/+2
|
* Remove an unnecessary comment about if meters_per_unit is > 0Chris Robinson2018-02-181-3/+2
|
* Avoid duplicating some scale tablesChris Robinson2018-02-181-46/+2
|
* Use an alternate ambisonic HRTF decode layoutChris Robinson2018-02-131-48/+67
| | | | | | Similar to the previous, but includes the top and bottom HRTF responses. The higher-order decode (for the "basic" HRTF output) also now uses 2H1P mixed- order instead of 2H1V, which seems more stable.
* Make bformatdec_free and ambiup_free clear the freed pointerChris Robinson2018-02-121-16/+8
|
* Use an alternate virtual layout for Ambisonic HRTF decodingChris Robinson2018-02-101-42/+63
| | | | | This uses 16 channels, an 8-channel octagon + 8-channel cube, which should improve horizontal resolution without affecting vertical too much.
* Clarify some macro names using ambisonic mixed-mode notationChris Robinson2018-02-091-12/+12
|
* Fix up some types for MSVCChris Robinson2018-01-111-1/+1
|
* Move the config function declarations to their own headerChris Robinson2018-01-111-0/+1
| | | | And rename alcConfig.c to alconfig.c for consistency.
* Avoid using macros to access anonymous structuresChris Robinson2018-01-111-13/+16
|
* Enable NFC filters for HRTFChris Robinson2017-10-231-0/+2
| | | | Only applies to the Ambisonic mix (basic HRTF rendering, or B-Format buffers).
* Add a front-stablizer config option for surround sound modesChris Robinson2017-07-311-0/+40
| | | | | | | | | | | | This improves a stereo (front-left + front-right) sound "image" by generating a front-center channel signal. Done correctly, it helps reduce the comb effects and phase errors associated with using only two speakers to simulate center sounds. Note that it shouldn't be used if the front-center channel is already included in the positional audio mix (the dialog effect is okay). In general, it may actually be better to exclude the front-center channel from the positional audio mix and use this to generate front-center output.
* Don't bother returning the IR length for B-Format decodingChris Robinson2017-07-311-3/+2
|
* Print an error if the input channel isn't in the deviceChris Robinson2017-07-311-22/+16
| | | | Rather than the other way around, if a device channel isn't in the channel map.
* Update default 5.1 and 6.1 coefficients to exclude front-centerChris Robinson2017-07-301-15/+12
| | | | | | | Not all speaker kits have a front-center speaker capable of outputing full- range content. It's best to err on the side of caution and not include front- center for normal positional sound by default, leaving it instead for the dedicated dialog effect.
* Scale the source volume by +3dB for a full spreadChris Robinson2017-07-181-6/+7
| | | | | This effectively turns a full spread source into an ambient response, preventing such sources from being unexpectedly quiet.
* Round the B-Format HRTF response where the multiple is definedChris Robinson2017-06-161-3/+0
|
* Don't enable NFC for a 0 reference delayChris Robinson2017-05-141-1/+1
|
* Correctly enable the ambisonic upsampler for HOA outputChris Robinson2017-04-211-1/+1
|
* Check for the upsampler to determine if HRTF uses HOAChris Robinson2017-04-181-15/+12
|
* Use a different way to get the size of structs with flexible array membersChris Robinson2017-04-181-3/+1
|
* Store the ambisonic order separate from the channel enumChris Robinson2017-04-121-19/+12
|
* Don't explicitly restore the old HRTF when initializing panningChris Robinson2017-04-071-12/+0
| | | | Otherwise it won't store the name in the device.
* Clean up a commentChris Robinson2017-04-071-1/+1
|
* Reference count HRTFs and unload them when unusedChris Robinson2017-04-061-2/+30
|
* Load HRTF files as neededChris Robinson2017-04-051-4/+4
| | | | | Currently only applies to external files, rather than embedded datasets. Also, HRTFs aren't unloaded after being loaded, until library shutdown.
* Store the loaded hrtf entry container in the enumerated hrtf entryChris Robinson2017-04-051-6/+8
|
* Rename al_string_* functions to alstr_*Chris Robinson2017-04-041-24/+24
|
* Allocate as many channels for DirectHrtfState as neededChris Robinson2017-03-111-4/+5
|