mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-06-01 16:27:10 +02:00
dont forget isvalid2
This commit is contained in:
parent
bebffdad27
commit
76b52b033f
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue