aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/sample_cvt.c
Commit message (Collapse)AuthorAgeFilesLines
* Store mulaw and alaw samples directly in the bufferChris Robinson2018-01-171-2/+2
| | | | | | | They're now decompressed on the fly in the mixer. This is not a significant performance issue given that it only needs a 512-byte lookup table, and the buffer stores half as much data (it may actually be faster, requiring less overall memory).
* Define DECL_VLA where it's usedChris Robinson2018-01-161-0/+7
|
* Use ALsizei for some count/length variablesChris Robinson2018-01-151-37/+37
|
* Convert float samples to integer using a power-of-2 multipleChris Robinson2017-03-311-6/+8
|
* Remove the (u)byte3 sample formatsChris Robinson2017-03-311-111/+1
| | | | | They're not accessible since the removal of the buffer_samples extension, and were kind of clunky to work with as 24-bit packed values.
* Convert integer samples to float using a power-of-2 divisorChris Robinson2017-03-311-7/+7
| | | | | | | This should cut down on unnecessary quantization noise (however minor) for 8- and 16-bit samples. Unfortunately a power-of-2 multiple can't be used as easily for converting float samples to integer, due to integer types having a non- power-of-2 maximum amplitude (it'd require more per-sample clamping).
* Reorganize sample type conversion functionsChris Robinson2016-08-311-286/+129
| | | | To help avoid redundant manual definitions.
* Add some asserts to verify block alignment for conversionChris Robinson2014-05-201-0/+8
|
* Use C11's static_assert when availableChris Robinson2014-04-071-2/+2
|
* Use C99 VLA instead of alloca when availableChris Robinson2014-03-251-8/+4
|
* Use the correct array sizeChris Robinson2014-03-081-2/+2
|
* Improve int-to-float and uint-to-float conversionsChris Robinson2014-03-081-2/+2
|
* Only sign-expand the nibble when neededChris Robinson2014-03-061-4/+3
|
* Move the sample conversion routines to a separate fileChris Robinson2014-03-051-0/+1266