From 8e91ed728255b426c49cfd1fee1bd816977ad779 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Tue, 4 Jul 2023 23:13:52 +1000 Subject: [PATCH] Update decoder --- dev_tools/anc_decoder/src/main.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dev_tools/anc_decoder/src/main.rs b/dev_tools/anc_decoder/src/main.rs index e0774c6..6e5fd33 100644 --- a/dev_tools/anc_decoder/src/main.rs +++ b/dev_tools/anc_decoder/src/main.rs @@ -71,22 +71,27 @@ struct aud_item { #[derive(Debug, PartialEq, Encode, Decode, Copy, Clone, Default)] struct struct_anc_cfg { - // + //V1+ anc_cfg_ff_l: aud_item, anc_cfg_ff_r: aud_item, anc_cfg_fb_l: aud_item, anc_cfg_fb_r: aud_item, + //V2 + anc_cfg_tt_l: aud_item, + anc_cfg_tt_r: aud_item, + anc_cfg_mc_l: aud_item, + anc_cfg_mc_r: aud_item, } #[derive(Debug, PartialEq, Encode, Decode, Copy, Clone, Default)] struct pctool_struct_anc_cfg { // - anc_cfg: [struct_anc_cfg; 2], + anc_cfg: [struct_anc_cfg; 2], //0 == 41k, 2==44k } #[derive(Debug, PartialEq, Encode, Decode, Copy, Clone, Default)] struct AudSectionBodyConfig { - anc_config_arr: [pctool_struct_anc_cfg; 4], + anc_config_arr: [pctool_struct_anc_cfg; 1], // we may only use first of 4 entries } #[derive(Debug, PartialEq, Encode, Decode, Copy, Clone, Default)] struct AudSectionBody {