Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Automatically generate the bsinc table when building | Chris Robinson | 2017-08-28 | 5 | -6718/+434 |
| | | | | | This makes bsincgen a native tool like bin2h, so it can run automatically when compiling. | ||||
* | Ensure some macros have the correct size | Chris Robinson | 2017-08-28 | 2 | -1/+8 |
| | |||||
* | Rename resampler labels | Chris Robinson | 2017-08-27 | 2 | -6/+6 |
| | |||||
* | Add bsinc24 to alsoft-config | Chris Robinson | 2017-08-27 | 1 | -1/+5 |
| | |||||
* | Add a higher quality bsinc resampler using 24 sample points | Chris Robinson | 2017-08-27 | 8 | -23/+1342 |
| | | | | | | | 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. | ||||
* | Properly open the output file for writing | Chris Robinson | 2017-08-27 | 1 | -1/+1 |
| | |||||
* | Avoid including AL headers in makehrtf | Chris Robinson | 2017-08-27 | 1 | -7/+17 |
| | |||||
* | Use a common header for Unicode-awareness on Windows | Chris Robinson | 2017-08-27 | 3 | -159/+95 |
| | |||||
* | Allow specifying the output filename with bsincgen | Chris Robinson | 2017-08-26 | 2 | -31/+143 |
| | |||||
* | Always declare a native-tools build target | Chris Robinson | 2017-08-26 | 2 | -34/+40 |
| | |||||
* | Rename the bsinc resampler to bsinc12 | Chris Robinson | 2017-08-25 | 7 | -75/+78 |
| | |||||
* | Constify some pointers | Chris Robinson | 2017-08-23 | 3 | -3/+3 |
| | |||||
* | Parameterize the filter order and rejection in bsincgen | Chris Robinson | 2017-08-23 | 1 | -28/+29 |
| | |||||
* | Parameterize the bsinc table name | Chris Robinson | 2017-08-22 | 1 | -8/+9 |
| | |||||
* | Install the itu5.1-nocenter.ambdec preset | Chris Robinson | 2017-08-21 | 1 | -0/+1 |
| | |||||
* | Properly postfix the filter order number | Chris Robinson | 2017-08-21 | 1 | -2/+6 |
| | |||||
* | Meters per unit can't be 0 | Chris Robinson | 2017-08-21 | 1 | -2/+2 |
| | |||||
* | 0 meters per unit is invalid | Chris Robinson | 2017-08-21 | 2 | -3/+3 |
| | |||||
* | Properly check if a pointer is different when cleaning it up | Chris Robinson | 2017-08-20 | 1 | -2/+2 |
| | |||||
* | Fix -l switch | Chris Robinson | 2017-08-20 | 1 | -1/+1 |
| | |||||
* | Clarify argument errors in makehrtf | Chris Robinson | 2017-08-20 | 1 | -8/+8 |
| | |||||
* | Ensure the arglist is properly terminated | Chris Robinson | 2017-08-20 | 1 | -3/+2 |
| | |||||
* | Print the input and output filenames in makehrtf | Chris Robinson | 2017-08-20 | 1 | -2/+2 |
| | |||||
* | Remove the -m command from makehrtf | Chris Robinson | 2017-08-20 | 1 | -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 makehrtf | Chris Robinson | 2017-08-20 | 1 | -2/+3 |
| | |||||
* | Use getopt to handle options in makehrtf | Chris Robinson | 2017-08-20 | 5 | -72/+260 |
| | |||||
* | Improve unicode handling for makehrtf | Chris Robinson | 2017-08-20 | 2 | -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 entries | Chris Robinson | 2017-08-19 | 1 | -1/+1 |
| | |||||
* | Add a function to multiply a complex with a scalar | Chris Robinson | 2017-08-18 | 1 | -16/+12 |
| | |||||
* | Pass the filter entry to apply to resample_fir4 | Chris Robinson | 2017-08-18 | 6 | -10/+8 |
| | |||||
* | Show progress when processing HRTFs | Chris Robinson | 2017-08-18 | 1 | -2/+28 |
| | |||||
* | Use a proper complex number types in makehrtf | Chris Robinson | 2017-08-18 | 1 | -112/+114 |
| | |||||
* | Simplify bsincgen's Kaiser function | Chris Robinson | 2017-08-18 | 1 | -8/+3 |
| | |||||
* | "Unfix" the filter length calculation | Chris Robinson | 2017-08-18 | 1 | -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 scales | Chris Robinson | 2017-08-17 | 2 | -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 log2 | Chris Robinson | 2017-08-17 | 1 | -0/+4 |
| | |||||
* | Properly calculate the filter size | Chris Robinson | 2017-08-17 | 1 | -3/+4 |
| | |||||
* | Correct the bsinc filter order | Chris Robinson | 2017-08-17 | 2 | -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 static | Chris Robinson | 2017-08-16 | 2 | -2/+2 |
| | |||||
* | Store the sinc4 table in the filter state | Chris Robinson | 2017-08-16 | 11 | -92/+123 |
| | | | | Also rename the resampler functions to remove the unnecessary '32' token. | ||||
* | Simplify bsinc filter storage in the filter state | Chris Robinson | 2017-08-16 | 5 | -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 efficient | Chris Robinson | 2017-08-16 | 3 | -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 struct | Chris Robinson | 2017-08-15 | 5 | -1032/+1061 |
| | |||||
* | Check the source type once when mixing | Chris Robinson | 2017-08-14 | 1 | -2/+4 |
| | |||||
* | Add restrict to a few more parameters | Chris Robinson | 2017-08-10 | 1 | -2/+4 |
| | |||||
* | Check the right size for the in-progress mhr update | Chris Robinson | 2017-08-09 | 1 | -2/+2 |
| | |||||
* | Declare that a couple arrays are aligned | Chris Robinson | 2017-08-09 | 1 | -3/+6 |
| | |||||
* | Add experimental support for 24-bit, dual-ear HRTFs | Chris Robinson | 2017-08-08 | 2 | -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 function | Chris Robinson | 2017-08-07 | 3 | -15/+25 |
| | |||||
* | Replace makehrtf's dither | Chris Robinson | 2017-08-01 | 3 | -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. |