Fix samples signs on win32
This commit is contained in:
parent
c71d9d74b3
commit
2f36175d96
|
@ -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;
|
||||
|
|
|
@ -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!(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue