Skip to content

Commit 379dbd3

Browse files
committed
AudioCopy Correction
1 parent f4257fb commit 379dbd3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/examples-stk/streams-stk_myinstrument-audiokit/MyFirstInstrument.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class MyFirstInstrument : public Instrmnt {
2424
}
2525

2626
float tick() {
27-
return echo.tick(wave.tick())*adsr.tick();
27+
return echo.tick(wave.tick()) * adsr.tick();
2828
}
2929

3030
protected:

src/AudioTools/AudioCopy.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ class StreamCopyT {
9292
// if not initialized we do nothing
9393
if (from==nullptr || to==nullptr) return 0;
9494

95-
// If we try to write to a server we might not have any output destination yet
95+
// // If we try to write to a server we might not have any output destination yet
9696
int to_write = to->availableForWrite();
97-
if (to_write<=0){
98-
delay(500);
99-
return 0;
100-
}
97+
// if (to_write<=0){
98+
// delay(500);
99+
// return 0;
100+
// }
101101

102102

103103
size_t result = 0;

0 commit comments

Comments
 (0)