Audio: Prevent div-by-zero
This commit is contained in:
parent
8161b00804
commit
5f290c5b11
|
@ -1071,6 +1071,7 @@ private:
|
||||||
ALint size = AL::Buffer::getSize(buf);
|
ALint size = AL::Buffer::getSize(buf);
|
||||||
ALint chan = AL::Buffer::getChannels(buf);
|
ALint chan = AL::Buffer::getChannels(buf);
|
||||||
|
|
||||||
|
if (bits != 0 && chan != 0)
|
||||||
procFrames += ((size / (bits / 8)) / chan);
|
procFrames += ((size / (bits / 8)) / chan);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue