mirror of
https://github.com/eden-emulator/mirror.git
synced 2026-06-06 07:25:52 +08:00
dont forget isvalid2
This commit is contained in:
parent
e369cc20b2
commit
860db04e85
@ -82,7 +82,7 @@ void OpusDecoder::Init(std::stop_token rc_stop_token) {
|
||||
case GetWorkBufferSize: {
|
||||
auto channel_count = static_cast<s32>(shared_memory->host_send_data[0]);
|
||||
|
||||
ASSERT(IsValidChannelCount(channel_count));
|
||||
ASSERT(channel_count == 1 || channel_count == 2);
|
||||
|
||||
shared_memory->dsp_return_data[0] = OpusDecodeObject::GetWorkBufferSize(channel_count);
|
||||
Send(Direction::Host, Message::GetWorkBufferSizeOK);
|
||||
@ -95,7 +95,7 @@ void OpusDecoder::Init(std::stop_token rc_stop_token) {
|
||||
auto channel_count = static_cast<s32>(shared_memory->host_send_data[3]);
|
||||
|
||||
ASSERT(sample_rate >= 0);
|
||||
ASSERT(IsValidChannelCount(channel_count));
|
||||
ASSERT(channel_count == 1 || channel_count == 2);
|
||||
ASSERT(buffer_size >= OpusDecodeObject::GetWorkBufferSize(channel_count));
|
||||
|
||||
auto& decoder_object = OpusDecodeObject::Initialize(buffer, buffer);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user