Skip to content

Commit f5462a0

Browse files
committed
Examples remove sound_t data type
1 parent e47335d commit f5462a0

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

examples/examples-stream/streams-generator-analog/streams-generator-analog.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88

99
#include "AudioTools.h"
1010

11-
typedef int16_t sound_t; // sound will be represented as int16_t (with 2 bytes)
1211
AudioInfo info(8000, 1, 16);
13-
SineWaveGenerator<sound_t> sineWave(32000); // subclass of SoundGenerator with max amplitude of 32000
14-
GeneratedSoundStream<sound_t> sound(sineWave); // Stream generated from sine wave
12+
SineWaveGenerator<int16_t> sineWave(32000); // subclass of SoundGenerator with max amplitude of 32000
13+
GeneratedSoundStream<int16_t> sound(sineWave); // Stream generated from sine wave
1514
AnalogAudioStream out;
1615
StreamCopy copier(out, sound); // copies sound into i2s
1716

examples/examples-stream/streams-generator-spdif/streams-generator-spdif.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
#include "AudioTools.h"
1010

1111

12-
typedef int16_t sound_t; // sound will be represented as int16_t (with 2 bytes)
1312
AudioInfo info(44100, 2, 16);
14-
SineWaveGenerator<sound_t> sineWave(32000); // subclass of SoundGenerator with max amplitude of 32000
15-
GeneratedSoundStream<sound_t> sound(sineWave); // Stream generated from sine wave
13+
SineWaveGenerator<int16_t> sineWave(32000); // subclass of SoundGenerator with max amplitude of 32000
14+
GeneratedSoundStream<int16_t> sound(sineWave); // Stream generated from sine wave
1615
SPDIFOutput out;
1716
StreamCopy copier(out, sound, 2048); // copies sound into i2s
1817

src/AudioTools/AudioOutput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ using MemoryPrint = MemoryOutput;
707707

708708
/**
709709
* @brief Simple functionality to extract mono streams from a multichannel (e.g.
710-
* stereo) signal.
710+
* stereo) signal.
711711
* @ingroup transform
712712
* @author Phil Schatzmann
713713
* @copyright GPLv3

0 commit comments

Comments
 (0)