aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/sndio.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Clean up some gotos and non-optimal castsChris Robinson2023-12-261-64/+67
|
* Fix implicit widening after multiplicationChris Robinson2023-12-231-2/+2
|
* Ensure struct members are initializedChris Robinson2023-12-201-1/+1
|
* Remove DEF_NEWDELChris Robinson2023-12-161-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 backendsChris Robinson2023-12-111-10/+11
| | | | Except CoreAudio and Solaris backends
* Fix some clang-tidy warningsChris Robinson2023-12-081-1/+1
|
* Use a string_view for the backend open methodChris Robinson2023-08-061-12/+12
|
* Fix some typos (#872)Dirk Stolle2023-07-041-1/+1
|
* Use cinttypes instead of inttypes.h in C++Chris Robinson2023-06-011-1/+1
|
* Move althrd_setname to its own sourceChris Robinson2023-06-011-1/+1
|
* Use std::byte instead of a custom al::byteChris Robinson2023-05-041-8/+8
|
* Make sure sio_write and sio_read return valid valuesChris Robinson2022-11-071-5/+12
|
* Avoid a shadow declaration warningChris Robinson2022-03-301-7/+7
|
* Use a local unique_ptr array instead of a struct memberChris Robinson2021-09-011-6/+5
| | | | For the sndio poll fds.
* Fix crashes in SndioCapture::recordProc (#594)Andrew Krasavin2021-09-011-0/+9
| | | | | | * Fix crashes while capturing audio using openal with sndio backend. * Proper function for mFds preallocation. Now it is checked whether the returned value of the sin_nfds() function is not a negative number.
* Use non-block mode for sndio captureChris Robinson2021-07-301-47/+76
|
* Simplify channel handling in the sndio backendChris Robinson2021-07-291-89/+63
|
* Update include headersChris Robinson2021-04-271-3/+3
| | | | Don't add alc/ to the include paths.
* Use the DeviceBase for the backendChris Robinson2021-04-241-3/+3
|
* Move helpers.cpp to coreChris Robinson2021-04-221-1/+1
|
* Move declarations to a more appropriate headerChris Robinson2021-04-221-0/+1
|
* Allow calling BackendBase::open multiple times on playback devicesChris Robinson2021-03-081-2/+6
| | | | | | | | | | | 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-9/+9
|
* Don't use ALC error enums for the backend error codeChris Robinson2020-12-171-15/+18
|
* Don't return an enum from captureSamplesChris Robinson2020-12-171-9/+6
| | | | It's always no_error
* Move logging to coreChris Robinson2020-12-171-2/+2
|
* Change a couple functions into member functionsChris Robinson2020-08-071-4/+4
|
* Move a couple related functions to the backend baseChris Robinson2020-06-121-2/+2
|
* Check the returned sample endianess with sndioChris Robinson2020-06-071-0/+6
|
* Fix a return valueChris Robinson2020-06-071-1/+1
|
* Use a safer layout if sndio changes the channel countChris Robinson2020-06-071-61/+78
|
* sndio: Support more than 2 channelsDaniel Gibson2020-06-071-2/+32
| | | | | | | So far the sndio backend only supports Mono and Stereo, but sndio supports up to 16 channels (64 in their current git code). This adds support for all the openal-soft formats (DevFmt*). I tested this on Linux with 5.1 surround speakers.
* Don't return a bool from the backend start methodChris Robinson2020-04-281-24/+12
|
* 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-4/+1
|
* 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.
* 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-34/+13
|
* Avoid raw lock/unlock callsChris Robinson2019-10-071-3/+4
|
* Use exceptions for backend open failuresChris Robinson2019-10-071-41/+44
|
* Return and pass more appropriate types for backendsChris Robinson2019-09-151-18/+18
|
* Return unsigned values from the FromDevFmt functionsChris Robinson2019-09-131-7/+6
|
* Avoid C-style casts in C++Chris Robinson2019-09-111-1/+1
|
* Rename Alc to alcChris Robinson2019-07-281-0/+495