Skip to content

Commit 5ca322b

Browse files
committed
add a oom message
1 parent 81aed7b commit 5ca322b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Audio.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5274,7 +5274,10 @@ bool Audio::setInBufferSize(size_t mbs){
52745274
size_t oldBuffSize = InBuff.getBufsize();
52755275
stopSong();
52765276
bool res = InBuff.setBufsize(mbs);
5277-
if(res == false) InBuff.setBufsize(oldBuffSize);
5277+
if(res == false){
5278+
AUDIO_ERROR("%i bytes is not possible, back to %i bytes", mbs, oldBuffSize);
5279+
InBuff.setBufsize(oldBuffSize);
5280+
}
52785281
InBuff.init();
52795282
return res;
52805283
}

0 commit comments

Comments
 (0)