Update for rust-1.0 alpha
This commit is contained in:
parent
64c455997c
commit
2bc50adf4d
5 changed files with 25 additions and 24 deletions
|
|
@ -14,7 +14,7 @@ pub enum SampleFormat {
|
|||
|
||||
impl SampleFormat {
|
||||
/// Returns the size in bytes of a sample of this format.
|
||||
pub fn get_sample_size(&self) -> uint {
|
||||
pub fn get_sample_size(&self) -> usize {
|
||||
match self {
|
||||
&SampleFormat::I16 => mem::size_of::<i16>(),
|
||||
&SampleFormat::U16 => mem::size_of::<u16>(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue