From 1f0f193b54f9e5a820a3a1feb9173b3459b77a72 Mon Sep 17 00:00:00 2001 From: cat Date: Mon, 6 Oct 2025 08:04:37 +0300 Subject: [PATCH] Changed to size_t over uint64_t --- src/ChargeAudio.hpp | 2 +- src/Sound.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ChargeAudio.hpp b/src/ChargeAudio.hpp index c77a45d..d96de68 100644 --- a/src/ChargeAudio.hpp +++ b/src/ChargeAudio.hpp @@ -33,7 +33,7 @@ public: const SoundState GetState(); const SoundType GetSoundType(); - const uint64_t GetPlayedSampleCount(); + const size_t GetPlayedSampleCount(); const float GetPlaybackTime(); bool SetPlaybackTime(float time); diff --git a/src/Sound.cpp b/src/Sound.cpp index ddff644..f90587c 100644 --- a/src/Sound.cpp +++ b/src/Sound.cpp @@ -100,7 +100,7 @@ void Sound::Reset() { } // Used with Streamed PCM but works with anything -const uint64_t Sound::GetPlayedSampleCount() { +const size_t Sound::GetPlayedSampleCount() { return ma_sound_get_time_in_pcm_frames(&maSound); }