Cast to u32.
This commit is contained in:
parent
36f82b78f3
commit
ee6aba7a97
|
@ -32,14 +32,14 @@ pub enum Priority {
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
#[repr(u32)]
|
#[repr(u32)]
|
||||||
pub enum VoiceType {
|
pub enum VoiceType {
|
||||||
Male1 = SPDVoiceType::SPD_MALE1,
|
Male1 = SPDVoiceType::SPD_MALE1 as u32,
|
||||||
Male2 = SPDVoiceType::SPD_MALE2,
|
Male2 = SPDVoiceType::SPD_MALE2 as u32,
|
||||||
Male3 = SPDVoiceType::SPD_MALE3,
|
Male3 = SPDVoiceType::SPD_MALE3 as u32,
|
||||||
Female1 = SPDVoiceType::SPD_FEMALE1,
|
Female1 = SPDVoiceType::SPD_FEMALE1 as u32,
|
||||||
Female2 = SPDVoiceType::SPD_FEMALE2,
|
Female2 = SPDVoiceType::SPD_FEMALE2 as u32,
|
||||||
Female3 = SPDVoiceType::SPD_FEMALE3,
|
Female3 = SPDVoiceType::SPD_FEMALE3 as u32,
|
||||||
ChildMale = SPDVoiceType::SPD_CHILD_MALE,
|
ChildMale = SPDVoiceType::SPD_CHILD_MALE as u32,
|
||||||
ChildFemale = SPDVoiceType::SPD_CHILD_FEMALE,
|
ChildFemale = SPDVoiceType::SPD_CHILD_FEMALE as u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Hash, PartialEq)]
|
#[derive(Clone, Debug, Hash, PartialEq)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user