Any example of HwopusDecoder multistream usage?
rock88 opened this issue · comments
Hi, I'm trying to use HwopusDecoder for decode multistream data, but always got atmosphere crash (Error 2111 0003
(0x66f)).
I was looking at hwopus-decoder example, I think op_open_memory/op_set_decode_callback/op_read
no needs for multistream decoding? I just replace opus_multistream_decoder_create/opus_multistream_decode with a hwopusDecoderMultistreamInitialize/hwopusDecodeInterleaved but maybe it not enough?
hwopusDecoderMultistreamInitialize
return success code here:
https://github.com/rock88/moonlight-nx/blob/hwopus/src/streaming/audio/AudrenAudioRenderer.cpp#L37
But here:
https://github.com/rock88/moonlight-nx/blob/hwopus/src/streaming/audio/AudrenAudioRenderer.cpp#L151
I always get a crash.
You're passing data directly to hwopus - you need to do what the opus example in switch-examples does.