Skip to content

Commit 0b2fbfb

Browse files
committed
audiokit-sd-audiokit
1 parent 036d106 commit 0b2fbfb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/examples-audiokit/streams-audiokit-sd-audiokit/streams-audiokit-sd-audiokit.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void setup(){
6464
kit.setVolume(1.0);
6565

6666
// record when key 1 is pressed
67-
actions.add(PIN_KEY1, record_start, record_end);
67+
kit.audioActions().add(PIN_KEY1, record_start, record_end);
6868
Serial.println("Press Key 1 to record");
6969

7070
}

src/AudioTools/AudioStreams.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ class DynamicMemoryStream : public AudioStreamX {
324324
DataNode(void*data, int len){
325325
this->len = len;
326326
this->data = new uint8_t[len];
327+
assert(this->data!=nullptr);
327328
memcpy(this->data, data, len);
328329
}
329330

0 commit comments

Comments
 (0)