Skip to content

Commit

Permalink
file release between load and unload fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
petibub committed Jul 11, 2017
1 parent badd23b commit d6e2d41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NativeCode/Plugin_Spatializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace Spatializer
#endif
fopen_s(&Log, "SOFAlizer.log", "a");
fprintf(Log, "SOFAlizer %s: SOFA-based spatializer (c) Piotr Majdak, ARI, OeAW\n", SOFALIZER_VERSION);

fclose(Log);
for (unsigned int i = 0; i < MAX_SOFAS; i++)
{
// stamp all files as not loaded and not usable
Expand Down Expand Up @@ -86,6 +86,7 @@ namespace Spatializer
#if _DEBUG
fprintf(sharedData.pConsole, "System sampling rate: %u\n", state->samplerate);
#endif
fopen_s(&(sharedData.Log), "SOFAlizer.log", "a");
fprintf(sharedData.Log, "System sampling rate: %u\n", state->samplerate);
// Iterate through the SOFA files
for (unsigned int i = 0; i < MAX_SOFAS; i++)
Expand Down

0 comments on commit d6e2d41

Please sign in to comment.