diff options
author | Markus Wick <markus@selfnet.de> | 2018-09-04 11:02:59 +0200 |
---|---|---|
committer | Markus Wick <markus@selfnet.de> | 2018-09-04 11:04:26 +0200 |
commit | 10bc725944d41f09ae1425aa1eb8acffcae0a091 (patch) | |
tree | 794211794cccdc2c23431a64ab76f7789623cf41 /src/audio_core/stream.cpp | |
parent | Merge pull request #1231 from lioncash/global (diff) | |
download | yuzu-10bc725944d41f09ae1425aa1eb8acffcae0a091.tar yuzu-10bc725944d41f09ae1425aa1eb8acffcae0a091.tar.gz yuzu-10bc725944d41f09ae1425aa1eb8acffcae0a091.tar.bz2 yuzu-10bc725944d41f09ae1425aa1eb8acffcae0a091.tar.lz yuzu-10bc725944d41f09ae1425aa1eb8acffcae0a091.tar.xz yuzu-10bc725944d41f09ae1425aa1eb8acffcae0a091.tar.zst yuzu-10bc725944d41f09ae1425aa1eb8acffcae0a091.zip |
Diffstat (limited to 'src/audio_core/stream.cpp')
-rw-r--r-- | src/audio_core/stream.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cpp index ad9e2915c..dbae75d8c 100644 --- a/src/audio_core/stream.cpp +++ b/src/audio_core/stream.cpp @@ -10,6 +10,7 @@ #include "audio_core/stream.h" #include "common/assert.h" #include "common/logging/log.h" +#include "common/microprofile.h" #include "core/core_timing.h" #include "core/core_timing_util.h" #include "core/settings.h" @@ -94,7 +95,10 @@ void Stream::PlayNextBuffer() { CoreTiming::ScheduleEventThreadsafe(GetBufferReleaseCycles(*active_buffer), release_event, {}); } +MICROPROFILE_DEFINE(AudioOutput, "Audio", "ReleaseActiveBuffer", MP_RGB(100, 100, 255)); + void Stream::ReleaseActiveBuffer() { + MICROPROFILE_SCOPE(AudioOutput); ASSERT(active_buffer); released_buffers.push(std::move(active_buffer)); release_callback(); |