diff options
| author | Lioncash <mathew1800@gmail.com> | 2022-09-14 03:32:14 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2022-09-15 09:03:40 -0400 |
| commit | 1c7dae966d52287ba5812c27d2fe0c59938aa416 (patch) | |
| tree | 35709e02b9e5c0ef33f3bac4dadfb8bb3e8e3baf /src/audio_core/audio_in_manager.cpp | |
| parent | 1be456db83393859001b19969b4b359da43d9327 (diff) | |
audio_device: Make AudioDeviceName constructor constexpr
These are used as read-only arrays, so we can make the data read-only
and available at compile-time.
Now constructing an AudioDevice no longer needs to initialize some
tables
Diffstat (limited to 'src/audio_core/audio_in_manager.cpp')
| -rw-r--r-- | src/audio_core/audio_in_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/audio_in_manager.cpp b/src/audio_core/audio_in_manager.cpp index 4aadb7fd6..f39fb4002 100644 --- a/src/audio_core/audio_in_manager.cpp +++ b/src/audio_core/audio_in_manager.cpp @@ -82,7 +82,7 @@ u32 Manager::GetDeviceNames(std::vector<AudioRenderer::AudioDevice::AudioDeviceN auto input_devices{Sink::GetDeviceListForSink(Settings::values.sink_id.GetValue(), true)}; if (input_devices.size() > 1) { - names.push_back(AudioRenderer::AudioDevice::AudioDeviceName("Uac")); + names.emplace_back("Uac"); return 1; } return 0; |
