6namespace arduino_vs1053 {
23 void setSampleRate(uint16_t rate){
25 if (sample_rate>48000) sample_rate = 48000;
26 if (sample_rate<8000) sample_rate = 8000;
29 uint16_t sampleRate() {
33 void setChannels(uint8_t ch){
42 void setRecordingGain(uint8_t gain){
43 recording_gain = 1024 * gain / 100;
44 if (recording_gain>1024) recording_gain = 1024;
45 if (recording_gain<0) recording_gain = 0;
48 uint8_t recordingGain() {
49 return recording_gain;
53 void setAutoGainAmplification(uint8_t amp){
54 autogain_amplification = 65535 * amp / 100 ;
55 if (autogain_amplification>65535) autogain_amplification = 65535;
56 if (autogain_amplification<0) autogain_amplification = 0;
59 uint8_t autoGainAmplification() {
60 return autogain_amplification;
68 uint16_t sample_rate = 8000;
69 uint8_t channels_v = 1;
70 uint16_t recording_gain = 0;
71 uint16_t autogain_amplification = 0;
VS1053_INPUT
Input from Aux or Microphone.
Definition: VS1053Recording.h:10
Main class for controlling VS1053 and VS1003 modules.
Definition: VS1053Driver.h:91
Relevant control data for recording audio from the vs1053.
Definition: VS1053Recording.h:19