Used revision 5 instead of 7, marked constexpr as static

This commit is contained in:
David Marcec 2019-09-21 16:24:56 +10:00
parent b54cdeb284
commit e9d19add7d

View File

@ -107,7 +107,7 @@ Stream::State AudioRenderer::GetStreamState() const {
return stream->GetState();
}
constexpr u32 VersionFromRevision(u32_le rev) {
static constexpr u32 VersionFromRevision(u32_le rev) {
// "REV7" -> 7
return ((rev >> 24) & 0xff) - 0x30;
}
@ -172,7 +172,7 @@ std::vector<u8> AudioRenderer::UpdateAudioRenderer(const std::vector<u8>& input_
UpdateDataHeader response_data{worker_params};
std::vector<u8> output_params(response_data.total_size);
const auto audren_revision = VersionFromRevision(config.revision);
if (audren_revision >= 7) {
if (audren_revision >= 5) {
response_data.frame_count = 0x10;
response_data.total_size += 0x10;
}