Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove DEF_NEWDEL | Chris Robinson | 2023-12-16 | 1 | -4/+0 |
| | | | | | C++17 provides alignment-aware allocators for us, so we don't need to use our own to make sure classes/structs are properly aligned. | ||||
* | Mostly finish cleanup for backends | Chris Robinson | 2023-12-11 | 1 | -1/+2 |
| | | | | Except CoreAudio and Solaris backends | ||||
* | Remove some long dead code | Chris Robinson | 2023-12-08 | 1 | -68/+0 |
| | | | | It's unlikely to ever get fixed/revived now with Oboe | ||||
* | Clean up some more clang-tidy warnings | Chris Robinson | 2023-12-08 | 1 | -1/+1 |
| | |||||
* | Replace a global function with a member function | Chris Robinson | 2023-12-03 | 1 | -1/+1 |
| | |||||
* | Use a string_view for the backend open method | Chris Robinson | 2023-08-06 | 1 | -12/+12 |
| | |||||
* | Use a lambda to forward a C callback | Chris Robinson | 2023-07-20 | 1 | -6/+6 |
| | |||||
* | Fix a comment typo | Chris Robinson | 2023-07-04 | 1 | -1/+1 |
| | |||||
* | Rename threads.cpp/h to alsem.cpp/h | Chris Robinson | 2023-06-01 | 1 | -1/+1 |
| | |||||
* | Move althrd_setname to its own source | Chris Robinson | 2023-06-01 | 1 | -0/+1 |
| | |||||
* | Clean up some more includes | Chris Robinson | 2023-05-12 | 1 | -1/+2 |
| | |||||
* | Use std::byte instead of a custom al::byte | Chris Robinson | 2023-05-04 | 1 | -3/+3 |
| | |||||
* | Use macros for the likely/unlikely attributes | Chris Robinson | 2023-03-01 | 1 | -48/+49 |
| | | | | | The syntax parser for GCC 8 (and earlier?) fails when these attributes are in certain places. | ||||
* | Fix RingBuffer crash in OpenSL backend (#807) | IamSN0WBALL | 2023-01-12 | 1 | -1/+1 |
| | | | Co-authored-by: IamSN0WBALL <[email protected]> | ||||
* | Avoid using a macro to wrap standard attributes | Chris Robinson | 2022-12-06 | 1 | -6/+6 |
| | |||||
* | Avoid LIKELY/UNLIKELY macros | Chris Robinson | 2022-12-05 | 1 | -1/+1 |
| | |||||
* | Use standard likely/unlikely attributes when available | Chris Robinson | 2022-12-05 | 1 | -4/+4 |
| | |||||
* | Add preliminary support for 7.1.4 output modes | Chris Robinson | 2022-11-03 | 1 | -0/+5 |
| | | | | | | | | I don't know how different sound APIs handle 7.1.4 ("Atmos" or "Auro3D") output, but currently it simply specifies the additional channels with the height channel labels. This isn't likely how it works for a virtualized channel bed, for playing over other with-height configurations (7.1.2, 5.1.4, etc), but this should be an okay start. | ||||
* | Fix requeueing logic for OpenSLCapture::captureSamples | Chris Robinson | 2022-05-28 | 1 | -17/+29 |
| | | | | | | | | | | | | | | The write vector represents the chunks queued for OpenSL, and the write pointer only increments when OpenSL fills in more samples. So requeueing from the start of the write vector is requeueing chunks that are already queued, which is obviously wrong. It instead needs to queue chunks that become available as they're read. Because the ring buffer holds more elements than can be written to at a givem time, the read vector does not represent the next writable chunks to queue. Advancing the read pointer increases the number of writable elements, so instead of queueing from the read vector or the start of the write vector, queue from the end of the write vector given the number of chunks read. | ||||
* | Reset the ringbuffer when stopping OpenSL playback | Chris Robinson | 2022-04-26 | 1 | -0/+2 |
| | |||||
* | Handle 3D7.1 as a separate channel configuration | Chris Robinson | 2022-04-26 | 1 | -1/+2 |
| | | | | | | | It's treated as 5.1 + 2 aux channels. This allows AL_DIRECT_CHANNELS_SOFT to behave better, not forwarding rear left/right channel inputs to lower front and upper rear, and allows reporting a more appropriate output mode to the app instead of 7.1. | ||||
* | Clear capture buffers before enqueueing them with OpenSL | Chris Robinson | 2022-04-08 | 1 | -3/+12 |
| | |||||
* | Avoid using an if_constexpr macro | Chris Robinson | 2022-02-22 | 1 | -1/+1 |
| | | | | | It doesn't actually use if constexpr, and compilers are smart enough to optimize. Some functions can use templates instead. | ||||
* | Avoid 5.1Rear as its own channel configuration | Chris Robinson | 2021-07-30 | 1 | -3/+0 |
| | | | | | | It messes with 5.1 sources using direct channels, and the surround channels are supposed to map to the side labels. Individual backends can deal with the channel order/label differences, as they already do to a degree. | ||||
* | Update include headers | Chris Robinson | 2021-04-27 | 1 | -3/+3 |
| | | | | Don't add alc/ to the include paths. | ||||
* | Use the DeviceBase for the backend | Chris Robinson | 2021-04-24 | 1 | -3/+3 |
| | |||||
* | Move helpers.cpp to core | Chris Robinson | 2021-04-22 | 1 | -1/+1 |
| | |||||
* | Allow calling BackendBase::open multiple times on playback devices | Chris Robinson | 2021-03-08 | 1 | -0/+3 |
| | | | | | | | | | | | It will not be called while the device is running. If the first call succeeds, a subsequent call that happens to fail must leave the existing device state as it was so it can be resumed. This is a rough first pass. It will fail when trying to re-open the same device which can only be opened once (for instance, with direct hardware access, on hardware that doesn't do its own mixing). Some backends won't guarantee the new device is usable until the reset() or start() call. | ||||
* | Use if constexpr when possible | Chris Robinson | 2021-01-22 | 1 | -1/+2 |
| | |||||
* | Make the endian test more C++-like | Chris Robinson | 2021-01-21 | 1 | -11/+15 |
| | |||||
* | Avoid calling readAdvance in a loop | Chris Robinson | 2021-01-17 | 1 | -3/+5 |
| | |||||
* | Don't assume the ring buffer's read vector is the next writable space | Chris Robinson | 2021-01-15 | 1 | -30/+36 |
| | | | | | This is untrue since the ring buffer leaves one element unwritten, so there's one extra element to be written once a readable element is read. | ||||
* | Move alexcpt to core | Chris Robinson | 2020-12-24 | 1 | -1/+0 |
| | |||||
* | Avoid AL/ALC types in the backends | Chris Robinson | 2020-12-17 | 1 | -17/+17 |
| | |||||
* | Don't use ALC error enums for the backend error code | Chris Robinson | 2020-12-17 | 1 | -9/+12 |
| | |||||
* | Don't return an enum from captureSamples | Chris Robinson | 2020-12-17 | 1 | -10/+8 |
| | | | | It's always no_error | ||||
* | Move logging to core | Chris Robinson | 2020-12-17 | 1 | -1/+1 |
| | |||||
* | Add a gain argument to altonegen (#502) | Eliot Miranda | 2020-12-04 | 1 | -1/+1 |
| | | | | | | * Fix a speeling rorre in an error message. Add a gain command-line argument to altonegen.c * Fix some formatting issues and a copy/paste error. | ||||
* | Change a couple functions into member functions | Chris Robinson | 2020-08-07 | 1 | -10/+9 |
| | |||||
* | Move a couple related functions to the backend base | Chris Robinson | 2020-06-12 | 1 | -1/+1 |
| | |||||
* | Don't return a bool from the backend start method | Chris Robinson | 2020-04-28 | 1 | -21/+14 |
| | |||||
* | Use standard attribute declarations | Chris Robinson | 2020-04-13 | 1 | -0/+1 |
| | |||||
* | Get rid of a redundant enum | Chris Robinson | 2020-03-30 | 1 | -3/+3 |
| | |||||
* | Return the enumerated device names from the backend | Chris Robinson | 2020-03-30 | 1 | -6/+8 |
| | | | | Rather than using an out parameter. | ||||
* | Remove the mutex from the backend base | Chris Robinson | 2020-03-29 | 1 | -2/+4 |
| | |||||
* | Remove unnecessary locks now that the mixer doesn't require one | Chris Robinson | 2020-02-26 | 1 | -4/+3 |
| | |||||
* | Make CreateRingBuffer a static RingBuffer method | Chris Robinson | 2020-01-10 | 1 | -2/+2 |
| | |||||
* | Handle padding between device sample frames | Chris Robinson | 2019-12-21 | 1 | -2/+4 |
| | | | | | | | | The padding must be constant and sample type aligned (e.g. some fixed multiple of two bytes between the start of two consecutive frames for 16-bit output). The intent is to always have the ability for stereo output with WASAPI even if the device has some other unsupported configuration, as long as front-left and front-right exist. | ||||
* | Gracefully drain the OpenSL capture buffer on disconnect | Chris Robinson | 2019-10-10 | 1 | -13/+24 |
| | |||||
* | Make C callbacks noexcept | Chris Robinson | 2019-10-09 | 1 | -6/+6 |
| | | | | | No telling what would happen if exceptions managed to get back into presumably C-based callers. |