comparison include/render.h @ 24:ad5cd8dd99b3 bbb_network

UDP communication in place, pre-alpha
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 08 May 2015 11:12:13 +0100
parents c98863e63174
children
comparison
equal deleted inserted replaced
23:182ae9367104 24:ad5cd8dd99b3
8 #ifndef RENDER_H_ 8 #ifndef RENDER_H_
9 #define RENDER_H_ 9 #define RENDER_H_
10 10
11 // uint types 11 // uint types
12 #include <stdint.h> 12 #include <stdint.h>
13 #include "../include/Utilities.h" 13 #include "Utilities.h"
14 #include "../include/digital_gpio_mapping.h" 14 #include "digital_gpio_mapping.h"
15 #include "RTAudioSettings.h"
16
15 // Mappings from pin numbers on PCB to actual DAC channels 17 // Mappings from pin numbers on PCB to actual DAC channels
16 // This gives the DAC and ADC connectors the same effective pinout 18 // This gives the DAC and ADC connectors the same effective pinout
17 #define DAC_PIN0 6 19 #define DAC_PIN0 6
18 #define DAC_PIN1 4 20 #define DAC_PIN1 4
19 #define DAC_PIN2 2 21 #define DAC_PIN2 2
39 extern int gNumDigitalChannels; 41 extern int gNumDigitalChannels;
40 bool initialise_render(int numAnalogChannels, int numDigitalChannels, int numAudioChannels, 42 bool initialise_render(int numAnalogChannels, int numDigitalChannels, int numAudioChannels,
41 int numAnalogFramesPerPeriod, 43 int numAnalogFramesPerPeriod,
42 int numAudioFramesPerPeriod, 44 int numAudioFramesPerPeriod,
43 float analogSampleRate, float audioSampleRate, 45 float analogSampleRate, float audioSampleRate,
44 void *userData); 46 void *userData, RTAudioSettings *settings);
45 47
46 void render(int numAnalogFrames, int numAudioFrames, int numDigitalFrames, float *audioIn, float *audioOut, 48 void render(int numAnalogFrames, int numAudioFrames, int numDigitalFrames, float *audioIn, float *audioOut,
47 float *analogIn, float *analogOut, uint32_t *digital); 49 float *analogIn, float *analogOut, uint32_t *digital);
48 50
49 void render_medium_prio(); 51 void render_medium_prio();