Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use a void* for the effect state Delete method param | Chris Robinson | 2014-03-21 | 2 | -2/+6 |
| | |||||
* | Add a generic vector interface and use it for the active effect slots | Chris Robinson | 2014-03-21 | 1 | -3/+6 |
| | |||||
* | Use flexible array members to pad the device and context structs | Chris Robinson | 2014-03-20 | 1 | -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 count | Chris Robinson | 2014-03-19 | 1 | -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 union to combine HRTF and non-HRTF mixer params | Chris Robinson | 2014-03-19 | 1 | -9/+11 |
| | |||||
* | Store some source mixing parameters in the active source struct | Chris Robinson | 2014-03-19 | 2 | -24/+21 |
| | |||||
* | Use a separate struct for tracking active sources | Chris Robinson | 2014-03-18 | 2 | -5/+10 |
| | |||||
* | Store the old-style backend funcs in the wrapper | Chris Robinson | 2014-03-17 | 1 | -1/+0 |
| | |||||
* | Avoid GCC's macro arg concat extension with IDE parsing | Chris Robinson | 2014-03-17 | 1 | -1/+1 |
| | |||||
* | Move the sample conversion routines to a separate file | Chris Robinson | 2014-03-05 | 1 | -0/+9 |
| | |||||
* | Add an extension to support MSADPCM buffer formats | Chris Robinson | 2014-03-04 | 2 | -0/+7 |
| | |||||
* | Add an extension to alter the block alignment for buffer unpack/pack ops | Chris Robinson | 2014-03-04 | 2 | -0/+9 |
| | | | | | | | | | | | | | | | | 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); | ||||
* | Store the original frame size alignment in the buffer | Chris Robinson | 2014-03-03 | 1 | -0/+1 |
| | |||||
* | Move PATH_MAX fallback definitions to alMain.h | Chris Robinson | 2014-02-27 | 1 | -0/+9 |
| | |||||
* | Move OpenDataFile to helpers.c so other sources can use it | Chris Robinson | 2014-02-27 | 1 | -0/+1 |
| | |||||
* | Move HRTF macros and function declarations to a separate header | Chris Robinson | 2014-02-23 | 2 | -14/+1 |
| | |||||
* | Add a return value to FindHrtfFormat | Chris Robinson | 2014-02-23 | 1 | -1/+1 |
| | |||||
* | Add an alcGetInteger64vSOFT method and a way to get the device clock | Chris Robinson | 2014-02-01 | 1 | -0/+11 |
| | |||||
* | Keep track of a device clock time, based on the number of samples processed | Chris Robinson | 2014-02-01 | 1 | -0/+7 |
| | |||||
* | Rename aftertouch to keypressure | Chris Robinson | 2014-01-17 | 1 | -6/+6 |
| | |||||
* | Use a proper struct for envelope properties | Chris Robinson | 2014-01-17 | 1 | -20/+13 |
| | |||||
* | Handle fontsound sample types using explicit enum values | Chris Robinson | 2014-01-15 | 1 | -0/+2 |
| | | | | | | Uses AL_MONO_SOFT, AL_RIGHT_SOFT, and AL_LEFT_SOFT. "Linked" samples types aren't explicitly supported due to being under-defined in the SF2 spec, nor are ROM samples currently. | ||||
* | Add a flag to specify the device being paused | Chris Robinson | 2014-01-15 | 1 | -0/+3 |
| | | | | | Used to prevent UpdateDeviceParams from restarting the device, if a new context is created while paused. | ||||
* | Add an extension to pause audio processing | Chris Robinson | 2014-01-15 | 1 | -0/+10 |
| | |||||
* | Add a method to get soundfont samples | Chris Robinson | 2014-01-13 | 1 | -0/+2 |
| | |||||
* | Add a method to get the current MIDI state | Chris Robinson | 2014-01-12 | 1 | -0/+1 |
| | |||||
* | Load soundfont modulators into FluidSynth | Chris Robinson | 2014-01-06 | 1 | -2/+2 |
| | |||||
* | Add methods to get and set modulator properties on fontsounds | Chris Robinson | 2014-01-05 | 2 | -3/+48 |
| | |||||
* | Move some soundfont methods to ALsoundfont | Chris Robinson | 2014-01-05 | 1 | -0/+2 |
| | |||||
* | Add storage for a default soundfont object | Chris Robinson | 2014-01-03 | 2 | -0/+4 |
| | |||||
* | Avoid using alFontsoundiSOFT when loading a soundfont | Chris Robinson | 2014-01-03 | 1 | -0/+2 |
| | | | | This should now make the soundfont loader thread-safe. | ||||
* | Use a uint map for modulators | Chris Robinson | 2014-01-02 | 1 | -3/+6 |
| | |||||
* | Mostly load into fontsound objects directly | Chris Robinson | 2014-01-02 | 1 | -5/+1 |
| | | | | This leaves only one unsafe alFontsoundiSOFT call. | ||||
* | Move some error macros to alError.h | Chris Robinson | 2014-01-02 | 2 | -16/+15 |
| | |||||
* | Move some preset alloc/dealloc code to separate functions | Chris Robinson | 2014-01-02 | 1 | -3/+2 |
| | |||||
* | Update soundfont selection functions | Chris Robinson | 2013-12-29 | 1 | -4/+4 |
| | | | | | A filename is no longer specified, and alMidiSoundfontsSOFT is renamed to alMidiSoundfontvSOFT. | ||||
* | Add the last remaining "real-time" properties | Chris Robinson | 2013-12-29 | 2 | -0/+18 |
| | |||||
* | Add chorus and reverb send properties | Chris Robinson | 2013-12-29 | 2 | -0/+5 |
| | |||||
* | Add pan and attenuation properties | Chris Robinson | 2013-12-29 | 2 | -0/+6 |
| | |||||
* | Add tuning properties | Chris Robinson | 2013-12-29 | 2 | -1/+10 |
| | |||||
* | Add filter properties | Chris Robinson | 2013-12-29 | 2 | -0/+9 |
| | |||||
* | Add modulation envelope properties | Chris Robinson | 2013-12-29 | 2 | -0/+18 |
| | |||||
* | Add a few more pitch properties | Chris Robinson | 2013-12-29 | 2 | -0/+7 |
| | |||||
* | Add volume envelope properties | Chris Robinson | 2013-12-29 | 2 | -0/+19 |
| | |||||
* | Add support for the fontsound loop mode | Chris Robinson | 2013-12-29 | 2 | -0/+4 |
| | |||||
* | Add alLoadSoundfontSOFT to load a soundfont via callback | Chris Robinson | 2013-12-28 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | Some hefty caveats: This function is not thread-safe. In particular, the current context affecting the thread must not be changed, and the provided soundfont must not be altered while the function is executing. Ideally, this will be fixed. Error handling is poor. Some RIFF structure errors may not be caught (e.g. sub- chunks with sizes greater than the parent chunk allows for), and generated AL errors are ignored, possibly leading to resource leaks in certain situations. These should be fixed in time. There is minimal error checking on the provided soundfont ID. It does not ensure a valid ID has been provided, nor does it ensure the provided soundfont can be modified. These short-comings should be fixed eventually. Proper cleanup is the responsibility of the caller. The caller must get the preset objects from the soundfont before deleting it, and the fontsound objects from each preset before deleting them, to make sure all resources are properly deleted. | ||||
* | Add a method to set and get soundfonts | Chris Robinson | 2013-12-27 | 1 | -4/+12 |
| | | | | | The main purpose of this is to select soundfonts for playback, eventually, instead of the existing method that takes a filename. | ||||
* | Allow specifying some fontsound sample properties | Chris Robinson | 2013-12-26 | 1 | -0/+9 |
| | |||||
* | Remove the generator list | Chris Robinson | 2013-12-26 | 1 | -14/+5 |
| | |||||
* | Allow specifying key and velocity ranges on fontsounds | Chris Robinson | 2013-12-26 | 1 | -0/+10 |
| |