Chris Robinson
fc8da0c16b
Add missing include
2018-12-08 13:06:31 -08:00
Chris Robinson
5a9a2cb1ed
Increase GAIN_MIX_MAX
2018-12-08 04:10:59 -08:00
Chris Robinson
9e9b771e8a
A bit more cleanup
2018-12-08 04:10:45 -08:00
Chris Robinson
5ea3c8fb60
Use member functions for BFormatDec and AmbiUpsampler
2018-12-08 02:50:34 -08:00
Chris Robinson
7695afe0cb
Clean up some more loops
2018-12-08 02:15:00 -08:00
Chris Robinson
a603cc906f
Inline a simple method
2018-12-08 00:08:39 -08:00
Chris Robinson
ab5a11d5f3
Avoid using the deprecated mem_fun_ref method
2018-12-07 21:46:22 -08:00
Chris Robinson
6e4c856257
Add fourth-order methods to the NFC filter
...
Unused, but it finishes out the currently possible implementations.
2018-12-07 18:38:56 -08:00
Chris Robinson
0f24139b57
Use a constructor instead of a macro to initialize AsyncEvent
2018-12-06 22:24:20 -08:00
Chris Robinson
42d26472eb
Remove some more explicit loops
2018-12-05 17:11:33 -08:00
Chris Robinson
e60d0886d0
Use class methods for BandSplitter and SplitterAllpass filters
2018-12-05 15:38:05 -08:00
Chris Robinson
10b39d57d5
Use class methods for the NFC filters
2018-12-05 15:20:52 -08:00
Chris Robinson
164a86a381
Use class methods for the biquad filter
2018-12-04 22:31:08 -08:00
Chris Robinson
36a8b615c8
Avoid using AL types with the filters
2018-12-04 20:55:10 -08:00
Chris Robinson
2a30ae3807
Avoid some more explicit loops in the filters
2018-12-04 20:35:23 -08:00
Chris Robinson
3866c9f941
Avoid more explicit loops
2018-12-04 19:45:11 -08:00
Chris Robinson
a94bfd3ec9
Increase the async event queue size
2018-12-04 16:38:22 -08:00
Chris Robinson
6409910543
Handle EventType_BufferCompleted uniquely
2018-12-04 16:33:26 -08:00
Chris Robinson
f79b0e24d4
Avoid a few more explicit loops
2018-12-04 15:30:39 -08:00
Chris Robinson
a0967967de
Read atomic variables in the reverse order they're set
2018-12-04 14:48:08 -08:00
Chris Robinson
31b54eb86a
Avoid a few more explicit loops
2018-12-03 01:41:52 -08:00
Chris Robinson
85e83bbdff
Use a std::string for the source state change message
2018-12-02 19:34:09 -08:00
Chris Robinson
45b65366bb
Improve some checks for compiler analysis
2018-12-02 15:29:26 -08:00
Chris Robinson
60254488e9
Add a couple missing source lock guards
2018-12-02 14:36:53 -08:00
Chris Robinson
4e17ad3ec0
Avoid a few more explicit loops
2018-12-02 13:35:07 -08:00
Chris Robinson
607fb3e632
Use a lambda to apply the NFC mixes
2018-12-01 23:25:34 -08:00
Chris Robinson
e1af866a3d
Rework source sample counting for mixing a bit
2018-12-01 13:47:56 -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
cc161fe7c1
Add a missing include
2018-12-01 01:12:05 -08:00
Chris Robinson
7b1548af3c
Handle source state changed events uniquely in the event loop
...
To avoid the need of constructing the string in the mixer thread, which is
commonly formatted anyway.
2018-11-30 21:39:59 -08:00
Chris Robinson
1e6e84374b
Use std::array for the voice's PrevSamples
2018-11-30 21:23:43 -08:00
Chris Robinson
c7569c31ad
Improve construction and destruction of ALvoices
2018-11-30 19:04:38 -08:00
Chris Robinson
4b7ac4a6ed
Don't bother making ALvoiceProps dynamically sized
2018-11-30 16:56:23 -08:00
Chris Robinson
364850e8f9
Move a variable declaration to a more appropriate place
2018-11-30 10:08:18 -08:00
Chris Robinson
b582f1346a
Avoid hard-coding a couple sizes
2018-11-29 22:56:33 -08:00
Chris Robinson
8ca8da30bd
Store the source ID with the voice instead of the source pointer
2018-11-29 22:49:01 -08:00
Chris Robinson
0d2bbe17f2
Rename a function for consistency
2018-11-29 13:34:06 -08:00
Chris Robinson
c5d5d574e6
Reorganize some device members
2018-11-29 13:10:46 -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
5df89c504e
Remove an improper Connected check
2018-11-28 19:29:20 -08:00
Chris Robinson
38f4a0cf2c
Avoid the update size going to 0 with a relatively large device period
2018-11-28 18:45:35 -08:00
Chris Robinson
c3c0a5022a
Don't bother with (really) old pulseaudio headers
2018-11-28 15:09:19 -08:00
Chris Robinson
14d746e7c2
Don't sever a paused source from its voice on disconnect
2018-11-28 14:38:26 -08:00
Chris Robinson
598851fed7
Attempt to reconnect lost devices with alcResetDeviceSOFT
...
Be aware there's currently possible race conditions with PulseAudio's callbacks
(the state callbacks need to be cleared while not playing).
Also paused sources will assert/crash if attempted to play again without being
explicitly stopped or rewound first.
Both of these will eventually be fixed (though a paused source's offset will be
lost regardless).
2018-11-28 12:24:12 -08:00
Chris Robinson
16aa3ab196
Reduce some indentation
2018-11-28 11:55:43 -08:00
Chris Robinson
ed2e456dfb
Avoid some explicit loops
2018-11-28 11:30:44 -08:00
Chris Robinson
8d95b6a0f2
Avoid an unnecessary lambda
2018-11-28 08:42:30 -08:00
Chris Robinson
ec2927cd32
Small cleanup for ~ALCcontext_struct
2018-11-27 21:19:30 -08:00
Chris Robinson
ff8c694957
Clean up the JACK backend
2018-11-27 20:29:54 -08:00