/[svn]/libgig/trunk/src/gig.cpp
ViewVC logotype

Diff of /libgig/trunk/src/gig.cpp

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

revision 2647 by schoenebeck, Mon Jun 16 14:54:06 2014 UTC revision 2648 by schoenebeck, Wed Jun 18 14:32:33 2014 UTC
# Line 4520  namespace { Line 4520  namespace {
4520          }          }
4521    
4522          // own gig format extensions          // own gig format extensions
4523         if (pScriptRefs) {         if (ScriptSlotCount()) {
4524               // make sure we have converted the original loaded script file
4525               // offsets into valid Script object pointers
4526               LoadScripts();
4527    
4528             RIFF::List* lst3LS = pCkInstrument->GetSubList(LIST_TYPE_3LS);             RIFF::List* lst3LS = pCkInstrument->GetSubList(LIST_TYPE_3LS);
4529             if (!lst3LS) lst3LS = pCkInstrument->AddSubList(LIST_TYPE_3LS);             if (!lst3LS) lst3LS = pCkInstrument->AddSubList(LIST_TYPE_3LS);
4530             const int slotCount = pScriptRefs->size();             const int slotCount = pScriptRefs->size();
# Line 4547  namespace { Line 4551  namespace {
4551                 store32(&pData[pos], (*pScriptRefs)[i].bypass ? 1 : 0);                 store32(&pData[pos], (*pScriptRefs)[i].bypass ? 1 : 0);
4552                 pos += sizeof(uint32_t);                 pos += sizeof(uint32_t);
4553             }             }
4554           } else {
4555               // no script slots, so get rid of any LS custom RIFF chunks (if any)
4556               RIFF::List* lst3LS = pCkInstrument->GetSubList(LIST_TYPE_3LS);
4557               if (lst3LS) pCkInstrument->DeleteSubChunk(lst3LS);
4558         }         }
4559      }      }
4560    

Legend:
Removed from v.2647  
changed lines
  Added in v.2648

  ViewVC Help
Powered by ViewVC