Merge pull request #55 from mceier/master
Add more detailed message to panic
This commit is contained in:
commit
e641ac93d8
|
@ -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…
Reference in New Issue