Skip to content

Commit 05e28b2

Browse files
committed
I2SCodecStream getVolume
1 parent 82c4463 commit 05e28b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioLibs/I2SCodecStream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class I2SCodecStream : public AudioStream {
152152
/// Provides the actual volume (0.0 - 1.0)
153153
int getVolume() {
154154
if (p_board == nullptr) return -1;
155-
return p_board->getVolume();
155+
return static_cast<float>(p_board->getVolume()) / 100.0;
156156
}
157157

158158
/// Mute / unmote

0 commit comments

Comments
 (0)