mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Fixed swapped output raw fields in hwopusDecodeInterleaved, and also swapped those in the params.
This commit is contained in:
parent
34e99d53c2
commit
a6412e1e3a
@ -17,5 +17,5 @@ typedef struct {
|
|||||||
Result hwopusDecoderInitialize(HwopusDecoder* decoder, s32 SampleRate, s32 ChannelCount);
|
Result hwopusDecoderInitialize(HwopusDecoder* decoder, s32 SampleRate, s32 ChannelCount);
|
||||||
void hwopusDecoderExit(HwopusDecoder* decoder);
|
void hwopusDecoderExit(HwopusDecoder* decoder);
|
||||||
|
|
||||||
Result hwopusDecodeInterleaved(HwopusDecoder* decoder, s32 *DecodedSampleCount, u32 *DecodedDataSize, const void* opusin, size_t opusin_size, s16 *pcmbuf, size_t pcmbuf_size);
|
Result hwopusDecodeInterleaved(HwopusDecoder* decoder, s32 *DecodedDataSize, s32 *DecodedSampleCount, const void* opusin, size_t opusin_size, s16 *pcmbuf, size_t pcmbuf_size);
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ static Result _hwopusGetWorkBufferSize(Service* srv, u32 *size, s32 SampleRate,
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hwopusDecodeInterleaved(HwopusDecoder* decoder, s32 *DecodedSampleCount, u32 *DecodedDataSize, const void* opusin, size_t opusin_size, s16 *pcmbuf, size_t pcmbuf_size) {
|
Result hwopusDecodeInterleaved(HwopusDecoder* decoder, s32 *DecodedDataSize, s32 *DecodedSampleCount, const void* opusin, size_t opusin_size, s16 *pcmbuf, size_t pcmbuf_size) {
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
|
|
||||||
@ -144,8 +144,8 @@ Result hwopusDecodeInterleaved(HwopusDecoder* decoder, s32 *DecodedSampleCount,
|
|||||||
struct {
|
struct {
|
||||||
u64 magic;
|
u64 magic;
|
||||||
u64 result;
|
u64 result;
|
||||||
|
s32 DecodedDataSize;
|
||||||
s32 DecodedSampleCount;
|
s32 DecodedSampleCount;
|
||||||
u32 DecodedDataSize;
|
|
||||||
} *resp;
|
} *resp;
|
||||||
|
|
||||||
serviceIpcParse(&decoder->s, &r, sizeof(*resp));
|
serviceIpcParse(&decoder->s, &r, sizeof(*resp));
|
||||||
|
Loading…
Reference in New Issue
Block a user