rvsttd: increase fade-out to 25ms
This commit is contained in:
+1
-1
@@ -352,7 +352,7 @@ fn transcriber_loop(
|
|||||||
|
|
||||||
// Apply 5ms fade-out to the last chunk, then feed to both Moonshine and recorder
|
// Apply 5ms fade-out to the last chunk, then feed to both Moonshine and recorder
|
||||||
if let Some(mut chunk) = held_chunk.take() {
|
if let Some(mut chunk) = held_chunk.take() {
|
||||||
let fade_samples = (SAMPLE_RATE as usize * 10) / 1000; // 10ms
|
let fade_samples = (SAMPLE_RATE as usize * 25) / 1000; // 25ms
|
||||||
if chunk.len() > fade_samples {
|
if chunk.len() > fade_samples {
|
||||||
let start = chunk.len() - fade_samples;
|
let start = chunk.len() - fade_samples;
|
||||||
for i in 0..fade_samples {
|
for i in 0..fade_samples {
|
||||||
|
|||||||
Reference in New Issue
Block a user