Skip to content
Snippets Groups Projects
Commit 97a6ec49 authored by Josh Siegle's avatar Josh Siegle
Browse files

Add check for existence of events file before saving

parent dd2d963d
No related branches found
No related tags found
No related merge requests found
......@@ -691,6 +691,10 @@ void RecordNode::writeEventBuffer(MidiMessage& event, int samplePosition) //, in
{
// find file and write samples to disk
// std::cout << "Received event!" << std::endl;
// check to see if the file exists
if (eventChannel->file == NULL)
return;
const uint8* dataptr = event.getRawData();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment