Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Export cmake import targets for project install tree | Marcel Metz | 2017-03-05 | 1 | -1/+6 |
| | |||||
* | Rename logical CMake target `openal` to `OpenAL` | Marcel Metz | 2017-03-05 | 1 | -35/+37 |
| | |||||
* | Compile `common` library within dependent targets | Marcel Metz | 2017-03-04 | 1 | -22/+15 |
| | |||||
* | Make logical target name `openal` uniform accross all platforms | Marcel Metz | 2017-03-04 | 1 | -41/+42 |
| | |||||
* | Use a variable counter for an array size limit | Chris Robinson | 2017-02-28 | 1 | -21/+13 |
| | |||||
* | Don't use the mutex in the base getClockLatency implementation | Chris Robinson | 2017-02-28 | 1 | -3/+8 |
| | |||||
* | Print WARNs when a device or context error is generated | Chris Robinson | 2017-02-27 | 2 | -0/+6 |
| | |||||
* | Avoid standard malloc for buffer queue entries | Chris Robinson | 2017-02-27 | 2 | -7/+10 |
| | |||||
* | Use separate enums for the ambisonic channel order and normalization | Chris Robinson | 2017-02-27 | 4 | -17/+38 |
| | |||||
* | Move the current buffer queue entry and play position to the voice | Chris Robinson | 2017-02-27 | 5 | -127/+137 |
| | | | | | | | | | | | | | | This has a couple behavioral changes. First and biggest is that querying AL_BUFFERS_PROCESSED from a source will always return all buffers processed when in an AL_STOPPED state. Previously all buffers would be set as processed when first becoming stopped, but newly queued buffers would *not* be indicated as processed. That old behavior was not compliant with the spec, which unequivocally states "On a source in the AL_STOPPED state, all buffers are processed." Secondly, querying AL_BUFFER on an AL_STREAMING source will now always return 0. Previously it would return the current "active" buffer in the queue, but there's no basis for that in the spec. | ||||
* | Ensure a non-playing or -paused source does not use a mixing voice | Chris Robinson | 2017-02-25 | 4 | -46/+62 |
| | |||||
* | Set CMP0020 for Qt | Chris Robinson | 2017-02-25 | 1 | -0/+3 |
| | |||||
* | Improve handling of source state reads | Chris Robinson | 2017-02-24 | 2 | -72/+89 |
| | | | | | | | This avoids using seq_cst for loading the source state when either inside the mixer, or otherwise protected from inconsistencies with async updates. It also fixes potential race conditions with getting the source offset just as a source stops. | ||||
* | Remove an unused function | Chris Robinson | 2017-02-23 | 2 | -6/+0 |
| | |||||
* | Remove CalcXYZCoeffs and inline CalcAngleCoeffs | Chris Robinson | 2017-02-23 | 6 | -34/+22 |
| | |||||
* | Alter how panpot/pair-wise panning works | Chris Robinson | 2017-02-23 | 3 | -32/+32 |
| | | | | | | | | | | | | | | | | | | | This change allows pair-wise panning to mostly go through the normal ambisonic panning methods, with one special-case. First, a term is added to the stereo decoder matrix's X coefficient so that a centered sound is reduced by -3dB on each output channel. Panning in front creates a similar gain response to the typical L = sqrt(1-pan) R = sqrt(pan) for pan = [0,1]. Panning behind the listener can reduce (up to) an additional -10dB, creating a audible difference between front and back sounds as if simulating head obstruction. Secondly, as a special-case, the source positions are warped when calculating the ambisonic coefficients so that full left panning is reached at -30 degrees and full right at +30 degrees. This is to retain the expected 60-degree stereo width. This warping does not apply to B-Format buffer input, although it otherwise has the same gain responses. | ||||
* | Rename stereo-panning option to stereo-encoding | Chris Robinson | 2017-02-22 | 5 | -37/+40 |
| | | | | Also rename the 'paired' value to 'panpot', and make it the default. | ||||
* | Limit filter gains to -24dB | Chris Robinson | 2017-02-22 | 5 | -40/+34 |
| | |||||
* | Update ChangeLog | Chris Robinson | 2017-02-22 | 1 | -0/+8 |
| | |||||
* | Reduce the default period count to 3 | Chris Robinson | 2017-02-22 | 3 | -3/+3 |
| | |||||
* | Don't remove a period from the OSS buffer | Chris Robinson | 2017-02-22 | 1 | -11/+4 |
| | | | | | Since we're now waiting for space to be available before mixing, the mixing buffer isn't adding another period. | ||||
* | Fix OpenSL latency calculation | Chris Robinson | 2017-02-22 | 1 | -2/+2 |
| | |||||
* | Reduce some code | Chris Robinson | 2017-02-21 | 1 | -61/+33 |
| | |||||
* | Make the "sends" config option act as a limit | Chris Robinson | 2017-02-21 | 3 | -30/+24 |
| | | | | | Instead of forcing the device to always use the specified send count, it simply limits requests to it. | ||||
* | Increase the default effect slot and send count | Chris Robinson | 2017-02-21 | 5 | -21/+24 |
| | | | | | | | | | | The default number of auxiliary effect slots is now 64. This can still be raised by the config file without a hard maximum, but incurs processing cost for each effect slot generated by the app. The default number of source sends is now actually 2, as per the EFX docs. However, it can be raised up to 16 via ALC_MAX_AUXILIARY_SENDS attribute requests, rather than the previous 4. | ||||
* | Dynamically allocate the ALsource Send[] array | Chris Robinson | 2017-02-21 | 5 | -69/+94 |
| | |||||
* | Interleave the voice and source property objects | Chris Robinson | 2017-02-21 | 1 | -13/+12 |
| | |||||
* | Make the voices' Send[] array dynamically sized | Chris Robinson | 2017-02-21 | 5 | -33/+49 |
| | | | | | The voices are still all allocated in one chunk to avoid memory fragmentation. But they're accessed as an array of pointers since the size isn't static. | ||||
* | Print warnings about missing libraries and functions | Chris Robinson | 2017-02-21 | 3 | -2/+24 |
| | |||||
* | Avoid duplicating device buffer layout logic | Chris Robinson | 2017-02-20 | 3 | -38/+38 |
| | |||||
* | Remove an unused flag enum | Chris Robinson | 2017-02-20 | 1 | -3/+0 |
| | |||||
* | Remove mention of the sinc8 resampler | Chris Robinson | 2017-02-20 | 1 | -1/+0 |
| | |||||
* | Allow distance compensation for non-HQ rendering as well | Chris Robinson | 2017-02-20 | 5 | -53/+49 |
| | | | | | It still requires a custom configuration to specify appropriate speaker distances. | ||||
* | Remove the separate surround51rear decoder option | Chris Robinson | 2017-02-19 | 5 | -64/+13 |
| | | | | | | Both 5.1 Side and Rear configurations use 'surround51' to look up the appropriate decoder file. The decoder loader already handles mapping between rear and side channels, so there's no need for separate options. | ||||
* | Apply distance compensation when writing to the output | Chris Robinson | 2017-02-19 | 5 | -122/+106 |
| | |||||
* | Don't use periphonic FOA when the HOA decoder is not periphonic | Chris Robinson | 2017-02-19 | 5 | -41/+55 |
| | |||||
* | Remove the sinc8 resampler option | Chris Robinson | 2017-02-19 | 9 | -309/+39 |
| | | | | | Perf shows less than 1 percent CPU difference from the higher quality bsinc resampler, but uses almost twice as much memory (a 128KB lookup table). | ||||
* | Always lock the device backend before calling aluMixData | Chris Robinson | 2017-02-18 | 11 | -50/+63 |
| | |||||
* | Return some device latency by default | Chris Robinson | 2017-02-18 | 1 | -2/+7 |
| | | | | | | | A device will never have 0 latency. OpenAL Soft itself uses a sample buffer length of UpdateSize*NumUpdates, and during playback will have about (NumUpdates-1) periods filled, more or less. Without a more accurate measurement from the playback system, this is better than reporting 0. | ||||
* | Use select() to wait for audio with OSS and Solaris | Chris Robinson | 2017-02-18 | 2 | -85/+137 |
| | |||||
* | Reorganize ALvoice members | Chris Robinson | 2017-02-15 | 4 | -98/+104 |
| | | | | | This places the Send[] array at the end of the struct, making it easier to handle dynamically. | ||||
* | Make ALsourceProps' Send array dynamically sized | Chris Robinson | 2017-02-14 | 6 | -39/+121 |
| | | | | | | ALsourceProps' Send[] array is placed at the end of the struct, and given an indeterminate size. Extra space is allocated at the end of each struct given the number of auxiliary sends set for the device. | ||||
* | Fix build with non-C11 atomics | Chris Robinson | 2017-02-13 | 2 | -3/+3 |
| | |||||
* | Make the source state atomic | Chris Robinson | 2017-02-13 | 5 | -34/+36 |
| | | | | | Since it's modified by the mixer when playback is ended, a plain struct member isn't safe. | ||||
* | Put BsincState in a generic union | Chris Robinson | 2017-02-13 | 11 | -77/+81 |
| | |||||
* | Porperly check for and use __builtin_assume_aligned | Chris Robinson | 2017-02-13 | 4 | -12/+36 |
| | |||||
* | Clean up the bsinc mixer a bit | Chris Robinson | 2017-02-12 | 3 | -26/+28 |
| | |||||
* | Add NEON-enhanced resamplers | Chris Robinson | 2017-02-12 | 3 | -4/+294 |
| | |||||
* | Print separate messages for building sdl_sound and ffmpeg examples | Chris Robinson | 2017-02-12 | 1 | -3/+3 |
| | |||||
* | Don't require SDL_sound for alffplay | Chris Robinson | 2017-02-11 | 2 | -49/+64 |
| | | | | Also explicitly link with libz for alffplay, since static ffmpeg libs need it. |