From 9572bd66c3cc7fc3b405466b8e528f810b0191be Mon Sep 17 00:00:00 2001 From: Oleg Samarin Date: Fri, 23 Feb 2024 22:42:59 +0300 Subject: [PATCH] Fixed type --- src/grandorgue/sound/GOSoundProvider.cpp | 2 +- src/grandorgue/sound/GOSoundProvider.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grandorgue/sound/GOSoundProvider.cpp b/src/grandorgue/sound/GOSoundProvider.cpp index ca7808897..467c07d8c 100644 --- a/src/grandorgue/sound/GOSoundProvider.cpp +++ b/src/grandorgue/sound/GOSoundProvider.cpp @@ -220,7 +220,7 @@ const GOSoundAudioSection *GOSoundProvider::GetAttack( } const GOSoundAudioSection *GOSoundProvider::GetRelease( - uint8_t sampleGroup, unsigned playbackDurationMs) const { + int8_t sampleGroup, unsigned playbackDurationMs) const { const unsigned x = abs(rand()); int best_match = -1; diff --git a/src/grandorgue/sound/GOSoundProvider.h b/src/grandorgue/sound/GOSoundProvider.h index f02b70d40..ed4d89632 100644 --- a/src/grandorgue/sound/GOSoundProvider.h +++ b/src/grandorgue/sound/GOSoundProvider.h @@ -67,7 +67,7 @@ class GOSoundProvider : public GOStatisticCallback { const GOSoundAudioSection *GetAttack( unsigned velocity, unsigned releasedDurationMs) const; const GOSoundAudioSection *GetRelease( - uint8_t sampleGroup, unsigned playbackDurationMs) const; + int8_t sampleGroup, unsigned playbackDurationMs) const; float GetGain() const; int IsOneshot() const;