Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Store the HrtfState directly in the DirectParams | Chris Robinson | 2014-03-23 | 7 | -32/+31 | |
| | ||||||
* | Add a stub 'soft' MIDI synth handler | Chris Robinson | 2014-03-22 | 2 | -0/+143 | |
| | | | | | Eventually this one will be used to handle MIDI internally, using our own mixers and resamplers. | |||||
* | Use a void* for the MidiSynth Delete method param | Chris Robinson | 2014-03-22 | 3 | -18/+9 | |
| | ||||||
* | Use a void* for the backend Delete method param | Chris Robinson | 2014-03-22 | 7 | -73/+32 | |
| | ||||||
* | Use a void* for the effect state Delete method param | Chris Robinson | 2014-03-21 | 11 | -54/+34 | |
| | ||||||
* | Avoid a size_t-to-ALuint conversion warning | Chris Robinson | 2014-03-21 | 1 | -1/+1 | |
| | ||||||
* | Increase the vector reserve as needed when pushing in new items | Chris Robinson | 2014-03-21 | 3 | -24/+20 | |
| | ||||||
* | Rename the vector's Max field to Capacity | Chris Robinson | 2014-03-21 | 3 | -15/+15 | |
| | ||||||
* | Use vectors for the GenModList | Chris Robinson | 2014-03-21 | 2 | -167/+103 | |
| | ||||||
* | Add a generic vector interface and use it for the active effect slots | Chris Robinson | 2014-03-21 | 4 | -9/+75 | |
| | ||||||
* | Use flexible array members to pad the device and context structs | Chris Robinson | 2014-03-20 | 1 | -4/+4 | |
| | | | | | This helps avoid the convoluted math otherwise required to ensure the default slot and listener, respectively, are aligned. | |||||
* | Keep track of the mix count | Chris Robinson | 2014-03-19 | 1 | -0/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | The purpose of this is to provide a safe way to be able to "swap" resources used by the mixer from other threads without the need to block the mixer, as well as a way to track when mixes have occurred. The idea is two-fold: It provides a way to safely swap resources. If the mixer were to (atomically) get a reference to an object to access it from, another thread would be able allocate and prepare a new object then swap the reference to it with the stored one. The other thread would then be able to wait until (count&1) is clear, indicating the mixer is not running, before safely freeing the old object for the mixer to use the new one. It also provides a way to tell if the mixer has run. With this, a thread would be able to read multiple values, which could be altered by the mixer, without requiring a mixer lock. Comparing the before and after counts for inequality would signify if the mixer has (started to) run, indicating the values may be out of sync and should try getting them again. Of course, it will still need something like a RWLock to ensure another (non-mixer) thread doesn't try to write to the values at the same time. Note that because of the possibility of overflow, the counter is not reliable as an absolute count. | |||||
* | Use a union to combine HRTF and non-HRTF mixer params | Chris Robinson | 2014-03-19 | 5 | -41/+41 | |
| | ||||||
* | Select the mixer when setting the mixer-specific parameters | Chris Robinson | 2014-03-19 | 1 | -39/+42 | |
| | ||||||
* | Store some source mixing parameters in the active source struct | Chris Robinson | 2014-03-19 | 3 | -85/+97 | |
| | ||||||
* | Use a separate struct for tracking active sources | Chris Robinson | 2014-03-18 | 2 | -15/+27 | |
| | ||||||
* | Remove some unneeded code and unnecessary macros in the OpenSL backend | Chris Robinson | 2014-03-17 | 1 | -73/+20 | |
| | ||||||
* | Store the old-style backend funcs in the wrapper | Chris Robinson | 2014-03-17 | 3 | -29/+33 | |
| | ||||||
* | Don't define HAVE_DYNLOAD with the IDE parser | Chris Robinson | 2014-03-17 | 1 | -1/+1 | |
| | ||||||
* | Don't assume the default mmdevapi device is in the collection | Chris Robinson | 2014-03-17 | 1 | -2/+2 | |
| | ||||||
* | Return the original value from CompExchange* | Chris Robinson | 2014-03-09 | 3 | -30/+27 | |
| | ||||||
* | Remove the Apple-specific atomic function implementations. | Chris Robinson | 2014-03-09 | 1 | -36/+0 | |
| | | | | | | I'm not sure if they're even used, but they were rather ugly and are set to get even uglier since they don't follow normal conventions (missing exchange, and cas not returning the original value). | |||||
* | Add an extension to support MSADPCM buffer formats | Chris Robinson | 2014-03-04 | 1 | -1/+3 | |
| | ||||||
* | Add an extension to alter the block alignment for buffer unpack/pack ops | Chris Robinson | 2014-03-04 | 1 | -3/+5 | |
| | | | | | | | | | | | | | | | | This is for unpacking (reading, e.g. alBufferData) and packing (writing, e.g. alGetBufferSamplesSOFT) operations. The alignments are specified in sample frames, with 0 meaning the default (65 for IMA4, 1 otherwise). IMA4 alignment must be a multiple of 8, plus 1 (e.g. alignment = n*8 + 1), otherwise an error will occur during (un)packing. Chenging the block alignment does not affect already-loaded sample data, only future unpack/pack operations... so for example, this is perfectly valid: // Load mono IMA4 data with a block alignment of 1024 bytes, or 2041 sample // frames. alBufferi(buffer, AL_UNPACK_BLOCK_ALIGNMENT_SOFT, 2041); alBufferData(buffer, AL_FORMAT_MONO_IMA4, data, data_len, srate); alBufferi(buffer, AL_UNPACK_BLOCK_ALIGNMENT_SOFT, 0); | |||||
* | Move PATH_MAX fallback definitions to alMain.h | Chris Robinson | 2014-02-27 | 4 | -31/+0 | |
| | ||||||
* | Add back the missing PATH_MAX fallback | Chris Robinson | 2014-02-27 | 1 | -0/+10 | |
| | ||||||
* | Move OpenDataFile to helpers.c so other sources can use it | Chris Robinson | 2014-02-27 | 2 | -131/+133 | |
| | ||||||
* | Add an explicit cast to make Windows happy | Chris Robinson | 2014-02-26 | 1 | -2/+2 | |
| | ||||||
* | Don't fallback to relative filename handling if opening as absolute fails | Chris Robinson | 2014-02-26 | 1 | -26/+27 | |
| | ||||||
* | Expand environment variables for all config option values when loading | Chris Robinson | 2014-02-26 | 2 | -31/+77 | |
| | ||||||
* | Support environment variables in the hrtf_tables config value | Chris Robinson | 2014-02-25 | 1 | -4/+34 | |
| | ||||||
* | Attempt to restore the Neon-enhanced ApplyCoeffsStep method | Chris Robinson | 2014-02-23 | 1 | -7/+21 | |
| | | | | Unable to test, but it hopefully works. | |||||
* | Revert "Apply HRTF coefficient stepping separately" | Chris Robinson | 2014-02-23 | 4 | -19/+74 | |
| | | | | | | | | | This reverts commit 25b9c3d0c15e959d544f5d0ac7ea507ea5f6d69f. Conflicts: Alc/mixer_neon.c Unfortunately this also undoes the Neon-enhanced ApplyCoeffsStep method. | |||||
* | Move HRTF macros and function declarations to a separate header | Chris Robinson | 2014-02-23 | 4 | -0/+31 | |
| | ||||||
* | Move the default hrtf table to an external file | Chris Robinson | 2014-02-23 | 2 | -878/+12 | |
| | ||||||
* | Add a return value to FindHrtfFormat | Chris Robinson | 2014-02-23 | 2 | -7/+9 | |
| | ||||||
* | Check the hrtf config option earlier | Chris Robinson | 2014-02-23 | 1 | -8/+8 | |
| | | | | | This is to make sure it tries to find an HRTF-compatible format before reseting the device, just like when using ALC_HRTF_SOFT. | |||||
* | Avoid checking the hrtf config option twice | Chris Robinson | 2014-02-23 | 1 | -2/+3 | |
| | ||||||
* | Search system-dependant data paths for relative hrtf table filenames | Chris Robinson | 2014-02-23 | 1 | -1/+126 | |
| | ||||||
* | Avoid using a global static buffer for config loading | Chris Robinson | 2014-02-23 | 1 | -3/+51 | |
| | ||||||
* | Fix indentation | Chris Robinson | 2014-02-23 | 1 | -20/+20 | |
| | ||||||
* | Fix a race condition in the mmdevapi message queue thread | Chris Robinson | 2014-02-09 | 1 | -0/+6 | |
| | ||||||
* | Add some extra traces to the mmdevapi backend | Chris Robinson | 2014-02-09 | 1 | -0/+8 | |
| | | | | Trying to track down the cause of some reported errors. | |||||
* | Change the autowah to have a cutoff range of 20Hz to 20KHz | Chris Robinson | 2014-02-07 | 1 | -1/+1 | |
| | | | | | | This is the same as allowed in the SF2 spec for its filter cutoff generator, which can be used for a wah effect in MIDI. It makes sense to use a similar range here. | |||||
* | Fix some types | Chris Robinson | 2014-02-07 | 2 | -4/+4 | |
| | ||||||
* | Slightly shorten a long line | Chris Robinson | 2014-02-02 | 1 | -1/+1 | |
| | ||||||
* | Rework MIDI clock timing | Chris Robinson | 2014-02-02 | 4 | -123/+62 | |
| | | | | | | It's best to avoid using doubles in the mixer since the FPU's set to single- precision mode. The new clock timing is similar to the device clock timing, and should hopefully be less prone to drift caused by fp rounding errors. | |||||
* | Use nanosecond resolution for MIDI | Chris Robinson | 2014-02-01 | 1 | -2/+2 | |
| | | | | | This makes the MIDI clock use the same resolution as the device clock and source latency and the device clock. | |||||
* | Remove an unnecessary special-case for the click removal | Chris Robinson | 2014-02-01 | 1 | -14/+1 | |
| | ||||||
* | Avoid duplicating code in alcGetIntegerv | Chris Robinson | 2014-02-01 | 1 | -241/+152 | |
| |