Chris Robinson
c6f3a4e062
Move a couple inline functions into the header
2009-06-07 20:16:41 -07:00
Chris Robinson
87ed53c7f6
Don't read deprecated config files
2009-06-07 20:12:01 -07:00
Alam Arias
89e9437b84
add check for _WAVEFORMATEXTENSIBLE_ and define _WIN32_IE before inlcuding any header
2009-06-07 19:43:42 -07:00
Chris Robinson
1454c46b5f
Use a thread-safe static inline function for printing
2009-06-07 15:42:15 -07:00
Chris Robinson
0fac1e9115
Store the max number of auxiliary slots in the device
2009-06-07 14:53:22 -07:00
Chris Robinson
f3a3358e63
Fix for MSVC
...
MSVC won't accept zero-sized arrays at the end of structs, if that struct is
used in another struct that's not also at the end. This wastes a float for each
FILTER object
2009-06-06 23:33:53 -07:00
Chris Robinson
3c122b0bef
Set an error if effect creation fails
2009-05-31 11:54:49 -07:00
Chris Robinson
7940003d06
Set an error if NaN is given for panning values
2009-05-31 11:34:07 -07:00
Chris Robinson
45b16ff456
Use the generic FILTER object for the master effect filter
...
Also fix a couple comments
2009-05-30 12:54:53 -07:00
Chris Robinson
9341f4f884
Fixup panning gain calculations
...
Clamp the panning vector magnitude to 1, and use an energy-reduction method as
the vector magnitude increases (to simulate reverb area occlusion)
2009-05-30 00:32:17 -07:00
Chris Robinson
2c20f26784
Apply slot gain on slot output, not input
2009-05-29 16:51:00 -07:00
Chris Robinson
2a21a449b4
Slot gain changes should have an immediate effect
2009-05-29 13:50:58 -07:00
Chris Robinson
74dc7090fd
Don't expose effect-specific structures
2009-05-29 13:30:50 -07:00
Chris Robinson
e12ac95d69
Use the MIN/MAX/DEFAULT macros for checking and setting the effect parameters
2009-05-29 12:40:08 -07:00
Chris Robinson
34ea7eba9e
Add preliminary support for the EAX Reverb effect
...
Not all parameters are supported yet, though it is a little more fuctional than
standard reverb
2009-05-29 01:32:54 -07:00
Chris Robinson
6d3ba44f55
Don't update the devicevalues before returning success
2009-05-27 07:02:33 -07:00
Chris Robinson
5a8ad67660
Lock the context before getting the mmap region to update
2009-05-26 14:54:59 -07:00
Chris Robinson
f1e442408b
Set the correct data size
2009-05-26 14:51:57 -07:00
Chris Robinson
a946af4463
Simplify ALSA PCM parameter retrieval
2009-05-26 10:08:27 -07:00
Chris Robinson
e01cd92d56
Set avail_min so snd_pcm_wait will wait for the full update to be ready
2009-05-26 10:03:17 -07:00
Chris Robinson
923af8c3a6
Don't update the source's gains in the sample mixing loop
...
Update copies stored on the stack instead, then update the source after mixing
2009-05-26 09:23:49 -07:00
Chris Robinson
ac04cf57fa
Make sure _CRT_SECURE_NO_WARNINGS is always defined for MSVC
2009-05-26 06:02:40 -07:00
Chris Robinson
1f6c4e01db
Properly fall back to non-mmap capture if the parameters fail
2009-05-25 16:06:03 -07:00
Chris Robinson
04135723a2
Get rid of the ugly ok() macro
2009-05-25 13:07:49 -07:00
Chris Robinson
93fbdb1e6c
Redo OSS mixing loop
2009-05-25 12:12:37 -07:00
Chris Robinson
c1de15f840
Update in descrete amounts using the update size
2009-05-25 12:01:14 -07:00
Chris Robinson
3be399c555
Do not open pulseaudio if it didn't load
2009-05-19 06:37:22 -07:00
Chris Robinson
1f5453075c
Dynamically load PulseAudio
2009-05-19 06:35:12 -07:00
Chris Robinson
33a74f1594
Clear the filter history directly
2009-05-17 22:50:07 -07:00
Chris Robinson
e4da1224cb
Optionally install the sample configuration file
2009-05-17 22:36:45 -07:00
Chris Robinson
5c2a47620c
Reformat the sample config file
2009-05-17 22:24:29 -07:00
Chris Robinson
1bfa7609d2
Make the filter functions global inline, and use it for echo
2009-05-16 23:34:26 -07:00
Chris Robinson
7e8501123a
Set some common macros in alu.h
2009-05-16 23:26:39 -07:00
Chris Robinson
c447eeb2c7
Use the source reference distance to specify full panning magnitude
...
Sources that are closer than the specified reference distance will not pan to
full magnitude, thus providing a smoother transition as it moves around near
the listener
2009-05-16 03:54:16 -07:00
Chris Robinson
ad19cea6e0
Make sure DSSPEAKER_5POINT1 is defined
2009-05-14 05:24:18 -07:00
Chris Robinson
0ce29863e3
Prevent spawning PulseAudio if it's not already running
2009-05-06 00:19:35 -07:00
Chris Robinson
7a7a4844f4
Make the filter history buffer size flexible
...
This lets the filter history buffer be as big as needed for a given use, so
that it can have a size large enough for the more demanding cases, but not be
wasteful for lesser-demanding cases, while not incuring the overhead of an
added pointer indirection
2009-04-16 05:43:09 -07:00
Chris Robinson
a2adbb1ab5
Add a PulseAudio backend
2009-04-16 05:17:42 -07:00
Chris Robinson
a97fc792d8
Increase the default maximum number of sends to 2
2009-04-14 22:18:47 -07:00
Chris Robinson
e9a6a1d6f5
Use a 2-pole filter for the wet path low-pass filter
...
This should help keep CPU use from increasing a lot when the number of sends
increases. Also changes the function names to reflect the difference
2009-04-14 22:04:18 -07:00
Chris Robinson
f245f0ef87
Make the number of source sends variable
...
The highest value is clamped to MAX_SENDS
2009-04-13 20:33:41 -07:00
Chris Robinson
a30f431b63
Reduce the number of send loops
2009-04-13 02:50:40 -07:00
Chris Robinson
58f48f20e2
Rename Standard Reverb to Reverb
2009-04-13 02:01:21 -07:00
Chris Robinson
ee1b02b709
Fix comment regarding the 3rd echo tap
2009-04-12 18:54:26 -07:00
Chris Robinson
55c790c9ff
Add the Echo effect
2009-04-12 16:01:10 -07:00
Chris Robinson
65b69f3308
Fix air absorption
2009-04-11 20:27:55 -07:00
Chris Robinson
c67fbd72dd
Pay attention to the MAX_SENDS value
2009-04-11 20:04:46 -07:00
Chris Robinson
30f57d0824
Make auxiliary effect slot count configurable
2009-04-11 18:16:05 -07:00
Chris Robinson
1c54018111
Move the WetBuffer into the effect slot object
...
This should make it easier to support multiple slots
2009-04-11 17:04:55 -07:00
Chris Robinson
e80e1b6d9f
Use LIB_SUFFIX when creating the default lib install dir
...
Thanks to Hanno Böck for pointing this out
2009-04-07 12:11:41 -07:00