Implement some basic data conversion
This commit is contained in:
parent
b23857a57c
commit
32bca93cc9
4 changed files with 180 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue