Sample rate fix in effects.cpp, revised code in PitShift for hanning windowing.

This commit is contained in:
garyscavone
2024-12-18 20:45:43 -05:00
parent d7d6079f6b
commit 270edc855f
3 changed files with 27 additions and 17 deletions

View File

@@ -219,17 +219,17 @@ int tick( void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames,
int main( int argc, char *argv[] )
{
// If you want to change the default sample rate (set in Stk.h), do
// it before instantiating any objects! If the sample rate is
// specified in the command line, it will override this setting.
Stk::setSampleRate( 48000.0 );
TickData data;
RtAudio adac;
int i;
if ( argc < 2 || argc > 6 ) usage();
// If you want to change the default sample rate (set in Stk.h), do
// it before instantiating any objects! If the sample rate is
// specified in the command line, it will override this setting.
Stk::setSampleRate( 48000.0 );
// Parse the command-line arguments.
unsigned int port = 2001;
for ( i=1; i<argc; i++ ) {