aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove the channel name from ChannelConfigChris Robinson2014-11-051-1/+0
|
* Add preliminary AL_EXT_BFORMAT supportChris Robinson2014-10-311-1/+2
| | | | | Currently missing the AL_ORIENTATION source property. Gain stepping also does not work.
* Make alcSuspendContext and alcProcessContext batch updatesChris Robinson2014-10-121-0/+3
| | | | | | | | | | This behavior better matches Creative's hardware drivers and Rapture3D's OpenAL driver. A compatibility environment variable is provided to restore the old no-op behavior for any app that behaves badly from this change (set __ALSOFT_SUSPEND_CONTEXT to "ignore"). If too many apps have a problem with this, the default behavior may need to be changed to ignore, with the env var providing an option to defer/batch instead.
* Add a helper to search for a channel index by nameChris Robinson2014-10-021-0/+17
|
* Store default speaker configurations in a structChris Robinson2014-10-021-11/+14
|
* Make ComputeAngleGains use ComputeDirectionalGainsChris Robinson2014-10-021-0/+1
|
* Use an ambisonics-based panning methodChris Robinson2014-09-301-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For mono sources, third-order ambisonics is utilized to generate panning gains. The general idea is that a panned mono sound can be encoded into b-format ambisonics as: w[i] = sample[i] * 0.7071; x[i] = sample[i] * dir[0]; y[i] = sample[i] * dir[1]; ... and subsequently rendered using: output[chan][i] = w[i] * w_coeffs[chan] + x[i] * x_coeffs[chan] + y[i] * y_coeffs[chan] + ...; By reordering the math, channel gains can be generated by doing: gain[chan] = 0.7071 * w_coeffs[chan] + dir[0] * x_coeffs[chan] + dir[1] * y_coeffs[chan] + ...; which then get applied as normal: output[chan][i] = sample[i] * gain[chan]; One of the reasons to use ambisonics for panning is that it provides arguably better reproduction for sounds emanating from between two speakers. As well, this makes it easier to pan in all 3 dimensions, with for instance a "3D7.1" or 8-channel cube speaker configuration by simply providing the necessary coefficients (this will need some work since some methods still use angle-based panpot, particularly multi-channel sources). Unfortunately, the math to reliably generate the coefficients for a given speaker configuration is too costly to do at run-time. They have to be pre- generated based on a pre-specified speaker arangement, which means the config options for tweaking speaker angles are no longer supportable. Eventually I hope to provide config options for custom coefficients, which can either be generated and written in manually, or via alsoft-config from user-specified speaker positions. The current default set of coefficients were generated using the MATLAB scripts (compatible with GNU Octave) from the excellent Ambisonic Decoder Toolbox, at https://bitbucket.org/ambidecodertoolbox/adt/
* Combine some fields into a structChris Robinson2014-09-101-3/+6
|
* Invert the ChannelOffsets arrayChris Robinson2014-09-101-1/+2
|
* Remove the GetLatency method from the old BackendFuncsChris Robinson2014-09-081-4/+0
|
* Convert the winmm backend to the new backend APIChris Robinson2014-09-081-3/+0
|
* Remove a couple unnecessary typedefsChris Robinson2014-08-241-3/+0
|
* Convert the wave writer backend to the new APIChris Robinson2014-08-241-3/+0
|
* Use al_malloc/al_free for default allocatorsChris Robinson2014-08-241-2/+2
|
* Rename activesource to voiceChris Robinson2014-08-211-3/+3
|
* Use an array of objects for active sources instead of pointersChris Robinson2014-08-211-1/+1
|
* ALC_SOFT_pause_device is finishedChris Robinson2014-08-121-10/+0
|
* Use atomics for the device and context list headsChris Robinson2014-08-011-2/+2
|
* Use generic atomics in more placesChris Robinson2014-07-221-2/+2
|
* Add macros for generic atomic functionalityChris Robinson2014-07-221-1/+1
|
* Regroup and reorganize some macrosChris Robinson2014-07-061-40/+57
|
* Don't require pre-declaring vector typesChris Robinson2014-07-061-5/+1
|
* AL_SOFT_MSADPCM is functionally completeChris Robinson2014-07-031-6/+0
|
* Remove an unused macroChris Robinson2014-06-291-1/+0
|
* Load soundfont samples into an ALbufferChris Robinson2014-06-291-8/+0
| | | | | Also remove ALsoundfont's now-unneeded sample storage functions and struct fields.
* Add SSE2 and SSE4.1 linear resamplersTimothy Arceri2014-06-061-1/+2
| | | | | Currently the only way SSE 4.1 is detected is by using __get_cpuid, i.e. with GCC. Windows' IsProcessorFeaturePresent does not report SSE4.1 capabilities.
* Rename CONST_FUNC and PRINTF_STYLE, and fix non-GNU AL_PRINTChris Robinson2014-05-231-10/+10
|
* AL_SOFT_block_alignment is now considered doneChris Robinson2014-05-221-6/+0
|
* Use an unsigned type for the win32 size_t formatterChris Robinson2014-05-221-1/+1
|
* Mark some functions as constChris Robinson2014-05-221-5/+7
|
* Return a sample pointer from resamplersChris Robinson2014-05-191-3/+4
| | | | Both resampling and filtering now avoid copying samples when they no-op.
* Make RefCount a non-integer typeChris Robinson2014-05-141-3/+3
| | | | | It should only be accessed through the appropriate functions to ensure proper atomicity.
* Move the static_assert definition to its own headerChris Robinson2014-05-071-10/+1
|
* Convert the mmdevapi backend to the new backend APIChris Robinson2014-04-251-3/+0
|
* Convert the DSound backend to the new APIChris Robinson2014-04-191-3/+0
|
* Add a SZFMT macro for a size_t string formatterChris Robinson2014-04-191-0/+9
|
* Add a GCC-specific STATIC_UPCAST macro that checks the object typeChris Robinson2014-04-191-1/+8
| | | | | The check is compile time, and is functionally identical to the old/alternate version.
* Use C11 alignas when availableChris Robinson2014-04-191-11/+6
|
* Use C11's static_assert when availableChris Robinson2014-04-071-0/+12
|
* Use an al_string for the device nameChris Robinson2014-03-281-1/+2
|
* Use C99 VLA instead of alloca when availableChris Robinson2014-03-251-0/+6
|
* Remove the last bits of the predictive sample processingChris Robinson2014-03-231-3/+3
|
* Remove the now-unneeded click removal buffers for the deviceChris Robinson2014-03-231-3/+0
| | | | | | They are still there for auxiliary sends. However, they should go away soon enough too, and then we won't have to mess around with calculating extra "predictive" samples in the mixer.
* Use a void* for the effect state Delete method paramChris Robinson2014-03-211-0/+3
|
* Add a generic vector interface and use it for the active effect slotsChris Robinson2014-03-211-3/+6
|
* Use flexible array members to pad the device and context structsChris Robinson2014-03-201-0/+6
| | | | | This helps avoid the convoluted math otherwise required to ensure the default slot and listener, respectively, are aligned.
* Keep track of the mix countChris Robinson2014-03-191-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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 separate struct for tracking active sourcesChris Robinson2014-03-181-3/+3
|
* Store the old-style backend funcs in the wrapperChris Robinson2014-03-171-1/+0
|
* Avoid GCC's macro arg concat extension with IDE parsingChris Robinson2014-03-171-1/+1
|