diff options
author | Zach Hilman <DarkLordZach@users.noreply.github.com> | 2019-07-12 22:41:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-12 22:41:17 +0200 |
commit | 4d8215827415947e66fa1a155d67079679063b34 (patch) | |
tree | 960cbd9ce9829a6ec8441ad655193dbff5a69d76 /src/audio_core | |
parent | Merge pull request #2609 from FernandoS27/new-scan (diff) | |
parent | Clang format (diff) | |
download | yuzu-4d8215827415947e66fa1a155d67079679063b34.tar yuzu-4d8215827415947e66fa1a155d67079679063b34.tar.gz yuzu-4d8215827415947e66fa1a155d67079679063b34.tar.bz2 yuzu-4d8215827415947e66fa1a155d67079679063b34.tar.lz yuzu-4d8215827415947e66fa1a155d67079679063b34.tar.xz yuzu-4d8215827415947e66fa1a155d67079679063b34.tar.zst yuzu-4d8215827415947e66fa1a155d67079679063b34.zip |
Diffstat (limited to 'src/audio_core')
-rw-r--r-- | src/audio_core/audio_renderer.cpp | 6 | ||||
-rw-r--r-- | src/audio_core/audio_renderer.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp index 4882a6cd8..da50a0bbc 100644 --- a/src/audio_core/audio_renderer.cpp +++ b/src/audio_core/audio_renderer.cpp @@ -73,13 +73,15 @@ private: EffectInStatus info{}; }; AudioRenderer::AudioRenderer(Core::Timing::CoreTiming& core_timing, AudioRendererParameter params, - Kernel::SharedPtr<Kernel::WritableEvent> buffer_event) + Kernel::SharedPtr<Kernel::WritableEvent> buffer_event, + std::size_t instance_number) : worker_params{params}, buffer_event{buffer_event}, voices(params.voice_count), effects(params.effect_count) { audio_out = std::make_unique<AudioCore::AudioOut>(); stream = audio_out->OpenStream(core_timing, STREAM_SAMPLE_RATE, STREAM_NUM_CHANNELS, - "AudioRenderer", [=]() { buffer_event->Signal(); }); + fmt::format("AudioRenderer-Instance{}", instance_number), + [=]() { buffer_event->Signal(); }); audio_out->StartStream(stream); QueueMixedBuffer(0); diff --git a/src/audio_core/audio_renderer.h b/src/audio_core/audio_renderer.h index b2e5d336c..45afbe759 100644 --- a/src/audio_core/audio_renderer.h +++ b/src/audio_core/audio_renderer.h @@ -215,7 +215,8 @@ static_assert(sizeof(UpdateDataHeader) == 0x40, "UpdateDataHeader has wrong size class AudioRenderer { public: AudioRenderer(Core::Timing::CoreTiming& core_timing, AudioRendererParameter params, - Kernel::SharedPtr<Kernel::WritableEvent> buffer_event); + Kernel::SharedPtr<Kernel::WritableEvent> buffer_event, + std::size_t instance_number); ~AudioRenderer(); std::vector<u8> UpdateAudioRenderer(const std::vector<u8>& input_params); |