aboutsummaryrefslogtreecommitdiffstats
path: root/alc/context.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Mostly finish cleanup for backendsChris Robinson2023-12-111-2/+6
| | | | Except CoreAudio and Solaris backends
* Much more clang-tidy cleanupChris Robinson2023-12-101-1/+1
|
* Refactor FlexArrayChris Robinson2023-12-101-0/+1
| | | | | This avoids using an array of 1 as a flexible array member, and instead uses a span to reference the memory after itself.
* Clean up some more clang-tidy warningsChris Robinson2023-12-081-1/+1
|
* Rename the convolution reverb effect to just convolutionChris Robinson2023-10-121-1/+1
| | | | | While the common use case, convolution can do more than just reverb, and it nicely shortens the name.
* Avoid casting an integer literalChris Robinson2023-09-221-2/+2
|
* Make some global and static member variables inlineChris Robinson2023-09-111-8/+0
| | | | | This also seems to work around the problematic MinGW code generation, so the indirection to access it can be removed.
* Don't null check the context in the direct EAX functionsChris Robinson2023-08-131-41/+13
|
* Make AL(C)_EXT_debug publicChris Robinson2023-08-111-1/+1
|
* Rename threads.cpp/h to alsem.cpp/hChris Robinson2023-06-011-1/+0
|
* Add extension strings for the in-progress direct APIChris Robinson2023-05-141-0/+1
|
* Implement direct functions for extension queries and EAXChris Robinson2023-05-141-14/+11
|
* Store extension strings individuallyChris Robinson2023-05-081-87/+79
| | | | And dynamically build the full AL_EXTENSIONS string
* Implement a context debug flagChris Robinson2023-05-031-3/+4
| | | | | Setting the debug flag at context creation enables more debug messages for the created context, and enables debug messages by default.
* Rename AL_SOFT_debug to AL_EXT_DEBUGChris Robinson2023-05-031-1/+1
|
* Implement pushing/popping debug groupsChris Robinson2023-05-011-105/+0
|
* Put the debug filters into a groupChris Robinson2023-05-011-4/+6
|
* Use a 64-bit value for tracking ID filtersChris Robinson2023-05-011-14/+9
|
* Fix some debug message length limit checksChris Robinson2023-05-011-4/+7
|
* Implement debug message filtering for IDsChris Robinson2023-05-011-0/+11
|
* Fix shadowing warnings and add another missing includeChris Robinson2023-04-301-27/+28
|
* Add an extension string for the in-progress debug extensionChris Robinson2023-04-301-0/+1
|
* Implement debug log storageChris Robinson2023-04-301-1/+28
|
* Unlock the debug lock when calling the callbackChris Robinson2023-04-301-3/+8
| | | | | | There's no full guarantee about calling AL functions in a debug callback, due to a risk of deadlocks from an AL call that tries to take a lock that's already held at the time the callback is invoked, but this helps more work.
* Improve some debug error handlingChris Robinson2023-04-301-3/+6
|
* Separate the internal debug enums from the API valuesChris Robinson2023-04-301-28/+39
|
* Move debug functions to their own sourceChris Robinson2023-04-301-166/+0
|
* Implement non-ID based debug message filteringChris Robinson2023-04-301-1/+146
|
* Start a debug API extensionChris Robinson2023-04-291-1/+77
|
* Unset sLocalContext when releasing itChris Robinson2023-04-281-1/+1
|
* Support the AL_EXT_STATIC_BUFFER extensionChris Robinson2023-04-031-0/+1
|
* Finalize AL_SOFT_source_start_delayChris Robinson2023-03-311-1/+1
|
* Add a compat option to restore AL_SOFT_buffer_sub_dataChris Robinson2023-03-171-16/+34
|
* Rename some member functions and variables for consistencyChris Robinson2023-03-161-86/+86
|
* Commit deferred EAX properties in alcProcessContextChris Robinson2023-03-161-10/+7
|
* Don't change the context's EAX version on every set/get callChris Robinson2023-03-111-40/+9
|
* Don't commit EAX updates in applyAllUpdatesChris Robinson2023-03-111-8/+8
| | | | | | | | | | To avoid alcProcessContext causing deferred EAX properties to be committed. This simplifies updates when EAX has been initialized, but never or rarely used. Committing now always occurs in EAXSet when the property is non-deferred, updating the OpenAL object(s) with it (with OpenAL's updates then being applied based on the context's defer state).
* Add queries for the buffer byte/sample/sec lengthChris Robinson2023-03-071-0/+1
| | | | | | | | | | | | | These used to exist with the now-defunct AL_SOFT_buffer_samples extension, this just restores those queries without extra baggage. The sample length query are necessary when handling ADPCM buffers, since the size/channels*8/bits calculation is incorrect with ADPCM. 'Bits' is usually reported as 4 since most samples in a block are stored as nibbles, but that's only approximate and doesn't account for the block header. The average number of bits per sample in an ADPCM block can't be represented as an integer, so the more blocks there are stored in the buffer, the more inaccurate the calculation becomes.
* Add AL_SOFT_UHJ_ex to the extension listChris Robinson2023-02-261-1/+2
|
* Avoid using auto for lambda parametersChris Robinson2023-02-061-1/+1
|
* Don't set an EAX version by default for sourcesChris Robinson2023-02-051-9/+0
| | | | | | | | | Presuming sources start in a neutral state for EAX effects, that is they're not affected by EAX by default, there's no need to set an active EAX state for one until the app sets an EAX property on it. Since the deferred and immediate properties are stored independently per-version, they can always be set to defaults, and simply not have a particular version committed as active until the app sets an EAX property, which will inherently set the active version.
* clang-tidy cleanups (#800)Rosen Penev2023-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clang-tidy: use bool literals Found with modernize-use-bool-literals Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: replace std::bind with lambdas Found with modernize-avoid-bind Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: use data() instead of pointer stuff Found with readability-container-data-pointe Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: use empty() Found with readability-container-size-empty Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: remove static in anon namespace Found with readability-static-definition-in-anonymous-namespace Signed-off-by: Rosen Penev <[email protected]> * clang-tidy: remove const return Found with readability-const-return-type Signed-off-by: Rosen Penev <[email protected]> Signed-off-by: Rosen Penev <[email protected]>
* Use a simple spinlock to protect the current global contextChris Robinson2022-12-301-0/+8
| | | | | This will be much for efficient than a recursive mutex, given the amount of contention will be very low.
* Rename a potentially confusing member functionChris Robinson2022-12-081-2/+2
|
* Add preliminary support for 7.1.4 output modesChris Robinson2022-11-031-0/+4
| | | | | | | | 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.
* Add functions to start sources at a particular device timeChris Robinson2022-11-031-0/+1
| | | | | | | | This starts a source at a particular device clock time, rounded to the nearest sample (really, 4th sample for SIMD reasons), allowing to start a sound at a particular point in the output instead of the next update. Unlike using negative offsets, this is not affected by pitch/velocity.
* [EAX_CONTEXT] Fix defaults for current propertiesBoris I. Bendovsky2022-07-171-4/+36
|
* [EAX_FX_SLOT] Mark sources as changed instead of commiting them to catch up ↵Boris I. Bendovsky2022-07-171-6/+1
| | | | with changes in FX slot
* Don't pass an EaxCall to initialize_fx_slotsChris Robinson2022-07-151-7/+6
|
* Don't store and manage wet buffers separatelyChris Robinson2022-07-151-5/+0
|