shithub: audio-stretch

Download patch

ref: 5202c4b7a010abbada58097189a596b86c80abff
parent: 76d44fd7018c60c80056962aa25b45abd3319dcf
author: hayati ayguen <h_ayguen@web.de>
date: Tue Oct 4 17:45:23 EDT 2022

notes on stereo input


Signed-off-by: hayati ayguen <h_ayguen@web.de>

--- a/README
+++ b/README
@@ -74,7 +74,8 @@
 
 Notes:
 
-1. The program will handle only mono or stereo files in the WAV format. The
+1. The program will handle only mono or stereo files in the WAV format. In
+   case of stereo, the two channels shouldn't be independent. The
    audio must be 16-bit PCM and the acceptable sampling rates are from 8,000
    to 48,000 Hz. Any additional RIFF info in the WAV file will be discarded.
    The command-line program is only for little-endian architectures.
--- a/stretch.h
+++ b/stretch.h
@@ -14,6 +14,13 @@
 // to stretch the timing of a 16-bit PCM signal (either mono or stereo) from
 // 1/2 to 2 times its original length. This is done without altering any of
 // its tonal characteristics.
+//
+// Use stereo (num_chans = 2), when both channels are from same source
+// and should contain approximately similar content.
+// For independent channels, prefer using multiple StretchHandle-instances.
+// see https://github.com/dbry/audio-stretch/issues/6
+// Multiple instances, of course, wil consume more CPU load.
+// In addition, different output amounts need to be handled.
 
 #ifndef STRETCH_H
 #define STRETCH_H