summaryrefslogtreecommitdiffstats
path: root/src/audio_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-09-21 15:32:12 +0200
committerLioncash <mathew1800@gmail.com>2022-09-21 15:32:15 +0200
commite48e22eb52ffe08af62772a92c553cd2e3acbfc7 (patch)
tree802f6ecc2c4cd0fc6c9a9036ce6c7620309930d3 /src/audio_core
parentaudio_manager: Remove unused forward declarations (diff)
downloadyuzu-e48e22eb52ffe08af62772a92c553cd2e3acbfc7.tar
yuzu-e48e22eb52ffe08af62772a92c553cd2e3acbfc7.tar.gz
yuzu-e48e22eb52ffe08af62772a92c553cd2e3acbfc7.tar.bz2
yuzu-e48e22eb52ffe08af62772a92c553cd2e3acbfc7.tar.lz
yuzu-e48e22eb52ffe08af62772a92c553cd2e3acbfc7.tar.xz
yuzu-e48e22eb52ffe08af62772a92c553cd2e3acbfc7.tar.zst
yuzu-e48e22eb52ffe08af62772a92c553cd2e3acbfc7.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/audio_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/audio_manager.cpp b/src/audio_core/audio_manager.cpp
index c46bc3839..d101e6163 100644
--- a/src/audio_core/audio_manager.cpp
+++ b/src/audio_core/audio_manager.cpp
@@ -25,7 +25,7 @@ Result AudioManager::SetOutManager(BufferEventFunc buffer_func) {
const auto index{events.GetManagerIndex(Event::Type::AudioOutManager)};
if (buffer_events[index] == nullptr) {
- buffer_events[index] = buffer_func;
+ buffer_events[index] = std::move(buffer_func);
needs_update = true;
events.SetAudioEvent(Event::Type::AudioOutManager, true);
}
@@ -41,7 +41,7 @@ Result AudioManager::SetInManager(BufferEventFunc buffer_func) {
const auto index{events.GetManagerIndex(Event::Type::AudioInManager)};
if (buffer_events[index] == nullptr) {
- buffer_events[index] = buffer_func;
+ buffer_events[index] = std::move(buffer_func);
needs_update = true;
events.SetAudioEvent(Event::Type::AudioInManager, true);
}