mirror of
https://github.com/thestk/stk
synced 2026-04-21 06:56:55 +00:00
Version 4.4.0
This commit is contained in:
committed by
Stephen Sinclair
parent
d199342e86
commit
eccd8c9981
@@ -19,6 +19,8 @@
|
||||
#include <signal.h>
|
||||
#include <iostream>
|
||||
|
||||
using namespace stk;
|
||||
|
||||
// Eewww ... global variables! :-)
|
||||
bool done;
|
||||
StkFrames frames;
|
||||
@@ -44,7 +46,7 @@ int tick( void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames,
|
||||
FileWvIn *input = (FileWvIn *) userData;
|
||||
register StkFloat *samples = (StkFloat *) outputBuffer;
|
||||
|
||||
input->tickFrame( frames );
|
||||
input->tick( frames );
|
||||
for ( unsigned int i=0; i<frames.size(); i++ )
|
||||
*samples++ = frames[i];
|
||||
|
||||
@@ -85,7 +87,7 @@ int main(int argc, char *argv[])
|
||||
input.ignoreSampleRateChange();
|
||||
|
||||
// Find out how many channels we have.
|
||||
int channels = input.getChannels();
|
||||
int channels = input.channelsOut();
|
||||
|
||||
// Figure out how many bytes in an StkFloat and setup the RtAudio stream.
|
||||
RtAudio::StreamParameters parameters;
|
||||
|
||||
Reference in New Issue
Block a user