ref: 38f9e022c7449058c12902f51218134baf807c95
parent: 5da42f20de435223304fc2e862097b4152fce409
author: qwx <qwx@sciops.net>
date: Wed Aug 6 06:56:50 EDT 2025
shut compiler warnings up
--- a/stretch.c
+++ b/stretch.c
@@ -145,6 +145,7 @@
int max_expected_samples;
float next_ratio;
+ next_ratio = 0.0;
if (cnxt->next) { if (max_ratio < 0.5) {next_ratio = max_ratio / 0.5;
@@ -192,6 +193,7 @@
/* if there's a cascaded instance after this one, try to do as much of the ratio here and the rest in "next" */
+ next_ratio = 0.0;
if (cnxt->next) {outbuf = cnxt->intermediate;
--- a/this.c
+++ b/this.c
@@ -119,7 +119,7 @@
else if(silence && gap > max_ratio)
max_ratio = gap;
maxnsamp = stretch_output_capacity(S, nibuf, max_ratio);
- obuf = prebuf = nil;
+ prebuf = nil;
if((ibuf = malloc(nibuf * Sampsz)) == nil
|| (obuf = malloc(maxnsamp * Sampsz)) == nil
|| silence && (prebuf = malloc(nibuf * Sampsz)) == nil)
--
⑨