Skip to content

Commit 188ade4

Browse files
committed
I2SCodecStream setAudioInfo
1 parent 2aa38e3 commit 188ade4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AudioLibs/I2SCodecStream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ class I2SCodecStream : public AudioStream {
103103
virtual void setAudioInfo(AudioInfo info) {
104104
TRACEI();
105105
AudioStream::setAudioInfo(info);
106-
int vol = -1;
106+
float vol = -1.0f;
107107
// save volume if possible
108108
if (is_active) vol = getVolume();
109109
beginCodec(info);
110110
i2s.setAudioInfo(info);
111111
// restore volume
112-
if (vol>0) setVolume(vol);
112+
if (vol>0.0f) setVolume(vol);
113113
}
114114

115115
/// Writes the audio data to I2S

0 commit comments

Comments
 (0)