Chris Robinson
da3b270488
Make OSS's update size dynamic
2008-01-06 00:19:28 -08:00
Chris Robinson
dd60366aec
Fix the buffer size so ALSA doesn't multiply by the number of periods
2008-01-06 00:18:06 -08:00
Chris Robinson
017fc93307
Some non-mmap ALSA fixes
2008-01-05 05:33:54 -08:00
Chris Robinson
042ec206e7
Disable fast float-to-int hack.
...
Even with precautions, it's giving problems. Not worth it since I don't quite
understand how it works, or know if there's even a benefit.
2008-01-05 05:03:31 -08:00
Chris Robinson
b3badbf97d
Use 6 point spatialization for 6.1 and 7.1 output
2008-01-04 14:15:55 -08:00
Chris Robinson
4d5885e27b
Implement a crossfeed config option
2008-01-03 06:02:06 -08:00
Chris Robinson
8fe39042da
Add the Bauer stereophonic-to-binaural DSP (bs2b) code and hooks
2008-01-03 05:36:51 -08:00
Chris Robinson
7ef623c71d
Fail if OSS can't set the requested bit depth and channel count
2008-01-01 06:25:00 -08:00
Chris Robinson
733cd120b3
Fix channel ordering for multichannel buffers
2008-01-01 06:16:19 -08:00
Chris Robinson
9382956b0e
Remove obsolete comment
2007-12-31 06:00:50 -08:00
Chris Robinson
42027a3f94
Advertise the AL_EXT_MCFORMATS extension
2007-12-31 05:52:22 -08:00
Chris Robinson
1397417fcd
Handle AL_FORMAT_REAR* formats
2007-12-31 05:46:20 -08:00
Chris Robinson
c9a539eade
Allow loading of 4, 5.1, 6.1, and 7.1 sample data
2007-12-31 05:06:59 -08:00
Chris Robinson
cb1d62f254
Add paths for 4 to 7.1 channel buffer mixing
2007-12-31 04:50:34 -08:00
Chris Robinson
1cbd625b4e
Disable unnecessary calculations
2007-12-31 03:45:26 -08:00
Chris Robinson
73678f3b78
Allow psuedo 6.1 and 7.1 output
...
This only does spatial calculations on the 4 corner speakers, but it's
necessary groundwork for AL_EXT_MCFORMATS support. Spatial calculations for 6
speakers can be added later.
2007-12-31 03:29:14 -08:00
Chris Robinson
79b95da0a3
Check specific formats before general properties
2007-12-31 02:57:58 -08:00
Chris Robinson
1c85273662
Export float32 formats
2007-12-31 02:55:35 -08:00
Chris Robinson
76dd568971
Add some more formats
2007-12-31 02:53:56 -08:00
Chris Robinson
a43868c32b
Use an enum list for dealing with channels
...
This will make it easier to remap channels, especially the center and lfe channels
2007-12-31 01:47:10 -08:00
Chris Robinson
7a99b1fa32
Make some defines local to ALu.c
2007-12-31 01:16:13 -08:00
Chris Robinson
e82c27ab04
Fix includes so alMain.h doesn't include so much by itself
2007-12-31 01:09:57 -08:00
Chris Robinson
f32098e04d
Don't append _struct to the source struct name
2007-12-31 01:09:21 -08:00
Chris Robinson
1e0fa58d79
Remove unused macros
2007-12-31 00:52:34 -08:00
Chris Robinson
f7ef5c169b
Don't default to AL_FORMAT_STEREO16 when writing to the output buffer
2007-12-31 00:08:07 -08:00
Chris Robinson
927763902f
Loop per frame, not per sample, when writing the output buffer
2007-12-31 00:05:29 -08:00
Chris Robinson
fcff17c567
Fallback to non-mmap access for ALSA if mmap isn't available
2007-12-30 02:09:39 -08:00
Chris Robinson
2e88a3d03b
Check for the correct ALSA driver option name
2007-12-30 01:28:25 -08:00
Chris Robinson
1061108c61
Remove some duplication
2007-12-28 22:56:48 -08:00
Chris Robinson
5f8e65e099
Implement AL_EXT_FLOAT32
2007-12-28 22:41:14 -08:00
Chris Robinson
d90b36cf11
Advertise AL_EXT_IMA4, since it's been supported all this time
2007-12-28 22:14:36 -08:00
Chris Robinson
87615fffc9
Consolidate buffer loading/conversion a bit
2007-12-28 20:25:18 -08:00
Chris Robinson
8343a98ec6
Avoid a couple explicit format checks for buffers
2007-12-28 19:21:21 -08:00
Chris Robinson
d7bf7a8b0d
Don't rely on the exact formats as much for sources
2007-12-28 18:53:46 -08:00
Chris Robinson
9eed1e8609
Add new output formats to sample config
2007-12-27 01:00:19 -08:00
Chris Robinson
8011ad97b5
Don't check explicitly against formats, but rather their byte/channel count
2007-12-26 23:29:32 -08:00
Chris Robinson
ab8d342df0
Allow 5.1 channel output
...
This doesn't use the center or LFE channel in spatial calculations, however
2007-12-26 23:01:22 -08:00
Chris Robinson
dcac0de44c
Allow empty device specifiers when opening; treat them like NULL
2007-12-26 17:38:42 -08:00
Chris Robinson
2ee389044b
Check for libm before including it
2007-12-23 16:28:09 -08:00
Chris Robinson
a48201ed94
Fix target opts to remove prefix on the win32 dll
...
CMake didn't like the previous attempt
2007-12-23 16:27:05 -08:00
Chris Robinson
e516b3c0d3
Prevent possible buffer overflow in AL_PRINT
2007-12-22 14:00:10 -08:00
Chris Robinson
51c5fa94aa
Check for snprintf, and use _snprintf when needed
2007-12-22 13:35:52 -08:00
Chris Robinson
5b0514a829
Do the channel pannings based on output channel count
...
This should make it a bit easier to extend in the future
2007-12-20 21:40:22 -08:00
Chris Robinson
0bef94cb48
Don't use the lib prefix for the Win32 DLL
2007-12-20 12:32:54 -08:00
Chris Robinson
44df5c3567
MacOSX doesn't like global szDebug and g_mutex symbol names
2007-12-19 14:14:26 -08:00
Chris Robinson
d14ea2965d
The error code is in errno, not the return value
2007-12-16 19:45:32 -08:00
Chris Robinson
e773887b4b
Implement capture config option for OSS.
2007-12-16 19:37:20 -08:00
Chris Robinson
5b85067f9c
Support capture for OSS
2007-12-16 19:34:52 -08:00
Chris Robinson
1fa1edf16b
Fix ring buffer size and overrun detection
2007-12-16 19:30:57 -08:00
Chris Robinson
19156ab895
Add generic ring buffer methods
2007-12-16 18:36:06 -08:00