20 Commits

Author SHA1 Message Date
Chris Robinson
2b19c53ece Use al::byte instead of ALbyte for raw bytes 2019-06-17 20:26:00 -07:00
Chris Robinson
55785c0a16 Use al::make_unique for ChannelConverter 2019-06-17 20:15:37 -07:00
Chris Robinson
21b8571f50 Avoid an implied else if check 2019-06-16 22:45:07 -07:00
Chris Robinson
a478fd4b25 Fix unsigned short/int sample converters
And add const/noexcept in some places
2019-06-11 14:59:06 -07:00
Chris Robinson
a57116f788 Scale floats directly to 32-bit integer values
Rather than scaling to a 25-bit integer and shifting for the extra 7 bits. This
should improve precision for values closer to 0.
2019-03-25 22:52:15 -07:00
Chris Robinson
69f6f56160 Avoid using internal AL[u]int64 types 2019-02-11 12:16:58 -08:00
Chris Robinson
23179d0bcd Use a template declaration for the resampler functions 2019-01-23 11:11:41 -08:00
Chris Robinson
5b382a69b6 Avoid implicit conversions from signed to unsigned 2019-01-12 18:08:43 -08:00
Chris Robinson
ab16671466 Use a flexible array for HrtfHandle and SampleConverter 2019-01-11 22:09:57 -08:00
Filip Gawin
0d3a0635d9 Avoid using old style casts
To think about:
examples/alffplay.cpp:600
OpenAL32/Include/alMain.h:295
2019-01-08 19:42:44 +01:00
Chris Robinson
bdf7c16cfb Clean up a member name 2018-12-29 13:21:47 -08:00
Chris Robinson
8a84e7b662 Use member functions for the sample and channel converters 2018-12-29 12:26:45 -08:00
Chris Robinson
1a4387d137 Return unique_ptrs instead of raw pointers
For the ring buffer, channel converter, and sample converter.
2018-12-27 12:55:43 -08:00
Chris Robinson
fbae41020d Remove extraneous typedef, struct, and enum keywords 2018-12-24 19:29:01 -08:00
Chris Robinson
255c07def9 Try to pacify MSVC's missing a suitable default constructor 2018-12-01 11:28:11 -08:00
Chris Robinson
57bb467072 Pass the desired resampler to CreateSampleConverter 2018-11-28 23:19:25 -08:00
Chris Robinson
e017d9e40f Clean up the converter a bit 2018-11-28 22:42:46 -08:00
Chris Robinson
9f2a77f788 Use RAII when handling the mixer's FPU state 2018-11-21 09:07:02 -08:00
Chris Robinson
66fdd027d0 Use more C++ templates instead of DECL_TEMPLATE tricks 2018-11-20 03:35:41 -08:00
Chris Robinson
6e6a024058 Convert converter.c to C++ 2018-11-17 07:35:11 -08:00