aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
Commit message (Collapse)AuthorAgeFilesLines
* It's getFactory that may be NULL, not its return value...Chris Robinson2017-11-261-3/+4
|
* Don't probe a NULL backend factoryChris Robinson2017-11-261-2/+2
|
* Properly initialize with the default distance modelChris Robinson2017-10-291-6/+3
|
* Enable NFC filters for HRTFChris Robinson2017-10-231-0/+2
| | | | Only applies to the Ambisonic mix (basic HRTF rendering, or B-Format buffers).
* Store the HRTF distance in the Hrtf handleChris Robinson2017-10-232-8/+13
|
* Update mhr format for 24-bit, multi-field, stereo measurementsChris Robinson2017-10-221-44/+83
| | | | | Currently only single field HRTFs are supported, but the format now allows up to 16.
* Add casts for assigning the SSE bsinc filter pointersChris Robinson2017-10-071-4/+4
|
* Avoid a separate function to query ambisonic mode supportChris Robinson2017-09-271-26/+10
| | | | | | Now FuMa and ACN channel orders are required, as are FuMa, SN3D, and N3D normalization schemes. An integer query (alcGetIntegerv) is added for the maximum ambisonic order.
* Re-update effect slots when context properties changeChris Robinson2017-09-272-78/+91
| | | | | Also keep all free property update structs together in the context instead of per-object.
* Don't update context and listener props unnecessarilyChris Robinson2017-09-271-2/+9
|
* Update the context state properties separatelyChris Robinson2017-09-272-34/+69
| | | | | | | | | | | | | The context state properties are less likely to change compared to the listener state, and future changes may prefer more infrequent updates to the context state. Note that this puts the MetersPerUnit in as a context state, even though it's handled through the listener functions. Considering the infrequency that it's updated at (generally set just once for the context's lifetime), it makes more sense to put it there than with the more frequently updated listener properties. The aforementioned future changes would also prefer MetersPerUnit to not be updated unnecessarily.
* Restore the original JACK message callback when possibleChris Robinson2017-09-231-1/+9
|
* Add an option to ignore the app's speed of sound for reverb decayChris Robinson2017-09-223-4/+17
|
* Merge pull request #149 from dscharrer/masterkcat2017-09-211-0/+1
|\ | | | | Fix build on Gentoo FreeBSD with freebsd-lib 9.1
| * Fix build on Gentoo FreeBSD with freebsd-lib 9.1Daniel Scharrer2017-09-211-0/+1
| |
* | Use the app-specified speed of sound for reverb decayChris Robinson2017-09-212-5/+9
| | | | | | | | | | Specifically, the initial reverb decay as determined by the source distance, and the reverb decayhf limit from air absorption.
* | Pass the context to the auxiliary effect update methodChris Robinson2017-09-2111-44/+53
|/
* Manually save and restore the FPU rounding mode on WindowsChris Robinson2017-09-191-0/+10
| | | | | | | Apparently there is a bug with at least MinGW-W64 where fegetenv and fesetenv do not properly save and restore the FPU rounding mode, resulting in the rounding mode remaining as round-to-zero after certain function calls. I do not know if this also affects MSVC, but better safe than sorry for now.
* Avoid some extraneous load callsChris Robinson2017-08-302-26/+23
| | | | | This likely doesn't change anything given a working optimizer, but it cleans up the code some.
* Automatically generate the bsinc table when buildingChris Robinson2017-08-282-6703/+1
| | | | | This makes bsincgen a native tool like bin2h, so it can run automatically when compiling.
* Ensure some macros have the correct sizeChris Robinson2017-08-281-0/+4
|
* Add a higher quality bsinc resampler using 24 sample pointsChris Robinson2017-08-274-11/+1319
| | | | | | | This improves the transition width, allowing more of the higher frequencies remain audible. It would be preferrable to have an upper limit of 32 points instead of 48, to reduce the overall table size and the CPU cost for down- sampling.
* Rename the bsinc resampler to bsinc12Chris Robinson2017-08-254-25/+26
|
* Constify some pointersChris Robinson2017-08-233-3/+3
|
* Meters per unit can't be 0Chris Robinson2017-08-211-2/+2
|
* 0 meters per unit is invalidChris Robinson2017-08-211-2/+2
|
* Properly clear the extra ChannelsPerOrder entriesChris Robinson2017-08-191-1/+1
|
* Pass the filter entry to apply to resample_fir4Chris Robinson2017-08-185-7/+6
|
* Keep bsinc filter quality more consistent between scalesChris Robinson2017-08-171-544/+544
| | | | | | | This generates the filters using the proper size and scale. The 'a' divisor should represent the +/- sample range (and thus be a whole number), with the number of sample points being double that. Increasing the filter size to a multiple of 4 (for SIMD) can be done by padding in 0s afterward.
* Correct the bsinc filter orderChris Robinson2017-08-171-963/+963
| | | | | | Despite the claim that it was an 11th order filter, the transition width was generated by specifying 12th order. A 12th order filter would need 14 sample points rather than the 12 it had.
* Make the sinc4 table staticChris Robinson2017-08-161-1/+1
|
* Store the sinc4 table in the filter stateChris Robinson2017-08-1610-85/+112
| | | | Also rename the resampler functions to remove the unnecessary '32' token.
* Simplify bsinc filter storage in the filter stateChris Robinson2017-08-164-24/+18
| | | | | | | Rather than storing individual pointers to filter, scale delta, phase delta, and scale phase delta entries, per phase index, the new table layout makes it trivial to access the per-phase filter and delta entries given the base offset and coefficient count.
* Make the bsinc table layout more efficientChris Robinson2017-08-162-986/+1287
| | | | | | | | | | | | | | | | The old layout separated filters, scale deltas, phase deltas, and scale phase deltas into separate segments that each contained a numbers of scale and phase entries, Since processing a sample needed a filter and one of each delta entry relating to a particular scale and phase, the memory needed would be spread across the whole table. And since subsequent samples would use a different phase, it would jump around the table a whole lot as well. The new layout packs the data in a way more consistent with its use. The filters, scale deltas, phase deltas, and scale phase deltas are interleaved, such that for a particular scale and phase, the filter and delta entries used are contiguous. And the phase entries for a particular scale are kept together, so the ~500 to ~1000 samples processed per source update stay within the same 3KB to 6KB area of the 70+KB table, which is much more cache friendly.
* Keep bsinc info together in a structChris Robinson2017-08-152-992/+999
|
* Check the source type once when mixingChris Robinson2017-08-141-2/+4
|
* Add restrict to a few more parametersChris Robinson2017-08-101-2/+4
|
* Check the right size for the in-progress mhr updateChris Robinson2017-08-091-2/+2
|
* Declare that a couple arrays are alignedChris Robinson2017-08-091-3/+6
|
* Add experimental support for 24-bit, dual-ear HRTFsChris Robinson2017-08-081-3/+230
| | | | | | | Currently makehrtf only handles 24-bit output, not dual-ear, and only when given the --experimental switch. Files produced this way will not be guaranteed future compatibility. When the mhr format is also updated with multi-distance measurements, the experimental switch can go away.
* Avoid re-selecting the direct HRTF mix functionChris Robinson2017-08-072-15/+23
|
* Add a front-stablizer config option for surround sound modesChris Robinson2017-07-314-0/+110
| | | | | | | | | | | | 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-313-7/+5
|
* 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.
* Cleanup output write functionsChris Robinson2017-07-271-32/+26
|
* Remove unused macrosChris Robinson2017-07-251-4/+0
|
* Update makehrtf to use a larger FFT by defaultChris Robinson2017-07-251-1/+1
| | | | Also fixes DC offset removal and increases the max IR size.
* Downgrade some ERRs to TRACEsChris Robinson2017-07-231-2/+2
| | | | | These don't exist outside OSSv4, e.g. with OSS/Free, padsp, or aoss, so no need to be concerned.
* Make sure OSS device files exist before adding themChris Robinson2017-07-231-2/+10
|