aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/coreaudio.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Initialize the new audio unit before disposing the old oneChris Robinson2021-03-091-6/+6
|
* Allow calling BackendBase::open multiple times on playback devicesChris Robinson2021-03-081-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 coreChris Robinson2020-12-241-1/+0
|
* Avoid AL/ALC types in the backendsChris Robinson2020-12-171-15/+15
|
* Don't use ALC error enums for the backend error codeChris Robinson2020-12-171-25/+36
|
* Don't return an enum from captureSamplesChris Robinson2020-12-171-9/+8
| | | | It's always no_error
* Move logging to coreChris Robinson2020-12-171-1/+1
|
* Change a couple macros into constexpr variablesChris Robinson2020-11-281-1/+1
|
* Fix a UInt32 variable typeChris Robinson2020-11-241-1/+1
|
* Fill all buffers for CoreAudio playbackChris Robinson2020-11-241-2/+6
|
* Disable buffer allocation with CoreAudio captureChris Robinson2020-11-241-0/+8
|
* Ceil the scaled buffer size instead of roundChris Robinson2020-11-231-1/+3
| | | | The result has to be large enough to get the original requested size from it.
* Fix buffer offset for the second conversionChris Robinson2020-11-231-1/+1
|
* Fix capture buffer size scaling in CoreAudioChris Robinson2020-11-231-5/+5
|
* Use kAudioUnitScope_Global to get the maximum frame sizeChris Robinson2020-11-231-1/+1
|
* Use clearer variable namesChris Robinson2020-11-201-1/+1
|
* Don't try to override the CoreAudio maximum capture sliceChris Robinson2020-11-191-20/+28
|
* Add missing include for the CoreAudio backendChris Robinson2020-11-051-0/+1
|
* Change a couple functions into member functionsChris Robinson2020-08-071-1/+1
|
* Move a couple related functions to the backend baseChris Robinson2020-06-121-1/+1
|
* Don't return a bool from the backend start methodChris Robinson2020-04-281-15/+7
|
* Use standard attribute declarationsChris Robinson2020-04-131-0/+1
|
* Get rid of a redundant enumChris Robinson2020-03-301-3/+3
|
* Return the enumerated device names from the backendChris Robinson2020-03-301-6/+8
| | | | Rather than using an out parameter.
* Remove unnecessary locks now that the mixer doesn't require oneChris Robinson2020-02-261-1/+0
|
* Make CreateRingBuffer a static RingBuffer methodChris Robinson2020-01-101-1/+1
|
* Handle padding between device sample framesChris Robinson2019-12-211-1/+2
| | | | | | | | 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.
* Make C callbacks noexceptChris Robinson2019-10-091-11/+11
| | | | | No telling what would happen if exceptions managed to get back into presumably C-based callers.
* Never return null from CreateRingBufferChris Robinson2019-10-081-1/+0
| | | | | Allocation failure would already throw a bad_alloc anyway, now a size overflow throws an exception too.
* Clean up some exception messages and avoid duplicate log messagesChris Robinson2019-10-081-52/+2
|
* Avoid raw lock/unlock callsChris Robinson2019-10-071-2/+1
|
* Use exceptions for backend open failuresChris Robinson2019-10-071-83/+82
|
* Make MAX_RESAMPLER_PADDING specify the total paddingChris Robinson2019-09-281-1/+1
|
* Use FastBSinc24 for WASAPI and CoreAudio captureChris Robinson2019-09-281-1/+1
| | | | Given a fixed rate, there's no downside to the fast version.
* Make the resampler type an enum classChris Robinson2019-09-221-1/+1
|
* Return and pass more appropriate types for backendsChris Robinson2019-09-151-19/+19
|
* Fix a few more GCC warningsChris Robinson2019-09-141-1/+2
|
* Fix some more implicit conversions noted by GCCChris Robinson2019-09-141-8/+9
|
* Fix a few more C-style castsChris Robinson2019-09-111-1/+1
|
* Use unsigned for the sample and channel convertersChris Robinson2019-08-201-5/+4
|
* no AudioObjectPropertyAddress on iOSLi Keqing2019-08-071-0/+2
|
* Rename Alc to alcChris Robinson2019-07-281-0/+709