add live select pannel

This commit is contained in:
CroakFang
2023-01-20 07:13:54 +08:00
parent 3b18268252
commit a4dc2516e3
1543 changed files with 107369 additions and 9227 deletions
@@ -0,0 +1,36 @@
namespace DereTore.Exchange.Audio.HCA {
public struct DecodeParams {
public uint Key1 { get; set; }
public uint Key2 { get; set; }
public SamplingMode Mode { get; set; }
public float Volume { get; set; }
public bool CipherTypeOverrideEnabled { get; set; }
public CipherType OverriddenCipherType { get; set; }
public static DecodeParams CreateDefault() {
return new DecodeParams {
Key1 = 0,
Key2 = 0,
Mode = SamplingMode.S16,
Volume = 1.0f,
CipherTypeOverrideEnabled = false,
OverriddenCipherType = CipherType.NoChipher
};
}
public static DecodeParams CreateDefault(uint key1, uint key2) {
return new DecodeParams {
Key1 = key1,
Key2 = key2,
Mode = SamplingMode.S16,
Volume = 1.0f,
CipherTypeOverrideEnabled = false,
OverriddenCipherType = CipherType.NoChipher
};
}
public static readonly DecodeParams Default = CreateDefault();
}
}