summaryrefslogtreecommitdiffstats
path: root/src/audio_core/device
diff options
context:
space:
mode:
authorBilly Laws <blaws05@gmail.com>2023-03-18 21:52:02 +0100
committerBilly Laws <blaws05@gmail.com>2023-03-26 23:48:57 +0200
commitd8fc3f403b62e2b3d67ec08791fdc66847ddb4ac (patch)
tree7a5e37809980a7c4988df5845e6daf161d7e859f /src/audio_core/device
parentMerge pull request #9994 from liamwhite/integer-constant (diff)
downloadyuzu-d8fc3f403b62e2b3d67ec08791fdc66847ddb4ac.tar
yuzu-d8fc3f403b62e2b3d67ec08791fdc66847ddb4ac.tar.gz
yuzu-d8fc3f403b62e2b3d67ec08791fdc66847ddb4ac.tar.bz2
yuzu-d8fc3f403b62e2b3d67ec08791fdc66847ddb4ac.tar.lz
yuzu-d8fc3f403b62e2b3d67ec08791fdc66847ddb4ac.tar.xz
yuzu-d8fc3f403b62e2b3d67ec08791fdc66847ddb4ac.tar.zst
yuzu-d8fc3f403b62e2b3d67ec08791fdc66847ddb4ac.zip
Diffstat (limited to 'src/audio_core/device')
-rw-r--r--src/audio_core/device/device_session.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio_core/device/device_session.cpp b/src/audio_core/device/device_session.cpp
index 5a327a606..ad0f40e28 100644
--- a/src/audio_core/device/device_session.cpp
+++ b/src/audio_core/device/device_session.cpp
@@ -121,8 +121,7 @@ u64 DeviceSession::GetPlayedSampleCount() const {
}
std::optional<std::chrono::nanoseconds> DeviceSession::ThreadFunc() {
- // Add 5ms of samples at a 48K sample rate.
- played_sample_count += 48'000 * INCREMENT_TIME / 1s;
+ played_sample_count = stream->GetExpectedPlayedSampleCount();
if (type == Sink::StreamType::Out) {
system.AudioCore().GetAudioManager().SetEvent(Event::Type::AudioOutManager, true);
} else {