Mercurial > hg > beaglert
comparison include/render.h @ 12:a6beeba3a648
Initial support for higher matrix sample rates by reducing the number of channels. Input not tested yet, and not all examples updated to new format.
author | andrewm |
---|---|
date | Thu, 22 Jan 2015 19:00:22 +0000 |
parents | 8a575ba3ab52 |
children | 6adb088196a7 |
comparison
equal
deleted
inserted
replaced
11:517715b23df0 | 12:a6beeba3a648 |
---|---|
31 #define ADC_PIN6 6 | 31 #define ADC_PIN6 6 |
32 #define ADC_PIN7 7 | 32 #define ADC_PIN7 7 |
33 | 33 |
34 #define MATRIX_MAX 65535.0 | 34 #define MATRIX_MAX 65535.0 |
35 | 35 |
36 bool initialise_render(int numChannels, int numMatrixFramesPerPeriod, | 36 bool initialise_render(int numMatrixChannels, int numAudioChannels, |
37 int numMatrixFramesPerPeriod, | |
37 int numAudioFramesPerPeriod, | 38 int numAudioFramesPerPeriod, |
38 float matrixSampleRate, float audioSampleRate, | 39 float matrixSampleRate, float audioSampleRate, |
39 void *userData); | 40 void *userData); |
40 | 41 |
41 void render(int numMatrixFrames, int numAudioFrames, float *audioIn, float *audioOut, | 42 void render(int numMatrixFrames, int numAudioFrames, float *audioIn, float *audioOut, |