summaryrefslogtreecommitdiffstats
path: root/src/audio_core/sink_details.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Project AndioKelebek12022-07-221-23/+0
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* audio_core: Make g_sink_details internally linkedLioncash2018-12-131-19/+6
| | | | | | | | | | | | | | | | We can hide the direct array from external view and instead provide functions to retrieve the necessary info. This has the benefit of completely hiding the makeup of the SinkDetails structure from the rest of the code. Given that this makes the array hidden, we can also make the array constexpr by altering the members slightly. This gets rid of several static constructor calls related to std::vector and std::function. Now we don't have heap allocations here that need to occur before the program can even enter main(). It also has the benefit of saving a little bit of heap space, but this doesn't matter too much, since the savings in that regard are pretty tiny.
* audio_core/sink_details: Change std::string parameter into std::string_viewLioncash2018-09-121-1/+3
| | | | | The given string is only ever used for lookup and comparison, so we can just utilize a non-owning view to string data here
* sink_details: Deduplicate long std::function repetitionLioncash2018-08-021-4/+6
| | | | | We can just use type aliases to avoid needing to write the same long type twice
* sink_details: std::move std::function instancesLioncash2018-08-021-1/+2
| | | | | Given std::function is allowed to potentially allocate, these should be std::move'd to prevent potential reallocation (should that ever happen).
* audio_core: Add interfaces for Sink and SinkStream.bunnei2018-07-311-0/+32
|
* Massive removal of unused modulesJames Rowe2018-01-131-29/+0
|
* SDL: Select audio device (#2403)Kloen Lansfiel2017-01-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Initial Commit Added Device logic to Sinks Started on UI for selecting devices Removed redundant import * Audio Core: Complete Device Switching Complete the device switching implementation by allowing the output device to be loaded, changed and saved through the configurations menu. Worked with the Sink abstraction and tuned the "Device Selection" configuration so that the Device List is automatically populated when the Sink is changed. This hopefully addresses the concerns and recommendations mentioned in the comments of the PR. * Clean original implementation. * Refactor GetSinkDetails
* AudioCore: List of sink typesMerryMage2016-04-301-0/+27