Implement some samples rate conversions
This commit is contained in:
parent
32bca93cc9
commit
081912c5fb
4 changed files with 35 additions and 8 deletions
|
|
@ -33,7 +33,7 @@ impl Channel {
|
|||
}
|
||||
|
||||
pub fn get_samples_rate(&self) -> ::SamplesRate {
|
||||
::SamplesRate(self.samples_per_second as u16)
|
||||
::SamplesRate(self.samples_per_second as u32)
|
||||
}
|
||||
|
||||
pub fn get_samples_format(&self) -> ::SampleFormat {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue