/[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 1777 by persson, Mon Sep 15 16:58:10 2008 UTC revision 1895 by persson, Sun May 3 12:15:40 2009 UTC
# Line 66  namespace { Line 66  namespace {
66      LinuxSamplerEditor::LinuxSamplerEditor(AudioEffect* effect) :      LinuxSamplerEditor::LinuxSamplerEditor(AudioEffect* effect) :
67          AEffEditor(effect) {          AEffEditor(effect) {
68          dmsg(2, ("-->LinuxSamplerEditor constructor\n"));          dmsg(2, ("-->LinuxSamplerEditor constructor\n"));
69    #ifdef WIN32
70            ProcessHandle = INVALID_HANDLE_VALUE;
71    #endif
72        }
73    
74        LinuxSamplerEditor::~LinuxSamplerEditor() {
75            close();
76      }      }
77    
78      bool LinuxSamplerEditor::open(void* ptr) {      bool LinuxSamplerEditor::open(void* ptr) {
# Line 109  namespace { Line 116  namespace {
116          if (ProcessHandle != INVALID_HANDLE_VALUE) {          if (ProcessHandle != INVALID_HANDLE_VALUE) {
117              TerminateProcess(ProcessHandle, 0);              TerminateProcess(ProcessHandle, 0);
118              free(Command);              free(Command);
119                ProcessHandle = INVALID_HANDLE_VALUE;
120          }          }
121  #endif  #endif
122      }      }
# Line 153  namespace { Line 161  namespace {
161          if (!pAudioDevice) {          if (!pAudioDevice) {
162              Init(int(sampleRate), blockSize);              Init(int(sampleRate), blockSize);
163    
164              if (SavedChunk.length()) {              if (!SavedChunk.empty()) {
165                  SetState(SavedChunk);                  SetState(SavedChunk);
166                  SavedChunk = "";                  SavedChunk.clear();
167              } else {              } else {
168                  InitState();                  InitState();
169              }              }
170            } else {
171                Init(int(sampleRate), blockSize);
172          }          }
173          dmsg(2, ("<--resume\n"));          dmsg(2, ("<--resume\n"));
174      }      }

Legend:
Removed from v.1777  
changed lines
  Added in v.1895

  ViewVC Help
Powered by ViewVC