Fixed swapped output raw fields in hwopusDecodeInterleaved, and also swapped those in the params.

This commit is contained in:
yellows8 2018-11-04 20:29:38 -05:00
parent 34e99d53c2
commit a6412e1e3a
2 changed files with 3 additions and 3 deletions

View File

@ -17,5 +17,5 @@ typedef struct {
Result hwopusDecoderInitialize(HwopusDecoder* decoder, s32 SampleRate, s32 ChannelCount);
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);

View File

@ -120,7 +120,7 @@ static Result _hwopusGetWorkBufferSize(Service* srv, u32 *size, s32 SampleRate,
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;
ipcInitialize(&c);
@ -144,8 +144,8 @@ Result hwopusDecodeInterleaved(HwopusDecoder* decoder, s32 *DecodedSampleCount,
struct {
u64 magic;
u64 result;
s32 DecodedDataSize;
s32 DecodedSampleCount;
u32 DecodedDataSize;
} *resp;
serviceIpcParse(&decoder->s, &r, sizeof(*resp));