Merge pull request #55 from mceier/master
Add more detailed message to panic
This commit is contained in:
commit
e641ac93d8
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ impl Voice {
|
||||||
pub fn get_samples_format(&self) -> ::SampleFormat {
|
pub fn get_samples_format(&self) -> ::SampleFormat {
|
||||||
match self.bits_per_sample {
|
match self.bits_per_sample {
|
||||||
16 => ::SampleFormat::I16,
|
16 => ::SampleFormat::I16,
|
||||||
_ => unimplemented!(),
|
_ => panic!("{}-bit format not yet supported", self.bits_per_sample),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue