Mercurial > hg > beaglert
diff 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 |
line wrap: on
line diff
--- a/include/ReceiveAudioThread.h Fri Aug 21 15:21:34 2015 +0100 +++ b/include/ReceiveAudioThread.h Fri Aug 21 15:52:37 2015 +0100 @@ -58,7 +58,16 @@ void bindToPort(int aPort); bool isListening(); float* getCurrentBuffer(int length); + /** + * Copies the samples to a non-interleaved buffer. + */ int getSamplesSrc(float *destination, int length, float samplingRateRatio); + /** + * Copies the samples to an interleaved buffer. + */ + int getSamplesSrc(float *destination, int length, + float samplingRateRatio, int numChannelsInDestination, + int channelToWriteTo); bool isBufferReady(); #ifdef JUCE // if we are in Juce, then we run a separate thread for each receiver // (as each of them are typically receiving on a mono or stereo track)