Browse Source

make configure spewage a debug flag

master
aj_genius 20 years ago
parent
commit
a860214ab6
2 changed files with 24 additions and 14 deletions
  1. +23
    -13
      SpiralSound/SpiralInfo.C
  2. +1
    -1
      SpiralSynthModular.C

+ 23
- 13
SpiralSound/SpiralInfo.C View File

@@ -24,6 +24,9 @@
#include "SpiralInfo.h"
#include "../SpiralSynthPluginLocation.h"


//#define DEBUG_CONFIG

float RandFloat (float s, float e) {
return s+((rand()%10000/10000.0)*(e-s));
}
@@ -342,20 +345,27 @@ void SpiralInfo::StreamInPrefs (istream &s)
s >> temp;//skip "="

/* Check to see if this a Audio Settings section */
if (StreamInAudioSettingsPrefs(s, section, ident)) { cout << "successfully read " + section + ", " + ident << endl; }

else
/* Check next to see if this a Main Colour section */
if (StreamInMainColourPrefs(s, section, ident)) { cout << "successfully read " + section + ", " + ident << endl; }
else
/* Check next to see if this a Device Colour section */
if (StreamInDeviceColourPrefs(s, section, ident)) { cout << "successfully read " + section + ", " + ident << endl; }
else
/* lastly just ignore idents for sections that are invalid or we don't know about */
if (StreamInAudioSettingsPrefs(s, section, ident)) {
#ifdef DEBUG_CONFIG
cout << "successfully read " + section + ", " + ident << endl;
#endif
/* Check next to see if this a Main Colour section */
} else if (StreamInMainColourPrefs(s, section, ident)) {
#ifdef DEBUG_CONFIG
cout << "successfully read " + section + ", " + ident << endl;
#endif
/* Check next to see if this a Device Colour section */
} else if (StreamInDeviceColourPrefs(s, section, ident)) {
#ifdef DEBUG_CONFIG
cout << "successfully read " + section + ", " + ident << endl;
#endif
/* Ignore idents for sections that are invalid or we don't know about */
} else {
s >> temp;
#ifdef DEBUG_CONFIG
cout << "ignoring. don't know how to handle, " + section + ", " + ident << endl;
#endif
}

s.seekg (1, ios::cur ); //move to next line
}


+ 1
- 1
SpiralSynthModular.C View File

@@ -202,7 +202,7 @@ void SynthModular::Update()
{
// use the graphsort order to remove internal latency
map<int,DeviceWin*>::iterator di=m_DeviceWinMap.find(*i);
if (di!=m_DeviceWinMap.end() && di->second->m_Device && (! di->second->m_Device->IsDead()) && (!m_Info.PAUSED))
if (di!=m_DeviceWinMap.end() && di->second->m_Device && (! di->second->m_Device->IsDead()) && (!m_Info.PAUSED || m_ResetingAudioThread))
{
#ifdef DEBUG_PLUGINS
cerr<<"Executing plugin "<<di->second->m_PluginID<<endl;


Loading…
Cancel
Save