Merge pull request #55 from mceier/master

Add more detailed message to panic
This commit is contained in:
tomaka 2015-08-18 09:08:45 +02:00
commit e641ac93d8
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ impl Voice {
pub fn get_samples_format(&self) -> ::SampleFormat {
match self.bits_per_sample {
16 => ::SampleFormat::I16,
_ => unimplemented!(),
_ => panic!("{}-bit format not yet supported", self.bits_per_sample),
}
}