From 55e950fe84d86dd7a5007f06c9727c97d57446b4 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Sun, 29 Aug 2021 09:42:24 +0300 Subject: Audio: fixing bugs, fixing types, making code more accurate to original --- src/audio/sampman.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/audio/sampman.h') diff --git a/src/audio/sampman.h b/src/audio/sampman.h index 16e1a1bb..667e11ff 100644 --- a/src/audio/sampman.h +++ b/src/audio/sampman.h @@ -6,10 +6,10 @@ #define MAX_FREQ DIGITALRATE struct tSample { - int32 nOffset; + uint32 nOffset; uint32 nSize; - int32 nFrequency; - int32 nLoopStart; + uint32 nFrequency; + uint32 nLoopStart; int32 nLoopEnd; }; @@ -188,8 +188,8 @@ public: int32 _GetPedCommentSlot(uint32 nComment); - int32 GetSampleBaseFrequency (uint32 nSample); - int32 GetSampleLoopStartOffset(uint32 nSample); + uint32 GetSampleBaseFrequency (uint32 nSample); + uint32 GetSampleLoopStartOffset(uint32 nSample); int32 GetSampleLoopEndOffset (uint32 nSample); uint32 GetSampleLength (uint32 nSample); -- cgit v1.2.3