Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unnecessary Channels field | Chris Robinson | 2008-01-25 | 5 | -54/+20 |
| | |||||
* | Set the output format according to the speaker setup reported by directsound | Chris Robinson | 2008-01-25 | 1 | -8/+54 |
| | |||||
* | Use both write pointers from the directsound buffer lock | Chris Robinson | 2008-01-25 | 1 | -8/+10 |
| | |||||
* | Remove an unneceesary pointer check and decrease indentation | Chris Robinson | 2008-01-21 | 1 | -424/+421 |
| | |||||
* | Remove unnecessary duplicate thunk lookups | Chris Robinson | 2008-01-21 | 1 | -10/+8 |
| | |||||
* | Small formatting updates | Chris Robinson | 2008-01-20 | 1 | -1/+3 |
| | |||||
* | Remove duplicate function | Chris Robinson | 2008-01-20 | 1 | -23/+7 |
| | |||||
* | Don't access ALSource for every sample mix | Chris Robinson | 2008-01-20 | 1 | -21/+24 |
| | |||||
* | Don't use a multiple lists for extensions | Chris Robinson | 2008-01-19 | 1 | -20/+20 |
| | |||||
* | Add an option for setting the max number of sources | Chris Robinson | 2008-01-19 | 1 | -1/+3 |
| | |||||
* | Remove duplication of setting the max source count | Chris Robinson | 2008-01-19 | 5 | -6/+2 |
| | |||||
* | Use less ambiguous config file names | Chris Robinson | 2008-01-19 | 1 | -2/+17 |
| | |||||
* | Remove some unnecessary duplicate math, which was making long lines | Chris Robinson | 2008-01-19 | 1 | -67/+56 |
| | |||||
* | Remove some branches | Chris Robinson | 2008-01-18 | 1 | -75/+25 |
| | |||||
* | Implement AL_EFFECT_REVERB | Chris Robinson | 2008-01-18 | 1 | -19/+98 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here is a quick description of how the reverb effect works: +--->---+*(4) | V new sample +-----+---+---+ | |extra|ltr|ref| <- +*(1) +-----+---+---+ (3,5)*| |*(2) +-->| V out sample 1) Apply master reverb gain to incoming sample and place it at the head of the buffer. The master reverb gainhf was already applied when the source was initially mixed. 2) Copy the delayed reflection sample to an output sample and apply the reflection gain. 3) Apply the late reverb gain to the late reverb sample 4) Copy the end of the buffer, applying a decay gain and the decay hf ratio, and add to the late reverb. 5) Copy the late reverb sample, adding to the output sample. Then the head and sampling points are shifted forward, and done again for each new sample. The extra buffer length is determined by the Reverb Density property. A value of 0 gives a length of 0.1 seconds (long, with fairly distinct echos) , and 1 gives 0.075 seconds (short, indistinct echos). The decay gain is calculated such that after a number of loops to satisfy the Decay Time, a sample will be 1/32768th as powerful (virtually insignificant to the resulting output, and only getting further reduced). It is calculated as: DecayGain = pow(1.0f/32768.0f, 1.0/(DecayTime/ExtraLength)); Things to note: Reverb Diffusion is not currently handled, nor is Decay HF Limit. Decay HF Ratios above 1 probably give incorrect results. Also, this method likely sucks, but it's the best I can come up with before release. :) | ||||
* | Remove duplicated source freeing code | Chris Robinson | 2008-01-18 | 1 | -20/+0 |
| | |||||
* | Buffer size fixes. Partially reverts the ALSA buffer size "fix" | Chris Robinson | 2008-01-18 | 2 | -11/+17 |
| | |||||
* | Don't dereference ALContext if there's no context yet | Chris Robinson | 2008-01-17 | 1 | -2/+2 |
| | | | | Patch by Evgeny A. Marchenko | ||||
* | Add missing config.h includes | Chris Robinson | 2008-01-16 | 7 | -2/+14 |
| | |||||
* | Don't include alAuxEffectSlot.h in alSource.h | Chris Robinson | 2008-01-16 | 2 | -0/+2 |
| | |||||
* | Make sure sources are deleted with the context | Chris Robinson | 2008-01-16 | 1 | -0/+1 |
| | |||||
* | Don't clamp wet gain if there's no send slot, and move slot gain calculation | Chris Robinson | 2008-01-16 | 1 | -9/+12 |
| | | | | To remove an extra if check | ||||
* | Store a reference to the effect slot in a source's send, not a copy | Chris Robinson | 2008-01-16 | 1 | -11/+13 |
| | |||||
* | Remove unneeded variables | Chris Robinson | 2008-01-15 | 1 | -38/+28 |
| | |||||
* | Use acosf when available | Chris Robinson | 2008-01-15 | 1 | -1/+8 |
| | |||||
* | Use the previous low-pass filter again, as it seems to match the intended ↵ | Chris Robinson | 2008-01-15 | 1 | -6/+14 |
| | | | | output better | ||||
* | Store effect slots in the context | Chris Robinson | 2008-01-15 | 1 | -0/+2 |
| | |||||
* | Add support for AL_LOKI_quadriphonic | Chris Robinson | 2008-01-14 | 2 | -1/+5 |
| | |||||
* | Reduce indentation | Chris Robinson | 2008-01-14 | 1 | -6/+4 |
| | |||||
* | Add an option for disabling ALSA mmap | Chris Robinson | 2008-01-14 | 1 | -1/+9 |
| | |||||
* | Avoid busy waiting when waiting for suspend to clear | Chris Robinson | 2008-01-14 | 1 | -3/+2 |
| | |||||
* | Let the mmap thread start the pcm stream when it's full | Chris Robinson | 2008-01-14 | 1 | -52/+0 |
| | | | | Instead of filling it with silence and starting it before the thread is active | ||||
* | Make sure the stream is playing when it's full | Chris Robinson | 2008-01-14 | 1 | -0/+13 |
| | |||||
* | Don't restart the stream right after preparing it | Chris Robinson | 2008-01-14 | 1 | -4/+0 |
| | | | | It needs to be filled, first | ||||
* | Don't attempt to recover the ALSA stream when filling silence | Chris Robinson | 2008-01-14 | 1 | -13/+4 |
| | | | | Since it was just prepared, any error would likely mean bigger problems | ||||
* | Close dangling devices when exiting | Chris Robinson | 2008-01-14 | 1 | -0/+22 |
| | |||||
* | Destroy context if closing a device with one | Chris Robinson | 2008-01-14 | 1 | -0/+2 |
| | |||||
* | Keep track of open devices | Chris Robinson | 2008-01-14 | 1 | -0/+39 |
| | |||||
* | Reorder setting of some variables | Chris Robinson | 2008-01-12 | 1 | -8/+9 |
| | |||||
* | Merge branch 'master' into efx-experiment | Chris Robinson | 2008-01-11 | 6 | -143/+483 |
|\ | |||||
| * | Don't limit output wave filename size | Chris Robinson | 2008-01-11 | 1 | -3/+2 |
| | | |||||
| * | Fix the Wave Writer's reliance on ftell | Chris Robinson | 2008-01-11 | 1 | -2/+3 |
| | | | | | | | | So output can work on FIFOs | ||||
| * | Use Sleep instead of usleep | Chris Robinson | 2008-01-11 | 2 | -6/+6 |
| | | |||||
| * | Don't double-close a handle on error | Chris Robinson | 2008-01-11 | 1 | -1/+0 |
| | | |||||
| * | Don't attempt to open ALSA playback/capture if it didn't load | Chris Robinson | 2008-01-11 | 1 | -1/+7 |
| | | |||||
| * | Add a wave file writing backend | Chris Robinson | 2008-01-11 | 2 | -0/+337 |
| | | |||||
| * | Allow querying of ALC_MONO_SOURCES and ALC_STEREO_SOURCES | Chris Robinson | 2008-01-10 | 1 | -0/+18 |
| | | | | | | | | Based on a patch by Xavier Bouchoux | ||||
| * | Use a more reliable thread loop for DSound, instead of a Win32 timer | Chris Robinson | 2008-01-08 | 1 | -68/+64 |
| | | | | | | | | Also use a simpler method for calculating the read/write location | ||||
| * | Remove unneeded silence field | Chris Robinson | 2008-01-07 | 1 | -5/+0 |
| | | |||||
| * | Fix lone ALC_REFRESH query case | Chris Robinson | 2008-01-06 | 1 | -1/+1 |
| | |