-
-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db5d78e
commit 7346c18
Showing
3 changed files
with
159 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "AudioTools.h" | ||
|
||
AudioInfo info(44100, 2, 16); | ||
SilenceGenerator<int16_t> silence; | ||
GeneratedSoundStream<int16_t> sound(silence); | ||
Throttle throttle(sound); | ||
MeasuringStream out(200, &Serial); | ||
StreamCopy copier(out, throttle); | ||
|
||
void setup() { | ||
Serial.begin(115200); | ||
AudioLogger::instance().begin(Serial, AudioLogger::Warning); | ||
|
||
out.begin(info); | ||
sound.begin(info); | ||
throttle.begin(info); | ||
|
||
} | ||
|
||
void loop() { copier.copy(); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters