Skip to content

Commit d8e35bf

Browse files
committed
Remove clamping of float samples
1 parent 7da4d0e commit d8e35bf

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

playback/src/player.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,16 +1286,7 @@ impl PlayerInternal {
12861286
}
12871287
}
12881288
}
1289-
12901289
*sample *= actual_normalisation_factor;
1291-
1292-
// Extremely sharp attacks, however unlikely, *may* still clip and provide
1293-
// undefined results, so strictly enforce output within [-1.0, 1.0].
1294-
if *sample < -1.0 {
1295-
*sample = -1.0;
1296-
} else if *sample > 1.0 {
1297-
*sample = 1.0;
1298-
}
12991290
}
13001291
}
13011292

0 commit comments

Comments
 (0)