We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8af1b6 commit 3861e9fCopy full SHA for 3861e9f
examples/tests/conversion/test-volumestream/test-volumestream.ino
@@ -12,7 +12,8 @@ SineWaveGenerator<int16_t> sineWave(32000); // subclass of SoundG
12
GeneratedSoundStream<int16_t> sound(sineWave);
13
CsvOutput<int16_t> out(Serial);
14
VolumeStream vol(out);
15
-StreamCopy copier(vol, sound); // copies sound to out
+StreamCopy copier(vol, sound);
16
+float f_volume = 0.1;
17
18
// Arduino Setup
19
void setup(void) {
@@ -23,7 +24,7 @@ void setup(void) {
23
24
// Define CSV Output
25
out.begin(audio_info);
26
vol.begin(audio_info);
- vol.setVolume(0.1);
27
+ vol.setVolume(f_volume);
28
29
// Setup sine wave
30
sineWave.begin(audio_info, N_B4);
0 commit comments