comparison include/ReceiveAudioThread.h @ 120:cdd441a304a9 scope-refactoring

Added read to interleaved buffer
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 21 Aug 2015 15:52:37 +0100
parents c692827083e1
children 850a4a9bd832
comparison
equal deleted inserted replaced
119:c692827083e1 120:cdd441a304a9
56 void init(int port, int aSamplesPerBlock, int channel); 56 void init(int port, int aSamplesPerBlock, int channel);
57 void setup(); 57 void setup();
58 void bindToPort(int aPort); 58 void bindToPort(int aPort);
59 bool isListening(); 59 bool isListening();
60 float* getCurrentBuffer(int length); 60 float* getCurrentBuffer(int length);
61 /**
62 * Copies the samples to a non-interleaved buffer.
63 */
61 int getSamplesSrc(float *destination, int length, float samplingRateRatio); 64 int getSamplesSrc(float *destination, int length, float samplingRateRatio);
65 /**
66 * Copies the samples to an interleaved buffer.
67 */
68 int getSamplesSrc(float *destination, int length,
69 float samplingRateRatio, int numChannelsInDestination,
70 int channelToWriteTo);
62 bool isBufferReady(); 71 bool isBufferReady();
63 #ifdef JUCE // if we are in Juce, then we run a separate thread for each receiver 72 #ifdef JUCE // if we are in Juce, then we run a separate thread for each receiver
64 // (as each of them are typically receiving on a mono or stereo track) 73 // (as each of them are typically receiving on a mono or stereo track)
65 void run(); 74 void run();
66 #else 75 #else