giuliomoro@24: /* giuliomoro@24: * RTaudioSettings.h giuliomoro@24: * giuliomoro@24: * Created on: 6 May 2015 giuliomoro@24: * Author: unmanaged giuliomoro@24: */ giuliomoro@24: giuliomoro@24: #ifndef RTAUDIOSETTINGS_H_ giuliomoro@24: #define RTAUDIOSETTINGS_H_ giuliomoro@24: giuliomoro@24: #define MAX_PRU_FILENAME_LENGTH 256 giuliomoro@24: #define MAX_SERVERNAME_LENGTH 256 giuliomoro@24: // Structure which contains initialisation parameters for the giuliomoro@24: // real-time audio system giuliomoro@24: typedef struct { giuliomoro@24: // These items might be adjusted by the user: giuliomoro@24: int periodSize; // Number of (analog) frames per period; audio is twice this giuliomoro@24: int beginMuted; // Whether to begin with the speakers muted giuliomoro@24: float dacLevel; // Level for the audio DAC output giuliomoro@24: float adcLevel; // Level for the audio ADC input giuliomoro@24: float headphoneLevel; // Level for the headphone output giuliomoro@24: int useAnalog; // Whether to use the analog giuliomoro@24: int useDigital; // Whether to use the 16 programmable GPIOs giuliomoro@24: int numAnalogChannels; // How many channels for the ADC and DAC giuliomoro@24: int numDigitalChannels; // How many channels for the GPIOs giuliomoro@24: int verbose; // Whether to use verbose logging giuliomoro@24: char pruFilename[MAX_PRU_FILENAME_LENGTH]; //the external .bin file to load. If empty will use PRU code from pru_rtaudio_bin.h giuliomoro@24: // These items are hardware-dependent and should only be changed giuliomoro@24: // to run on different hardware giuliomoro@24: int codecI2CAddress; // Where the codec can be found on the I2C bus giuliomoro@24: int ampMutePin; // Pin where amplifier mute can be found giuliomoro@24: int receivePort; //port where the UDP server will listen giuliomoro@24: int transmitPort; //port where the UDP client will transmit giuliomoro@24: char serverName[MAX_SERVERNAME_LENGTH]; giuliomoro@24: } RTAudioSettings; giuliomoro@24: giuliomoro@24: giuliomoro@24: giuliomoro@24: giuliomoro@24: #endif /* RTAUDIOSETTINGS_H_ */