diff --git a/src/sfizz/Region.h b/src/sfizz/Region.h index 9b6e01b2..b18b7bd5 100644 --- a/src/sfizz/Region.h +++ b/src/sfizz/Region.h @@ -47,7 +47,7 @@ struct Region { ~Region() = default; /** - * @brief Get the number which identifies this region, also its index + * @brief Get the number which identifies this region */ int getIdNumber() const noexcept { @@ -246,7 +246,7 @@ struct Region { */ float getGainToEffectBus(unsigned number) const noexcept; - const int regionNumber {}; + const int regionNumber { -1 }; // Sound source: sample playback FileId sampleId {}; // Sample diff --git a/src/sfizz/Voice.h b/src/sfizz/Voice.h index a9b347d2..59058c59 100644 --- a/src/sfizz/Voice.h +++ b/src/sfizz/Voice.h @@ -42,7 +42,7 @@ public: CC }; /** - * @brief Get the number which identifies this voice, its index + * @brief Get the number which identifies this voice */ int getIdNumber() const noexcept { @@ -299,7 +299,7 @@ private: */ void switchState(State s); - const int voiceNumber {}; + const int voiceNumber { -1 }; StateListener* stateListener = nullptr; Region* region { nullptr };