Skip to content

Commit 008fb4d

Browse files
committed
update comments for returns on sound effects
1 parent f88df61 commit 008fb4d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/sfeQwiicBuzzer.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,46 +92,57 @@ class sfeQwiicBuzzerArdI2C
9292
/// @brief Plays one of the sound effects included in this library
9393
/// @param soundEffectNumber The sound effect you with to play
9494
/// @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
95+
/// @return 0 for succuss, negative for errors, positive for warnings
9596
sfeTkError_t playSoundEffect(uint8_t soundEffectNumber, uint8_t volume);
9697

9798
/// @brief Plays sound effect 0
9899
/// @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
100+
/// @return 0 for succuss, negative for errors, positive for warnings
99101
sfeTkError_t soundEffect0(uint8_t volume);
100102

101103
/// @brief Plays sound effect 1
102104
/// @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
105+
/// @return 0 for succuss, negative for errors, positive for warnings
103106
sfeTkError_t soundEffect1(uint8_t volume);
104107

105108
/// @brief Plays sound effect 2
106109
/// @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
110+
/// @return 0 for succuss, negative for errors, positive for warnings
107111
sfeTkError_t soundEffect2(uint8_t volume);
108112

109113
/// @brief Plays sound effect 3
110114
/// @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
115+
/// @return 0 for succuss, negative for errors, positive for warnings
111116
sfeTkError_t soundEffect3(uint8_t volume);
112117

113118
/// @brief Plays sound effect 4
114119
/// @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
120+
/// @return 0 for succuss, negative for errors, positive for warnings
115121
sfeTkError_t soundEffect4(uint8_t volume);
116122

117123
/// @brief Plays sound effect 5
118124
/// @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
125+
/// @return 0 for succuss, negative for errors, positive for warnings
119126
sfeTkError_t soundEffect5(uint8_t volume);
120127

121128
/// @brief Plays sound effect 6
122129
/// @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
130+
/// @return 0 for succuss, negative for errors, positive for warnings
123131
sfeTkError_t soundEffect6(uint8_t volume);
124132

125133
/// @brief Plays sound effect 7
126134
/// @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
135+
/// @return 0 for succuss, negative for errors, positive for warnings
127136
sfeTkError_t soundEffect7(uint8_t volume);
128137

129138
/// @brief Plays sound effect 8
130139
/// @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
140+
/// @return 0 for succuss, negative for errors, positive for warnings
131141
sfeTkError_t soundEffect8(uint8_t volume);
132142

133143
/// @brief Plays sound effect 9
134144
/// @param volume Volume (4 settings; 0=off, 1=quiet... 4=loudest)
145+
/// @return 0 for succuss, negative for errors, positive for warnings
135146
sfeTkError_t soundEffect9(uint8_t volume);
136147

137148
protected:

0 commit comments

Comments
 (0)