summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-12-04 01:08:20 +0100
committerGitHub <noreply@github.com>2021-12-04 01:08:20 +0100
commita2fb5a13b2b00922d1f4fcc6dc41849704fa0f89 (patch)
tree8feb52b4bd0afa965b0865ef00e5f8739b07d3df /src/core/hle
parentMerge pull request #7490 from Morph1984/stub-album-save-screenshot (diff)
parentgeneral: Replace high_resolution_clock with steady_clock (diff)
downloadyuzu-a2fb5a13b2b00922d1f4fcc6dc41849704fa0f89.tar
yuzu-a2fb5a13b2b00922d1f4fcc6dc41849704fa0f89.tar.gz
yuzu-a2fb5a13b2b00922d1f4fcc6dc41849704fa0f89.tar.bz2
yuzu-a2fb5a13b2b00922d1f4fcc6dc41849704fa0f89.tar.lz
yuzu-a2fb5a13b2b00922d1f4fcc6dc41849704fa0f89.tar.xz
yuzu-a2fb5a13b2b00922d1f4fcc6dc41849704fa0f89.tar.zst
yuzu-a2fb5a13b2b00922d1f4fcc6dc41849704fa0f89.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/audio/hwopus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/audio/hwopus.cpp b/src/core/hle/service/audio/hwopus.cpp
index 7da1f2969..981b6c996 100644
--- a/src/core/hle/service/audio/hwopus.cpp
+++ b/src/core/hle/service/audio/hwopus.cpp
@@ -96,7 +96,7 @@ private:
bool DecodeOpusData(u32& consumed, u32& sample_count, const std::vector<u8>& input,
std::vector<opus_int16>& output, u64* out_performance_time) const {
- const auto start_time = std::chrono::high_resolution_clock::now();
+ const auto start_time = std::chrono::steady_clock::now();
const std::size_t raw_output_sz = output.size() * sizeof(opus_int16);
if (sizeof(OpusPacketHeader) > input.size()) {
LOG_ERROR(Audio, "Input is smaller than the header size, header_sz={}, input_sz={}",
@@ -135,7 +135,7 @@ private:
return false;
}
- const auto end_time = std::chrono::high_resolution_clock::now() - start_time;
+ const auto end_time = std::chrono::steady_clock::now() - start_time;
sample_count = out_sample_count;
consumed = static_cast<u32>(sizeof(OpusPacketHeader) + hdr.size);
if (out_performance_time != nullptr) {