aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Clarify argument errors in makehrtfChris Robinson2017-08-201-8/+8
|
* Ensure the arglist is properly terminatedChris Robinson2017-08-201-3/+2
|
* Print the input and output filenames in makehrtfChris Robinson2017-08-201-2/+2
|
* Remove the -m command from makehrtfChris Robinson2017-08-201-44/+15
| | | | | It only ever outputs mhr files, so there's no need to have a command for it. If another output format is ever made, it can be a normal option flag.
* Properly add getopt.c to makehrtfChris Robinson2017-08-201-2/+3
|
* Use getopt to handle options in makehrtfChris Robinson2017-08-205-72/+260
|
* Improve unicode handling for makehrtfChris Robinson2017-08-202-1/+86
| | | | | | | Command line parameters and filenames are now unicode-aware (the .def files should be UTF-8 encoded, if they contain any non-ASCII-7 characters). Unicode characters might not display correctly in the console, but it should process them correctly.
* Properly clear the extra ChannelsPerOrder entriesChris Robinson2017-08-191-1/+1
|
* Add a function to multiply a complex with a scalarChris Robinson2017-08-181-16/+12
|
* Pass the filter entry to apply to resample_fir4Chris Robinson2017-08-186-10/+8
|
* Show progress when processing HRTFsChris Robinson2017-08-181-2/+28
|
* Use a proper complex number types in makehrtfChris Robinson2017-08-181-112/+114
|
* Simplify bsincgen's Kaiser functionChris Robinson2017-08-181-8/+3
|
* "Unfix" the filter length calculationChris Robinson2017-08-181-3/+3
| | | | | | | | Partially reverts 3f3a3ac4f1d069542ca2399a8b5e63d9d1a4df3b. The l*2 + 1 is correct when you want an odd number of sample points, which avoids an unnecessary phase offset in the fitler. However, the rounding is still needed to calculating the left offset (l), or else the transition width can increase with an odd-numbered order.
* Keep bsinc filter quality more consistent between scalesChris Robinson2017-08-172-551/+553
| | | | | | | 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.
* Workaround Android not having log2Chris Robinson2017-08-171-0/+4
|
* Properly calculate the filter sizeChris Robinson2017-08-171-3/+4
|
* Correct the bsinc filter orderChris Robinson2017-08-172-969/+970
| | | | | | 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-162-2/+2
|
* Store the sinc4 table in the filter stateChris Robinson2017-08-1611-92/+123
| | | | Also rename the resampler functions to remove the unnecessary '32' token.
* Simplify bsinc filter storage in the filter stateChris Robinson2017-08-165-30/+23
| | | | | | | 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-163-1085/+1307
| | | | | | | | | | | | | | | | 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-155-1032/+1061
|
* 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-082-11/+272
| | | | | | | 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-073-15/+25
|
* Replace makehrtf's ditherChris Robinson2017-08-013-14/+22
| | | | | This uses a custom RNG instead of relying on the system-dependent rand(). It also removes the high-pass/noise-shaping, to flatten the noise floor.
* Add a front-stablizer config option for surround sound modesChris Robinson2017-07-316-0/+121
| | | | | | | | | | | | 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.
* Release 1.18.1openal-soft-1.18.1Chris Robinson2017-07-292-2/+2
|
* Cleanup output write functionsChris Robinson2017-07-271-32/+26
|
* Remove unused macrosChris Robinson2017-07-251-4/+0
|
* Update default HRTFsChris Robinson2017-07-252-0/+0
|
* Update makehrtf to use a larger FFT by defaultChris Robinson2017-07-252-75/+61
| | | | Also fixes DC offset removal and increases the max IR size.
* Update ChangeLog with OSS enumeration fixChris Robinson2017-07-231-0/+2
|
* 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
|
* Add missing include for std::arrayChris Robinson2017-07-231-0/+1
|
* Update ChangeLogChris Robinson2017-07-191-0/+4
|
* Fix default effect initializationChris Robinson2017-07-191-28/+11
|
* Add an all-pass filter that replicates the band splitter's phase shiftChris Robinson2017-07-192-0/+51
|
* 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.
* Add a 5.1 preset that excludes the front-center speakerChris Robinson2017-07-181-0/+46
| | | | | | On some speaker setups, the front-center speaker is not designed for full-range content and should be used exclusively for dialog. Consequently it should not be used for positional sounds, only the dedicated dialog effect.
* Apply the output buffer offset before writing to itChris Robinson2017-07-152-25/+25
|
* Set the float PCM GUID for wave files only when outputting floatChris Robinson2017-07-151-2/+3
|