Chris Robinson
3f235c51f6
Remove a couple unnecessary lines
2010-03-26 21:58:19 -07:00
Chris Robinson
d2a6fd58a3
Use unsigned types for mono and stereo source count hints
2010-03-25 18:39:16 -07:00
Chris Robinson
05098862c5
Fix comparison check
2010-03-24 23:48:38 -07:00
Chris Robinson
c8dd0246da
Fix alcGetEnumValue error handling
2010-03-24 22:57:35 -07:00
Chris Robinson
b3c389c0a0
Constify and properly type some variables and struct members
2010-03-24 22:43:08 -07:00
Chris Robinson
15b9fc9099
Improve timing for the wave file writer
2010-03-24 22:20:55 -07:00
Chris Robinson
1c14c13c2f
Fix 8-bit output with the Wave Writer
2010-03-24 16:58:58 -07:00
Chris Robinson
b79b92967f
Fix comment typo
2010-03-24 16:53:11 -07:00
Chris Robinson
702c62c9a2
Use a global handle to store the process-wide context
2010-03-23 21:05:29 -07:00
Chris Robinson
661059bf0f
Rename alcMakeCurrent to alcSetThreadContext
2010-03-23 19:49:31 -07:00
Chris Robinson
52834744fa
Return if PortAudio fails to load in Windows
2010-03-23 17:45:37 -07:00
Chris Robinson
3e9934e810
Mark extension functions with AL_API/ALC_API
2010-03-23 17:44:01 -07:00
Chris Robinson
0691486813
Support PortAudio in Windows
2010-03-21 20:57:15 -07:00
Chris Robinson
eea23a012a
Relax circular layout requirement
2010-03-20 00:54:44 -07:00
Chris Robinson
2235a53824
Reduce some indentation
2010-03-19 20:49:23 -07:00
Chris Robinson
52f82f0b94
Simplify removing the context handle from the device's context array
2010-03-19 14:53:32 -07:00
Chris Robinson
a572b13743
Don't use deprecated macros
2010-03-19 14:34:18 -07:00
Alam Arias
cf4027df38
Mingw64's shlobj.h wants at least 0x501
2010-03-18 16:33:08 -07:00
Alam Arias
e3637b8452
use ALintptrEXT in alcReverb.c
2010-03-18 16:32:49 -07:00
Chris Robinson
e1965fe7d9
Convert CR/LF -> LF
...
Spotted by Alam Arias
2010-03-18 14:23:31 -07:00
Chris Robinson
781444d12c
Use size_t where appropriate
...
Spotted by Alam Arias
2010-03-18 14:21:06 -07:00
Chris Robinson
b6571904ce
Define _WIN32_IE to 0x400 only if it's a lesser value by default
...
Spotted by Alam Arias
2010-03-18 13:46:18 -07:00
Chris Robinson
97b25755e7
Support capture with PortAudio
2010-03-18 01:58:25 -07:00
Chris Robinson
bdfafb454b
Create WAVEFORMATEXTENSIBLE wave files for multi-channel and float support
2010-03-18 00:53:58 -07:00
Chris Robinson
186e0f3b04
Use a separate list for NULL-device extensions
2010-03-17 19:46:20 -07:00
Chris Robinson
932e5ec9b8
The enums are the same as with mcforamts, so advertise AL_EXT_MULAW too
2010-03-17 19:15:51 -07:00
Chris Robinson
f37cfc486d
Pass the context to alSetError
2010-03-16 17:35:51 -07:00
Chris Robinson
ec917e8e2f
Rename some struct members for consistency
2010-03-16 15:37:41 -07:00
Chris Robinson
d4159430f0
Set the buffer length for Pulse when opening the device
...
So it will properly scale with context frequency requests
2010-03-14 22:20:55 -07:00
Chris Robinson
14255a38fc
Pulse's buffer size is not a good measurement for the update size
...
Lie and say 20ms instead, since there is no stable method to get such info
2010-03-14 21:45:23 -07:00
Chris Robinson
c23e4ed412
Add support for AL_EXT_DOUBLE
2010-03-13 21:32:45 -08:00
Chris Robinson
8c0118e7ae
Add support for AL_EXT_MULAW_MCFORMATS
2010-03-13 21:03:34 -08:00
Chris Robinson
3108a6a997
Limit PulseAudio's buffer size to the requested length
2010-03-11 09:47:26 -08:00
Chris Robinson
08b1bed38b
Remove a couple incorrect comments
2010-03-10 07:16:53 -08:00
Chris Robinson
80f1ec0d7e
Protect some capture calls with a mutex
2010-03-09 10:14:52 -08:00
Chris Robinson
8feb089f5c
Build device lists only when needed
2010-03-09 06:09:29 -08:00
Chris Robinson
2ba3a88ace
Probe physical devices separately from appending them to the device list
2010-03-09 05:44:18 -08:00
Chris Robinson
1f10195c47
Use powf when available
2010-03-07 22:12:33 -08:00
Chris Robinson
a9e0e57797
Keep UpdateSize updated when apps request a frequency
2010-02-24 18:51:57 -08:00
Chris Robinson
9b47048231
Silence some warnings
2010-02-16 05:44:39 -08:00
Chris Robinson
2f644c7ed5
Constify some globals
2010-02-15 22:01:23 -08:00
Chris Robinson
d17c4a098c
Avoid probing for devices on lib initialization
2010-02-10 16:34:43 -08:00
Chris Robinson
96303893bc
Set ALSA playback buffer and period size based on time
...
So rate adjustments won't modify the latency
2010-02-08 17:42:44 -08:00
Chris Robinson
a329f9c84a
Fix retrieval of the current global context when changing it
2010-02-08 16:58:26 -08:00
Chris Robinson
fc96e965ae
Always disable ALSA's resampler for playback
...
This means the frequency config option won't have an effect if the ALSA device
can't set an alternate sampling rate
2010-02-08 16:38:53 -08:00
Chris Robinson
3a87c3c3ba
Avoid using periods with PulseAudio, and add an option to specify its buffer length
2010-02-07 19:29:48 -08:00
Chris Robinson
78c1629aeb
Disable ALSA's resampler when no specific output rate is requested
2010-02-05 11:45:17 -08:00
Chris Robinson
bd518ed264
Make sure all requested data gets written to PulseAudio
2010-01-24 00:03:23 -08:00
Chris Robinson
56379bffac
Use pa_channel_map_superset only when available with PulseAudio 0.9.15
...
pa_channel_map_equal can otherwise detect some compatible output modes
2010-01-22 21:20:08 -08:00
Chris Robinson
11d7a0e394
Specify the buffer size to ALSA, so the period count remains flexible
...
Under conditions where the period size is fixed (such as dmix), ALSA will still
attempt to provide the requested number of periods even if the requested period
size needs to be dramatically altered. In these cases, it would be better to
increase or decrease the period count, instead of growing or shrinking the
total buffer size and significantly changing the latency.
2010-01-20 01:19:32 -08:00