Implement some samples rate conversions

This commit is contained in:
Pierre Krieger 2014-12-15 11:58:52 +01:00
parent 32bca93cc9
commit 081912c5fb
4 changed files with 35 additions and 8 deletions

View file

@ -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 {