Skip to content

Commit

Permalink
Make sure folder for soundfont exists
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Nov 19, 2023
1 parent 0691ac8 commit 5502468
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Standalone/InternalSynth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ InternalSynth::InternalSynth()
#ifdef PLUGDATA_STANDALONE
// Unpack soundfont
if (!soundFont.existsAsFile()) {
soundFont.getParentDirectory().createDirectory();
FileOutputStream ostream(soundFont);
ostream.write(StandaloneBinaryData::GeneralUser_GS_sf3, StandaloneBinaryData::GeneralUser_GS_sf3Size);
ostream.flush();
Expand Down

0 comments on commit 5502468

Please sign in to comment.