cellAdec: fix some uninitialized member warnings

This commit is contained in:
Megamouse 2022-11-05 10:43:23 +01:00
commit 6b8aef9fdd

View file

@ -282,15 +282,10 @@ public:
struct AudioReader struct AudioReader
{ {
u32 addr; u32 addr{};
u32 size; u32 size{};
bool init; bool init{};
bool has_ats; bool has_ats{};
AudioReader()
: init(false)
{
}
} reader; } reader;
@ -304,13 +299,14 @@ public:
u32 memBias = 0; u32 memBias = 0;
AdecTask task; AdecTask task;
u64 last_pts, first_pts; u64 last_pts{};
u64 first_pts{};
u32 ch_out; u32 ch_out{};
u32 ch_cfg; u32 ch_cfg{};
u32 frame_size; u32 frame_size{};
u32 sample_rate; u32 sample_rate{};
bool use_ats_headers; bool use_ats_headers{};
AudioDecoder(s32 type, u32 addr, u32 size, vm::ptr<CellAdecCbMsg> func, u32 arg) AudioDecoder(s32 type, u32 addr, u32 size, vm::ptr<CellAdecCbMsg> func, u32 arg)
: ppu_thread({}, "", 0) : ppu_thread({}, "", 0)