codec/decoder/audio: change rate type to u32
This commit is contained in:
parent
ea6b10ba84
commit
21141b502a
@ -22,9 +22,9 @@ impl Audio {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn rate(&self) -> i32 {
|
pub fn rate(&self) -> u32 {
|
||||||
unsafe {
|
unsafe {
|
||||||
(*self.ptr).sample_rate as i32
|
(*self.ptr).sample_rate as u32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user