Structure containing initialisation parameters for the real-time audio control system. More...

#include <Bela.h>

Public Attributes

int periodSize
 Number of (analog) frames per period. More...
 
int useAnalog
 Whether to use the analog input and output.
 
int useDigital
 Whether to use the 16 programmable GPIOs.
 
int numAudioInChannels
 How many audio input channels.
 
int numAudioOutChannels
 How many audio out channels.
 
int numAnalogInChannels
 How many analog input channels.
 
int numAnalogOutChannels
 How many analog output channels.
 
int numDigitalChannels
 How many channels for the GPIOs.
 
int beginMuted
 Whether to begin with the speakers muted.
 
float dacLevel
 Level for the audio DAC output.
 
float adcLevel
 Level for the audio ADC input.
 
float pgaGain [2]
 Gains for the PGA, left and right channels.
 
float headphoneLevel
 Level for the headphone output.
 
int numMuxChannels
 How many channels to use on the multiplexer capelet, if enabled.
 
int pruNumber
 Which PRU (0 or 1) the code should run on.
 
char pruFilename [MAX_PRU_FILENAME_LENGTH]
 The external .bin file to load. If empty will use PRU code from pru_rtaudio_bin.h.
 
int verbose
 Whether to use verbose logging.
 
int interleave
 Whether audio/analog data should be interleaved.
 
int analogOutputsPersist
 Whether analog outputs should persist to future frames. More...
 
int codecI2CAddress
 Where the codec can be found on the I2C bus.
 
int ampMutePin
 Pin where amplifier mute can be found.
 
int receivePort
 Port where the UDP server will listen.
 
int transmitPort
 Port where the UDP client will transmit.
 
char serverName [MAX_SERVERNAME_LENGTH]
 

Detailed Description

Structure containing initialisation parameters for the real-time audio control system.

This structure is initialised using Bela_defaultSettings(). Its contents are used up through the point of calling Bela_initAudio() at which point it is no longer needed.

Member Data Documentation

int BelaInitSettings::periodSize

Number of (analog) frames per period.

Number of audio frames depends on relative sample rates of the two. By default, audio is twice the sample rate, so has twice the period size.

int BelaInitSettings::analogOutputsPersist

Whether analog outputs should persist to future frames.

n.b. digital pins always persist, audio never does


The documentation for this struct was generated from the following file: