comparison include/RTAudioSettings.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
children
comparison
equal deleted inserted replaced
23:182ae9367104 24:ad5cd8dd99b3
1 /*
2 * RTaudioSettings.h
3 *
4 * Created on: 6 May 2015
5 * Author: unmanaged
6 */
7
8 #ifndef RTAUDIOSETTINGS_H_
9 #define RTAUDIOSETTINGS_H_
10
11 #define MAX_PRU_FILENAME_LENGTH 256
12 #define MAX_SERVERNAME_LENGTH 256
13 // Structure which contains initialisation parameters for the
14 // real-time audio system
15 typedef struct {
16 // These items might be adjusted by the user:
17 int periodSize; // Number of (analog) frames per period; audio is twice this
18 int beginMuted; // Whether to begin with the speakers muted
19 float dacLevel; // Level for the audio DAC output
20 float adcLevel; // Level for the audio ADC input
21 float headphoneLevel; // Level for the headphone output
22 int useAnalog; // Whether to use the analog
23 int useDigital; // Whether to use the 16 programmable GPIOs
24 int numAnalogChannels; // How many channels for the ADC and DAC
25 int numDigitalChannels; // How many channels for the GPIOs
26 int verbose; // Whether to use verbose logging
27 char pruFilename[MAX_PRU_FILENAME_LENGTH]; //the external .bin file to load. If empty will use PRU code from pru_rtaudio_bin.h
28 // These items are hardware-dependent and should only be changed
29 // to run on different hardware
30 int codecI2CAddress; // Where the codec can be found on the I2C bus
31 int ampMutePin; // Pin where amplifier mute can be found
32 int receivePort; //port where the UDP server will listen
33 int transmitPort; //port where the UDP client will transmit
34 char serverName[MAX_SERVERNAME_LENGTH];
35 } RTAudioSettings;
36
37
38
39
40 #endif /* RTAUDIOSETTINGS_H_ */