Skip to content

Commit 6a7f239

Browse files
committed
comments
1 parent 5d605c7 commit 6a7f239

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

examples/tests/codecs/test-codec-opus/test-codec-opus.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "AudioLibs/AudioKit.h"
1313
#include "AudioCodecs/CodecOpus.h"
1414

15-
int sample_rate = 24000;
15+
int sample_rate = 32000;
1616
int channels = 1;
1717

1818
SineWaveGenerator<int16_t> sineWave( 32000); // subclass of SoundGenerator with max amplitude of 32000
@@ -47,9 +47,10 @@ void setup() {
4747
encoder.begin(cfgs);
4848

4949
// configure additinal parameters
50-
//enc.config().application = OPUS_APPLICATION_RESTRICTED_LOWDELAY;
51-
//enc.config().frame_sizes_ms_x2 = OPUS_FRAMESIZE_20_MS;
52-
//enc.config().complexity = 5;
50+
// auto &enc_cfg = enc.config()
51+
// enc_cfg.application = OPUS_APPLICATION_RESTRICTED_LOWDELAY;
52+
// enc_cfg.frame_sizes_ms_x2 = OPUS_FRAMESIZE_20_MS;
53+
// enc_cfg.complexity = 5;
5354

5455
Serial.println("Test started...");
5556
}

src/AudioCodecs/CodecMP3LAME.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace audio_tools {
1717
* @author Phil Schatzmann
1818
* @copyright GPLv3
1919
*/
20-
struct AudioInfoLAME : AudioInfo {
20+
struct AudioInfoLAME : public liblame::AudioInfo {
2121
AudioInfoLAME () {
2222
sample_rate = 44100;
2323
channels = 2;
@@ -158,7 +158,7 @@ class MP3EncoderLAME : public AudioEncoder {
158158
if (p_print!=nullptr){
159159
setOutputStream(*p_print);
160160
}
161-
liblame::AudioInfo tmp;
161+
AudioInfoLAME tmp;
162162
tmp.channels = info.channels;
163163
tmp.sample_rate = info.sample_rate;
164164
tmp.bits_per_sample = info.bits_per_sample;

src/AudioCodecs/CodecOpus.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ struct OpusEncoderSettings : public OpusSettings {
110110
};
111111

112112
/**
113-
* @brief OpusDecoder. Depends on https://github.com/pschatzmann/arduino-libopus.git
113+
* @brief OpusAudioDecoder: Depends on https://github.com/pschatzmann/arduino-libopus.git
114114
* @author Phil Schatzmann
115115
* @copyright GPLv3
116116
*/
@@ -213,8 +213,7 @@ class OpusAudioDecoder : public AudioDecoder {
213213
};
214214

215215
/**
216-
* @brief OpusDecoder - Actually this class does no encoding or decoding at
217-
* all. It just passes on the data. Dependent on https://github.com/pschatzmann/arduino-libopus.git
216+
* @brief OpusAudioEncoder: Dependens on https://github.com/pschatzmann/arduino-libopus.git
218217
* @ingroup codec-opus
219218
* @author Phil Schatzmann
220219
* @copyright GPLv3

src/AudioTools/AudioStreams.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ class MemoryStream : public AudioStream {
320320
}
321321
}
322322

323+
/// Automatically rewinds to the beginning when reaching the end
323324
virtual void setLoop(bool loop){
324325
is_loop = loop;
325326
}
@@ -432,6 +433,7 @@ class DynamicMemoryStream : public AudioStream {
432433
clear();
433434
}
434435

436+
/// Automatically rewinds to the beginning when reaching the end
435437
virtual void setLoop(bool loop){
436438
is_loop = loop;
437439
}

0 commit comments

Comments
 (0)