Fix samples signs on win32

This commit is contained in:
Pierre Krieger 2015-07-22 14:28:45 +02:00
parent c71d9d74b3
commit 2f36175d96
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ fn main() {
};
if let Some(output) = buffer.next() {
*output = next_sample as u16;
*output = next_sample;
data = &data[1..];
} else {
break;

View File

@ -40,7 +40,7 @@ impl Voice {
pub fn get_samples_format(&self) -> ::SampleFormat {
match self.bits_per_sample {
16 => ::SampleFormat::U16,
16 => ::SampleFormat::I16,
_ => unimplemented!(),
}
}