We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e28b2 commit 8e4b7eaCopy full SHA for 8e4b7ea
src/AudioLibs/I2SCodecStream.h
@@ -150,9 +150,9 @@ class I2SCodecStream : public AudioStream {
150
}
151
152
/// 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;
+ float getVolume() {
+ if (p_board == nullptr) return 0.0f;
+ return static_cast<float>(p_board->getVolume()) / 100.0f;
156
157
158
/// Mute / unmote
0 commit comments