Mercurial > hg > beaglert
comparison include/RTAudio.h @ 19:c98863e63174 matrix_gpio
Renamed matrixGpio to digital and matrix to analog
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Thu, 30 Apr 2015 16:58:41 +0100 |
parents | 670be80463a3 |
children | ad5cd8dd99b3 |
comparison
equal
deleted
inserted
replaced
18:31503d9de101 | 19:c98863e63174 |
---|---|
37 | 37 |
38 // Structure which contains initialisation parameters for the | 38 // Structure which contains initialisation parameters for the |
39 // real-time audio system | 39 // real-time audio system |
40 typedef struct { | 40 typedef struct { |
41 // These items might be adjusted by the user: | 41 // These items might be adjusted by the user: |
42 int periodSize; // Number of (matrix) frames per period; audio is twice this | 42 int periodSize; // Number of (analog) frames per period; audio is twice this |
43 int beginMuted; // Whether to begin with the speakers muted | 43 int beginMuted; // Whether to begin with the speakers muted |
44 float dacLevel; // Level for the audio DAC output | 44 float dacLevel; // Level for the audio DAC output |
45 float adcLevel; // Level for the audio ADC input | 45 float adcLevel; // Level for the audio ADC input |
46 float headphoneLevel; // Level for the headphone output | 46 float headphoneLevel; // Level for the headphone output |
47 int useMatrix; // Whether to use the matrix | 47 int useAnalog; // Whether to use the analog |
48 int useMatrixGpio; // Whether to use the 16 programmable GPIOs | 48 int useDigital; // Whether to use the 16 programmable GPIOs |
49 int numMatrixChannels; // How many channels for the ADC and DAC | 49 int numAnalogChannels; // How many channels for the ADC and DAC |
50 int numMatrixGpioChannels; // How many channels for the GPIOs | 50 int numDigitalChannels; // How many channels for the GPIOs |
51 int verbose; // Whether to use verbose logging | 51 int verbose; // Whether to use verbose logging |
52 char pruFilename[MAX_PRU_FILENAME_LENGTH]; //the external .bin file to load. If empty will use PRU code from pru_rtaudio_bin.h | 52 char pruFilename[MAX_PRU_FILENAME_LENGTH]; //the external .bin file to load. If empty will use PRU code from pru_rtaudio_bin.h |
53 // These items are hardware-dependent and should only be changed | 53 // These items are hardware-dependent and should only be changed |
54 // to run on different hardware | 54 // to run on different hardware |
55 int codecI2CAddress; // Where the codec can be found on the I2C bus | 55 int codecI2CAddress; // Where the codec can be found on the I2C bus |