comparison include/RTAudio.h @ 16:670be80463a3 matrix_gpio

- analog matrixIn/matrixOut are now mapped as floats from 0 to 1 - use of an external PRU code can be enabled with -P <filename> - 16 channels of programmable GPIO can be accessed straight from render() either writing directly to the matrixGpio[] array or using digitalWrite(), digitalRead(), setDigitalDirection() macros from Utilities.h .
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 27 Apr 2015 13:01:57 +0100
parents a6beeba3a648
children c98863e63174
comparison
equal deleted inserted replaced
15:901d205d1a3c 16:670be80463a3
27 27
28 // Default volume levels 28 // Default volume levels
29 #define DEFAULT_DAC_LEVEL 0.0 29 #define DEFAULT_DAC_LEVEL 0.0
30 #define DEFAULT_ADC_LEVEL -6.0 30 #define DEFAULT_ADC_LEVEL -6.0
31 #define DEFAULT_HP_LEVEL -6.0 31 #define DEFAULT_HP_LEVEL -6.0
32 #define MAX_PRU_FILENAME_LENGTH 256
32 33
33 enum { 34 enum {
34 kAmplifierMutePin = 61 // P8-26 controls amplifier mute 35 kAmplifierMutePin = 61 // P8-26 controls amplifier mute
35 }; 36 };
36 37
42 int beginMuted; // Whether to begin with the speakers muted 43 int beginMuted; // Whether to begin with the speakers muted
43 float dacLevel; // Level for the audio DAC output 44 float dacLevel; // Level for the audio DAC output
44 float adcLevel; // Level for the audio ADC input 45 float adcLevel; // Level for the audio ADC input
45 float headphoneLevel; // Level for the headphone output 46 float headphoneLevel; // Level for the headphone output
46 int useMatrix; // Whether to use the matrix 47 int useMatrix; // Whether to use the matrix
48 int useMatrixGpio; // Whether to use the 16 programmable GPIOs
47 int numMatrixChannels; // How many channels for the ADC and DAC 49 int numMatrixChannels; // How many channels for the ADC and DAC
50 int numMatrixGpioChannels; // How many channels for the GPIOs
48 int verbose; // Whether to use verbose logging 51 int verbose; // Whether to use verbose logging
49 52 char pruFilename[MAX_PRU_FILENAME_LENGTH]; //the external .bin file to load. If empty will use PRU code from pru_rtaudio_bin.h
50 // These items are hardware-dependent and should only be changed 53 // These items are hardware-dependent and should only be changed
51 // to run on different hardware 54 // to run on different hardware
52 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
53 int ampMutePin; // Pin where amplifier mute can be found 56 int ampMutePin; // Pin where amplifier mute can be found
54 } RTAudioSettings; 57 } RTAudioSettings;