Skip to content

Commit 8e4b7ea

Browse files
committed
getVolmue
1 parent 05e28b2 commit 8e4b7ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AudioLibs/I2SCodecStream.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ class I2SCodecStream : public AudioStream {
150150
}
151151

152152
/// Provides the actual volume (0.0 - 1.0)
153-
int getVolume() {
154-
if (p_board == nullptr) return -1;
155-
return static_cast<float>(p_board->getVolume()) / 100.0;
153+
float getVolume() {
154+
if (p_board == nullptr) return 0.0f;
155+
return static_cast<float>(p_board->getVolume()) / 100.0f;
156156
}
157157

158158
/// Mute / unmote

0 commit comments

Comments
 (0)