/[svn]/linuxsampler/trunk/src/hostplugins/vst/PluginVst.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/hostplugins/vst/PluginVst.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2426 by schoenebeck, Sat Sep 22 18:28:38 2012 UTC revision 2427 by persson, Sat Mar 2 07:03:04 2013 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   Copyright (C) 2008 - 2012 Andreas Persson                             *   *   Copyright (C) 2008 - 2013 Andreas Persson                             *
4   *                                                                         *   *                                                                         *
5   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
6   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 58  namespace { Line 58  namespace {
58      LinuxSampler::Mutex logmutex;      LinuxSampler::Mutex logmutex;
59    
60      void log(const char* fmt, ...) {      void log(const char* fmt, ...) {
61          logmutex.Lock();          LockGuard lock(logmutex);
62          FILE* f = fopen((String(getenv("TEMP")) + "\\linuxsamplervst.log").c_str(), "a");          FILE* f = fopen((String(getenv("TEMP")) + "\\linuxsamplervst.log").c_str(), "a");
63          va_list ap;          va_list ap;
64          va_start(ap, fmt);          va_start(ap, fmt);
65          vfprintf(f, fmt, ap);          vfprintf(f, fmt, ap);
66          va_end(ap);          va_end(ap);
67          fclose(f);          fclose(f);
         logmutex.Unlock();  
68      }      }
69  #undef dmsg  #undef dmsg
70  #define dmsg(debuglevel,x) log x;  #define dmsg(debuglevel,x) log x;

Legend:
Removed from v.2426  
changed lines
  Added in v.2427

  ViewVC Help
Powered by ViewVC