@@ -93,57 +93,57 @@ class sfeQwiicBuzzerArdI2C
9393 // / @param soundEffectNumber The sound effect you with to play
9494 // / @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
9595 // / @return 0 for succuss, negative for errors, positive for warnings
96- sfeTkError_t playSoundEffect (uint8_t soundEffectNumber, uint8_t volume);
96+ sfeTkError_t playSoundEffect (const uint8_t & soundEffectNumber, const uint8_t & volume);
9797
9898 // / @brief Plays sound effect 0
9999 // / @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
100100 // / @return 0 for succuss, negative for errors, positive for warnings
101- sfeTkError_t soundEffect0 (uint8_t volume);
101+ sfeTkError_t soundEffect0 (const uint8_t & volume);
102102
103103 // / @brief Plays sound effect 1
104104 // / @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
105105 // / @return 0 for succuss, negative for errors, positive for warnings
106- sfeTkError_t soundEffect1 (uint8_t volume);
106+ sfeTkError_t soundEffect1 (const uint8_t & volume);
107107
108108 // / @brief Plays sound effect 2
109109 // / @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
110110 // / @return 0 for succuss, negative for errors, positive for warnings
111- sfeTkError_t soundEffect2 (uint8_t volume);
111+ sfeTkError_t soundEffect2 (const uint8_t & volume);
112112
113113 // / @brief Plays sound effect 3
114114 // / @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
115115 // / @return 0 for succuss, negative for errors, positive for warnings
116- sfeTkError_t soundEffect3 (uint8_t volume);
116+ sfeTkError_t soundEffect3 (const uint8_t & volume);
117117
118118 // / @brief Plays sound effect 4
119119 // / @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
120120 // / @return 0 for succuss, negative for errors, positive for warnings
121- sfeTkError_t soundEffect4 (uint8_t volume);
121+ sfeTkError_t soundEffect4 (const uint8_t & volume);
122122
123123 // / @brief Plays sound effect 5
124124 // / @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
125125 // / @return 0 for succuss, negative for errors, positive for warnings
126- sfeTkError_t soundEffect5 (uint8_t volume);
126+ sfeTkError_t soundEffect5 (const uint8_t & volume);
127127
128128 // / @brief Plays sound effect 6
129129 // / @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
130130 // / @return 0 for succuss, negative for errors, positive for warnings
131- sfeTkError_t soundEffect6 (uint8_t volume);
131+ sfeTkError_t soundEffect6 (const uint8_t & volume);
132132
133133 // / @brief Plays sound effect 7
134134 // / @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
135135 // / @return 0 for succuss, negative for errors, positive for warnings
136- sfeTkError_t soundEffect7 (uint8_t volume);
136+ sfeTkError_t soundEffect7 (const uint8_t & volume);
137137
138138 // / @brief Plays sound effect 8
139139 // / @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
140140 // / @return 0 for succuss, negative for errors, positive for warnings
141- sfeTkError_t soundEffect8 (uint8_t volume);
141+ sfeTkError_t soundEffect8 (const uint8_t & volume);
142142
143143 // / @brief Plays sound effect 9
144144 // / @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
145145 // / @return 0 for succuss, negative for errors, positive for warnings
146- sfeTkError_t soundEffect9 (uint8_t volume);
146+ sfeTkError_t soundEffect9 (const uint8_t & volume);
147147
148148 protected:
149149 sfeTkII2C *_theBus;
0 commit comments