Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use cinttypes instead of inttypes.h in C++ | Chris Robinson | 2023-06-01 | 1 | -1/+1 |
| | |||||
* | Specify the device type for the event callback | Chris Robinson | 2023-06-01 | 1 | -14/+14 |
| | |||||
* | Report device change events from CoreAudio (#856) | Deal(一线灵) | 2023-06-01 | 1 | -1/+50 |
| | | | | | | | | | * Report device change events from CoreAudio * Fix compile error * Use optional * Use optional, no unique_ptr | ||||
* | Include IOAudioTypes.h only when needed | Chris Robinson | 2023-05-31 | 1 | -4/+3 |
| | |||||
* | Avoid using al::vector unnecessarily | Chris Robinson | 2023-05-12 | 1 | -2/+2 |
| | |||||
* | Clean up some more includes | Chris Robinson | 2023-05-12 | 1 | -4/+4 |
| | |||||
* | Use std::byte instead of a custom al::byte | Chris Robinson | 2023-05-04 | 1 | -3/+3 |
| | |||||
* | Handle signed int values holding FourCC codes | Chris Robinson | 2023-04-26 | 1 | -0/+1 |
| | |||||
* | Print CoreAudio errors as FourCC codes when possible | Chris Robinson | 2023-04-26 | 1 | -43/+58 |
| | |||||
* | Check the correct device property to detect headphones | Chris Robinson | 2023-04-25 | 1 | -3/+3 |
| | |||||
* | Try to detect headphones with CoreAudio | Chris Robinson | 2023-04-24 | 1 | -0/+18 |
| | |||||
* | Change a function to a static method | Chris Robinson | 2022-11-13 | 1 | -1/+1 |
| | |||||
* | Add preliminary support for 7.1.4 output modes | Chris Robinson | 2022-11-03 | 1 | -0/+1 |
| | | | | | | | | 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 the ringbuffer write size | Chris Robinson | 2022-08-18 | 1 | -1/+1 |
| | |||||
* | Use an intermediate buffer for writing to the ringbuffer | Chris Robinson | 2022-08-18 | 1 | -26/+11 |
| | | | | | It doesn't seem as though AudioUnitRender likes being given two buffers to render/capture samples into segmented memory. | ||||
* | Pass the action flags to AudioUnitRender from the callback | Chris Robinson | 2022-08-17 | 1 | -3/+2 |
| | |||||
* | Pass the bus number to AudioUnitRender from the callback | Chris Robinson | 2022-08-16 | 1 | -2/+2 |
| | |||||
* | Remove a couple unnecessary casts | Chris Robinson | 2022-05-13 | 1 | -3/+3 |
| | |||||
* | Fix the CoreAudio output element value | Chris Robinson | 2022-05-10 | 1 | -1/+1 |
| | |||||
* | Fix CoreAudio audio unit element values for capture | Chris Robinson | 2022-05-02 | 1 | -19/+21 |
| | |||||
* | Handle 3D7.1 as a separate channel configuration | Chris Robinson | 2022-04-26 | 1 | -0/+1 |
| | | | | | | | 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. | ||||
* | Define the CoreAudio default name only when needed | Chris Robinson | 2022-02-23 | 1 | -2/+4 |
| | |||||
* | Avoid 5.1Rear as its own channel configuration | Chris Robinson | 2021-07-30 | 1 | -1/+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. | ||||
* | Set the CoreAudio stream according to the device channel format | Chris Robinson | 2021-07-24 | 1 | -53/+19 |
| | |||||
* | Attempt to support capture enumeration with CoreAudio | Chris Robinson | 2021-07-10 | 1 | -45/+72 |
| | |||||
* | Use variables and types when they're defined | Chris Robinson | 2021-07-09 | 1 | -0/+6 |
| | |||||
* | Don't define enumeration functions when they're not used | Chris Robinson | 2021-07-09 | 1 | -16/+25 |
| | |||||
* | Use a unique_ptr to hold raw byte memory | Chris Robinson | 2021-06-21 | 1 | -2/+4 |
| | |||||
* | Fix getting of device channel count in CoreAudio backend | alexey.lysiuk | 2021-06-21 | 1 | -3/+1 |
| | | | | | | | AudioBufferList contains a variable length array of mNumberBuffers elements, so it should not be created with the default constructor like usual class instances. Unfortunately, Apple developer site documentation is literally empty for this API. There is a bunch of comments in framework's header files. Here is the correct usage of AudioBufferList pointer from Chromium: https://chromium.googlesource.com/chromium/src/media/+/008a1abc573e1f8bcf513b50ce48a923b30ef130/audio/mac/audio_manager_mac.cc#266 There were occasional crashes because of memory corruption which was confirmed by address sanitizer | ||||
* | Fix some size types | Chris Robinson | 2021-06-18 | 1 | -2/+2 |
| | |||||
* | Initial attempt at CoreAudio playback enumeration | Chris Robinson | 2021-06-18 | 1 | -14/+253 |
| | |||||
* | Handle tvOS case | HALX99 | 2021-05-13 | 1 | -3/+3 |
| | |||||
* | Add back a missing include | Chris Robinson | 2021-04-27 | 1 | -0/+1 |
| | |||||
* | Update include headers | Chris Robinson | 2021-04-27 | 1 | -7/+6 |
| | | | | Don't add alc/ to the include paths. | ||||
* | Use the DeviceBase for the backend | Chris Robinson | 2021-04-24 | 1 | -3/+3 |
| | |||||
* | Move some more sources to core | Chris Robinson | 2021-04-24 | 1 | -1/+1 |
| | |||||
* | Initialize the new audio unit before disposing the old one | Chris Robinson | 2021-03-09 | 1 | -6/+6 |
| | |||||
* | Allow calling BackendBase::open multiple times on playback devices | Chris Robinson | 2021-03-08 | 1 | -1/+11 |
| | | | | | | | | | | | 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. | ||||
* | 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 | -15/+15 |
| | |||||
* | Don't use ALC error enums for the backend error code | Chris Robinson | 2020-12-17 | 1 | -25/+36 |
| | |||||
* | Don't return an enum from captureSamples | Chris Robinson | 2020-12-17 | 1 | -9/+8 |
| | | | | It's always no_error | ||||
* | Move logging to core | Chris Robinson | 2020-12-17 | 1 | -1/+1 |
| | |||||
* | Change a couple macros into constexpr variables | Chris Robinson | 2020-11-28 | 1 | -1/+1 |
| | |||||
* | Fix a UInt32 variable type | Chris Robinson | 2020-11-24 | 1 | -1/+1 |
| | |||||
* | Fill all buffers for CoreAudio playback | Chris Robinson | 2020-11-24 | 1 | -2/+6 |
| | |||||
* | Disable buffer allocation with CoreAudio capture | Chris Robinson | 2020-11-24 | 1 | -0/+8 |
| | |||||
* | Ceil the scaled buffer size instead of round | Chris Robinson | 2020-11-23 | 1 | -1/+3 |
| | | | | The result has to be large enough to get the original requested size from it. | ||||
* | Fix buffer offset for the second conversion | Chris Robinson | 2020-11-23 | 1 | -1/+1 |
| | |||||
* | Fix capture buffer size scaling in CoreAudio | Chris Robinson | 2020-11-23 | 1 | -5/+5 |
| |