summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/audio/hwopus.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-12-02 20:20:43 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-12-02 20:20:43 +0100
commit762b8ad448369cc770beae4d8368a6258b13709e (patch)
treecff2c5d404b77e93e875fbf40cf78ea6d30d32b0 /src/core/hle/service/audio/hwopus.cpp
parentMerge pull request #7483 from zhaobot/tx-update-20211201022129 (diff)
downloadyuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar.gz
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar.bz2
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar.lz
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar.xz
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.tar.zst
yuzu-762b8ad448369cc770beae4d8368a6258b13709e.zip
Diffstat (limited to 'src/core/hle/service/audio/hwopus.cpp')
-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) {