39 Commits

Author SHA1 Message Date
Chris Robinson
fa64b1fd6d Fix implicit conversions in the effects 2019-09-14 12:16:51 -07:00
Chris Robinson
6699f3cf1c Use unsigned channel indices 2019-09-12 04:17:21 -07:00
Chris Robinson
5b6772440a Remove a couple unnecessary variables 2019-08-27 12:31:19 -07:00
Chris Robinson
b5a6dcc14f Remove some unnecessary local spans 2019-08-26 11:02:09 -07:00
Chris Robinson
7dbf69afa2 Use a span for effect state input 2019-08-26 09:16:20 -07:00
Chris Robinson
e165cae3cd Fade reverb over the whole update
Since the early and late panning gains fade over the course of the update, it
should match the fading done by the feedback loops to avoid percussive "blasts"
when transitioning to a long-decay low-gain environment from a short-decay
high-gain environment.
2019-08-24 16:25:56 -07:00
Chris Robinson
02d38091c8 Make a couple functions into member functions 2019-08-23 15:34:45 -07:00
Chris Robinson
bb46cec0b1 Pass samplesToDo as size_t to effects 2019-08-20 14:30:04 -07:00
Chris Robinson
a19f65f2c8 Use size_t for reverb offsets and masks 2019-08-20 11:13:19 -07:00
Chris Robinson
9e326846f6 Simplify passing some span parameters 2019-08-20 10:36:17 -07:00
Chris Robinson
a3a295f6dc Try to fix span construction for MSVC 2019-08-20 09:31:08 -07:00
Chris Robinson
7a8f81259c Use size_t for the NFC and biquad filters' sample count 2019-08-20 05:26:51 -07:00
Chris Robinson
102ef6cb33 Pass a span for the Mix function's input 2019-08-20 04:16:44 -07:00
Chris Robinson
8fd90334a1 Pass the MixRow buffer size as a span 2019-08-20 00:27:28 -07:00
Chris Robinson
34a61122f6 Change NUM_LINES to a size_t for MSVC 2019-08-19 09:49:01 -07:00
Chris Robinson
34331c0dfa Fix for GCC5 decaying an array to a pointer 2019-08-19 09:14:54 -07:00
Chris Robinson
c0cd43d100 More logically separate temp reverb buffers 2019-08-19 08:46:57 -07:00
Chris Robinson
2d0568c048 Allow using a variable channel stride for MixRowSamples 2019-08-19 08:02:08 -07:00
Chris Robinson
6629b65ab9 Formatting cleanup 2019-08-18 15:25:18 -07:00
Chris Robinson
4f4ef3a410 Don't require MixRow's output to be a FloatBufferLine 2019-08-18 15:15:56 -07:00
kcat
6750907bdd
Merge pull request #329 from Raulshc/fshifter
EFX: Update Frequency shifter
2019-08-18 15:15:19 -07:00
Raulshc
eaaa194163 EFX: Update Frequency shifter
Add f. shifter processing for L and R channels.
2019-08-18 19:28:00 +02:00
Raulshc
550f1dce1f Move double2int function
Move inline double2int function to alnumeric.h from pshifter.cpp
2019-08-18 19:12:38 +02:00
Chris Robinson
ff66061091 Reduce the size of reverb's temporary buffer storage
The size of ReverbState is now almost half of what it was.
2019-08-18 03:19:19 -07:00
Chris Robinson
16886bd259 Avoid an out parameter for VectorPartialScatter 2019-08-17 23:00:46 -07:00
Chris Robinson
ddf7e0f07c Use a std::array for the reverb sample buffer 2019-08-17 21:23:30 -07:00
Chris Robinson
98029d64b9 Fix and clarify the peaking biquad filter 2019-08-10 14:41:55 -07:00
Chris Robinson
f900efa7f2 Simplify and fix vocal morpher pitch calculations 2019-08-08 15:22:22 -07:00
Chris Robinson
fb1fde9fb0 Simplify the weighted decay time calculation 2019-08-08 12:44:53 -07:00
Chris Robinson
a4391a213d Turn a couple methods into member functions 2019-08-08 12:40:34 -07:00
Chris Robinson
3154a915b1 Remove the ReverbSpeedOfSound hack
No other effect depends on context or listener properties, so reverb being the
only exception for speed of sound and meters per unit was putting extra work on
the effect engine for no real reason. Especially since the reverb decay time
should be the time actual time to decay irrespective of other settings.
2019-08-05 11:37:05 -07:00
Chris Robinson
2fa2c35bdc Modify LIKELY and UNLIKELY to not need extra parenthesis 2019-08-04 11:59:14 -07:00
Chris Robinson
33bcced82a Use a smart pointer for holding the context's device 2019-08-01 19:44:09 -07:00
Chris Robinson
65f7fc610e Add a common base for auto-deleting ref-counted objects
Which will also work as the basis for a future intrusive_ptr
2019-08-01 13:43:32 -07:00
Chris Robinson
f286c3fa38 Move another function to a ALCcontext method 2019-07-30 21:32:05 -07:00
Chris Robinson
ea76e003e7 Properly prefix ALCcontext members 2019-07-30 09:05:54 -07:00
Chris Robinson
488d1de944 More include cleanup 2019-07-29 19:59:48 -07:00
Chris Robinson
4c9e18c5a0 Rename al/* sources to avoid camel-case 2019-07-29 17:54:07 -07:00
Chris Robinson
cb3e96e756 Rename Alc to alc 2019-07-28 18:56:04 -07:00