aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a couple more methods to al::optionalChris Robinson2021-12-311-0/+16
|
* Avoid some unnecessary copyingChris Robinson2021-12-311-10/+9
|
* Some more restructuring of the PipeWire backendChris Robinson2021-12-301-73/+58
|
* Set the node rate for the pipewire capture stream tooChris Robinson2021-12-291-0/+1
|
* Move some constexpr variables to where they're usedChris Robinson2021-12-281-50/+47
|
* C++-ize the PipeWire backend some moreChris Robinson2021-12-281-61/+94
| | | | | | | | | Use unique_ptrs for a few more types to avoid explicit free calls. Move ThreadMainloop::wait to the unique_lock wrapper that's holding the lock. Since the mainloop acts as both a lock and condition_variable, passing the lock to the wait method makes no sense. Also have it optionally take a predicate functor to dictate when to stop waiting.
* Make sure alffplay properly stops when quitingChris Robinson2021-12-271-10/+13
| | | | | | The parser thread could be waiting on the threads to join after queueing all packets, so it wouldn't see mQuit to flush the queue. So make a stop method that forces a flush when setting mQuit.
* Trace the device format after starting playbackChris Robinson2021-12-271-0/+7
| | | | | Some devices can change it when starting, so it's useful to know what the device configuration is when that happens.
* Heavily update alffplay packet handlingChris Robinson2021-12-261-157/+209
| | | | | Avoid deprecated use of raw AVPacket objects, and use a separate thread to send packets than receives the decoded frames.
* Add the PipeWire config option to alsoft-configChris Robinson2021-12-252-0/+33
|
* Increase the priority of the PipeWire backendChris Robinson2021-12-251-6/+6
|
* Check for audio devices when initializing PipeWireChris Robinson2021-12-252-3/+79
| | | | | | | | | | | This isn't great since it can fail when PipeWire is handling audio but no devices are available at initialization, causing the Pulseaudio or ALSA backend to be selected instead. Future versions of PipeWire are expected to have a better way to detect if it's handling audio, but for now this is better than nothing. A config option is available for users to have the PipeWire backend be usable even with no devices at initialization, just in case.
* Fix non-runtime linking with pipewireChris Robinson2021-12-251-1/+2
|
* Remove unnecessary ifdefs from alffplayChris Robinson2021-12-241-32/+9
| | | | We already assume OpenAL Soft's alext.h, which these are part of now.
* Use the audio clock as the default in alffplayChris Robinson2021-12-241-49/+59
|
* Use a bitset instead of a plain uint for flagsChris Robinson2021-12-234-37/+42
|
* Don't do direct channels with UHJ outputChris Robinson2021-12-212-21/+17
| | | | | | | | | | Directly mixing a non-UHJ stereo signal into a UHJ stereo signal results in a non-UHJ stereo signal. Such a mix can't be properly decoded anymore. An option can probably be added for users that intend to listen to UHJ output undecoded and let a stereo sound come through as-is on their speakers, but it probably shouldn't be the default for cases where the output may be decoded back.
* Work around a MinGW thread_local bugChris Robinson2021-12-207-22/+60
| | | | | | | | | | MinGW-w64 generates bad code when accessing extern thread_local objects. Wrapper functions are used to ensure it only accesses them from the same place they're defined. This unfortunately adds a bit of overhead for what should be a relatively simple thing. These functions are inlined for non-MinGW targets, avoiding the overhead on non-affected targets.
* Simplify and combine a couple macrosChris Robinson2021-12-181-8/+8
|
* Don't swallow up buffer callback samples when pausingChris Robinson2021-12-181-11/+17
|
* Don't update voice sample histories when stopping/pausingChris Robinson2021-12-181-24/+25
| | | | | Since a voice pausing is on a fade-out, and will replay the same samples again when restarting and fading in.
* Set the voice's ambisonic order for playing super stereoChris Robinson2021-12-171-1/+1
|
* Move some more context functions to the proper sourceChris Robinson2021-12-173-77/+80
|
* Move the effects base and effectslot to coreChris Robinson2021-12-1722-225/+232
|
* Move some ContextBase function definitions to the right placeChris Robinson2021-12-172-64/+70
|
* Remove an unnecessary parameterChris Robinson2021-12-173-16/+12
|
* Allocate voice properties in clustersChris Robinson2021-12-175-31/+39
|
* Set the PipeWire stream rateChris Robinson2021-12-161-0/+1
| | | | | When requesting a non-default rate, this may allow the hardware to run at the requested rate.
* Rename Voice::mNumChannels for clarityChris Robinson2021-12-153-7/+7
|
* Add an option to use Super Stereo in alffplayChris Robinson2021-12-151-0/+23
|
* Add source properties for Super StereoChris Robinson2021-12-158-30/+116
| | | | | When playing a stereo format, enabling Super Stereo causes the source to behave as a B-Format source, with a variable width control.
* Minor UHJ coefficient scaling precision improvementChris Robinson2021-12-131-3/+3
|
* Make an inline function to check for 2D ambisonic formatsChris Robinson2021-12-124-11/+11
|
* Avoid initializing the NFC filter for every voice channelChris Robinson2021-12-115-72/+61
| | | | | | It can be initialized once with the device's speaker distance since it won't change in between resets, then copied into the voice where it can be adjusted as needed.
* Add an internal Super Stereo formatChris Robinson2021-12-119-33/+64
| | | | | | | It's not available as an AL buffer format (yet) since I'm not sure how to expose it. Internally it seems fine as a separate channel configuration, but because OpenAL combines the channel configuration and sample type, a flag may work better there.
* Use a vector in BFormatDec instead of FlexArrayChris Robinson2021-12-102-5/+11
| | | | | | FlexArray would be better since it's not likely to use much memory for the array, but the std::unique_ptr makes BFormatDec a non-standard layout, causing GCC and Clang to complain.
* Remove unnecessary linesChris Robinson2021-12-101-3/+0
|
* Improve the 2-channel UHJ responseChris Robinson2021-12-094-4/+73
| | | | | | This attempts to correct for the differences needed for 2-channel UHJ's shelf filters given the output shelf filters. It's far from ideal, but better than nothing.
* Add a function for Super Stereo conversionsChris Robinson2021-12-092-0/+97
| | | | | | | a.k.a. Stereo Enhance. A common feature of UHJ decoders to take a plain stereo signal and generate a B-Format signal with variable width control, widening (or narrowing) the soundfield while maintaining a sharp central image.
* GitHub CI still doesn't support libpipewire-0.3-devChris Robinson2021-12-081-2/+0
|
* Adjust the crossover frequency for HRTF ambisonic decodingChris Robinson2021-12-081-0/+13
|
* Build with PipeWire with Linux CIChris Robinson2021-12-081-0/+2
|
* Update changelogChris Robinson2021-12-061-0/+2
|
* Don't clamp the distance with distance attenuation disabledChris Robinson2021-11-301-1/+0
|
* Slight update to the UHJ coefficientsChris Robinson2021-11-283-46/+46
| | | | | | | The extended precision of the encoder's 0.6512*X term was guesswork, with no real basis for it. Switch back to the original value until something better actually comes up. Also updates the decoder to account for the change in the encoder.
* Recognize PipeWire in alsoft-configChris Robinson2021-11-261-0/+3
|
* Avoid passing spans unnecessarilyChris Robinson2021-11-253-8/+8
|
* Don't assume the UhjDecoder::decode offset is 16-byte alignedChris Robinson2021-11-251-6/+6
| | | | It's not, it's MaxResamplerEdge which is currently 24.
* Use a base for the UhjEncoder/Decoder common propertiesChris Robinson2021-11-252-18/+16
|
* Return true from alcReopenDeviceSOFT if the new device openedChris Robinson2021-11-211-4/+29
|