Implement some basic data conversion

This commit is contained in:
Pierre Krieger 2014-12-15 11:45:38 +01:00
parent b23857a57c
commit 32bca93cc9
4 changed files with 180 additions and 13 deletions

View file

@ -32,8 +32,8 @@ impl Channel {
self.num_channels as ::ChannelsCount
}
pub fn get_samples_per_second(&self) -> u32 {
self.samples_per_second as u32
pub fn get_samples_rate(&self) -> ::SamplesRate {
::SamplesRate(self.samples_per_second as u16)
}
pub fn get_samples_format(&self) -> ::SampleFormat {