Chris Robinson
376997c3ef
Fix config value check
2008-06-04 20:44:51 -07:00
Chris Robinson
15783d25e7
Don't override the format config option in DSound
2008-06-04 18:33:02 -07:00
Chris Robinson
3243f69f21
Use %AppData%\alsoft.ini for the config file in Windows
2008-06-04 18:09:21 -07:00
Chris Robinson
10a87f510c
Protect RingBufferSize calculation with the mutex
2008-06-04 17:01:44 -07:00
Chris Robinson
ca6feeda29
Make sure the lib is initialized when shutting down
...
Pretty ugly, but the destructor sequence relies in the mutex being initialized
2008-05-18 20:17:31 -07:00
Chris Robinson
fed346c285
Fix source calculations for AL_SOURCE_RELATIVE mode
...
Make sure the source position and direction are properly put into listener-
space before working with them, and don't calculate the listener velocity for
relative coordinates
2008-05-18 16:52:38 -07:00
Chris Robinson
6e86146a25
Prepare the ALSA PCM handle before starting capture
...
Thanks to Jason Daly for pointing it out
2008-05-06 16:05:36 -07:00
Chris Robinson
49d9695ad9
Check the right struct member for the filter type
2008-04-12 07:25:18 -07:00
Chris Robinson
e15bc6b9ba
Fill the correct capture device list
2008-04-05 20:33:19 -07:00
Chris Robinson
2af5498804
Define _WIN32_WINNT to 0x0500 when including windows.h
...
VC7 appears to require that value, or higher, set and fails otherwise
2008-03-01 01:39:42 -08:00
Chris Robinson
2b42d7fdb8
Don't start the DSound playback thread is startup failed
2008-03-01 00:57:37 -08:00
Chris Robinson
b1bdd7c89f
Add the first card after making sure there's a useable device on it
2008-02-15 21:48:00 -08:00
Chris Robinson
ffe7a11866
Avoid a static variable for enumerating
2008-02-15 21:09:19 -08:00
Chris Robinson
8c3188bc7d
Remove FrameSize struct member
2008-02-14 22:05:56 -08:00
Chris Robinson
880196e5a8
Remove unneeded headers
2008-02-13 19:42:47 -08:00
Chris Robinson
d523b440e3
Wait for a PCM handle to be ready for more data instead of polling every 1ms or so
2008-02-13 19:34:47 -08:00
Chris Robinson
f2875d5d13
Read in chunks of the fragment size, not expected buffer size
2008-02-12 21:19:09 -08:00
Chris Robinson
b0720333cc
UpdateSize is not used for capture devices
2008-02-12 19:50:49 -08:00
Chris Robinson
c3446a10fa
Rename UpdateFreq device field to UpdateSize
2008-02-12 19:38:27 -08:00
Chris Robinson
fbc869eed7
Pretend DSound buffer fragment size is 1/4th the total buffer size
2008-02-12 19:24:08 -08:00
Chris Robinson
e3e4dbbccf
Make the backend list static
2008-02-11 17:24:04 -08:00
Chris Robinson
7fda645b16
Call InitAL at the start of some more ALC functions
2008-02-11 17:23:31 -08:00
Chris Robinson
ec7f20644d
Fast float-to-int function is no longer needed
2008-02-08 21:03:48 -08:00
Chris Robinson
3d5fa91703
Remove unnecessary casting
2008-02-08 21:01:05 -08:00
Chris Robinson
e8acfb069c
Remove explicit dependancy on ole32 and unused dxguid
2008-02-08 20:56:45 -08:00
Chris Robinson
4c38ed272d
Enumerate DirectSound devices
2008-02-08 20:46:34 -08:00
Chris Robinson
13a3fe8a7a
Remove unneeded device struct member
2008-02-08 19:41:47 -08:00
Chris Robinson
3dd3cd4ceb
Prevent overflow of the device lists
2008-02-08 15:33:26 -08:00
Chris Robinson
80fcbc8adc
Use all capture devices listed by ALSA, not just the first on each card
2008-02-08 15:22:17 -08:00
Chris Robinson
33680accea
Don't remove the devices from the device list on unexpected shutdown
...
The close functions will remove it for us
2008-02-08 14:44:05 -08:00
Chris Robinson
081e593e2b
Set the done flag immediately when entering the initialization
...
To prevent two threads from initializing at the same time (not that it's
likely to happen at this point).
2008-02-06 22:22:29 -08:00
Chris Robinson
b4ffdfab81
Add an option for duplicating stereo sources on the back speakers
2008-02-06 22:18:50 -08:00
Chris Robinson
4d6c292757
Fix race condition when starting winmm message poll thread
2008-02-03 00:28:00 -08:00
Chris Robinson
655a83c5c5
Use WAVEFORMATEXTENSIBLE for multichannel dsound output, and don't create a primary buffer
2008-02-01 08:17:57 -08:00
Chris Robinson
e8b576bc25
Use the correct channel ordering for Windows
2008-01-27 07:04:13 -08:00
Chris Robinson
01404ed7af
Fix output channel order for 6.1 and 7.1
2008-01-27 06:49:48 -08:00
Chris Robinson
ad6237f6f7
Fix availibility amount calculation
2008-01-26 21:10:55 -08:00
Chris Robinson
d06c64e1c4
aluBytesFromFormat returns bytes, not bits
2008-01-26 21:09:08 -08:00
Chris Robinson
b4ad3186dd
Update frame size after detecting the directsound output format
2008-01-25 17:05:14 -08:00
Chris Robinson
5f1c0450b3
Remove unnecessary Channels field
2008-01-25 16:38:37 -08:00
Chris Robinson
04b62f77e3
Set the output format according to the speaker setup reported by directsound
2008-01-25 05:02:00 -08:00
Chris Robinson
029dff3f40
Use both write pointers from the directsound buffer lock
2008-01-25 04:42:44 -08:00
Chris Robinson
781e4e5be4
Remove an unneceesary pointer check and decrease indentation
2008-01-21 14:54:15 -08:00
Chris Robinson
f3dddb5e99
Remove unnecessary duplicate thunk lookups
2008-01-21 14:33:42 -08:00
Chris Robinson
9a5e892cad
Small formatting updates
2008-01-20 22:16:28 -08:00
Chris Robinson
0317362662
Remove duplicate function
2008-01-20 19:22:39 -08:00
Chris Robinson
6b403a76e8
Don't access ALSource for every sample mix
2008-01-20 19:20:24 -08:00
Chris Robinson
543eb9d217
Don't use a multiple lists for extensions
2008-01-19 20:02:40 -08:00
Chris Robinson
bc963463f3
Add an option for setting the max number of sources
2008-01-19 19:38:06 -08:00
Chris Robinson
86b7b3d54b
Remove duplication of setting the max source count
2008-01-19 19:28:34 -08:00