You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
C
49 lines
1.1 KiB
C
#ifndef _RINGCONFIG_H_
|
|
#define _RINGCONFIG_H_
|
|
|
|
// <<< Use Configuration Wizard in Context Menu >>>
|
|
|
|
// <h>Audio Configuration
|
|
// <o>Sampling Frequency <8000=> 8000 kHz <16000=> 16000 kHz
|
|
// <44100=> 44100 kHz <48000=> 48000 kHz
|
|
#ifndef AUDIO_SAMPLINGFREQUENCY
|
|
#define AUDIO_SAMPLINGFREQUENCY 16000
|
|
#endif
|
|
|
|
// <o>Number of samples <100-3000>
|
|
// <i> Must be consistent with the settings of the Audio source
|
|
#ifndef AUDIO_NBSAMPLES
|
|
#define AUDIO_NBSAMPLES 1600
|
|
#endif
|
|
|
|
// <o>Number of channels <1=> Mono <2=> Stereo
|
|
#ifndef AUDIO_NBCHANNELS
|
|
#define AUDIO_NBCHANNELS 1U
|
|
#endif
|
|
|
|
// <o>Channel encoding <2=> 16 Bits
|
|
#ifndef AUDIO_CHANNEL_ENCODING
|
|
#define AUDIO_CHANNEL_ENCODING 2U
|
|
#endif
|
|
|
|
// <q> RX_ENABLED: Enable RX
|
|
#define RX_ENABLED 1
|
|
|
|
// <q> TX_ENABLED: Enable TX
|
|
#define TX_ENABLED 1
|
|
|
|
// </h>
|
|
|
|
// <h>Ring Buffer Configuration
|
|
// <o>Number of buffers <2-32>
|
|
#ifndef RING_NBBUFS
|
|
#define RING_NBBUFS 2
|
|
#endif
|
|
// </h>
|
|
|
|
// <<< end of configuration section >>>
|
|
|
|
#define RING_BUFSIZE (AUDIO_NBSAMPLES * AUDIO_NBCHANNELS * AUDIO_CHANNEL_ENCODING)
|
|
|
|
#endif
|