mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-04 11:23:12 +00:00
adjust IsValidStreamCounts
This commit is contained in:
@@ -22,9 +22,8 @@ namespace {
|
|||||||
constexpr u32 OpusStreamCountMax = 255;
|
constexpr u32 OpusStreamCountMax = 255;
|
||||||
|
|
||||||
bool IsValidStreamCounts(u32 total_stream_count, u32 stereo_stream_count) {
|
bool IsValidStreamCounts(u32 total_stream_count, u32 stereo_stream_count) {
|
||||||
return total_stream_count > 0 && total_stream_count <= OpusStreamCountMax &&
|
return total_stream_count > 0 && total_stream_count <= OpusStreamCountMax
|
||||||
s32(stereo_stream_count) >= 0 &&
|
&& s32(stereo_stream_count) >= 0 && stereo_stream_count <= total_stream_count;
|
||||||
stereo_stream_count <= total_stream_count;
|
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user