Fix audio whitenoise example

This commit is contained in:
Cobrand
2018-10-15 17:31:20 +00:00
parent d2eb21b1cb
commit cfced74f15
+1 -1
View File
@@ -16,7 +16,7 @@ impl AudioCallback for MyCallback {
// Generate white noise
for x in out.iter_mut() {
*x = (rng.next_f32()*2.0 - 1.0) * self.volume;
*x = (rng.gen_range(0.0, 2.0) - 1.0) * self.volume;
}
}
}