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() {
|
if let Some(output) = buffer.next() {
|
||||||
*output = next_sample as u16;
|
*output = next_sample;
|
||||||
data = &data[1..];
|
data = &data[1..];
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -40,7 +40,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::U16,
|
16 => ::SampleFormat::I16,
|
||||||
_ => unimplemented!(),
|
_ => unimplemented!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue