/[svn]/linuxsampler/trunk/src/engines/gig/InstrumentResourceManager.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/InstrumentResourceManager.cpp

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

revision 3916 by schoenebeck, Sat Feb 1 19:06:13 2020 UTC revision 3917 by schoenebeck, Thu Jun 10 12:58:37 2021 UTC
# Line 4  Line 4 
4   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
5   *                                                                         *   *                                                                         *
6   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
7   *   Copyright (C) 2005 - 2020 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2021 Christian Schoenebeck                       *
8   *                                                                         *   *                                                                         *
9   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
10   *   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 949  namespace LinuxSampler { namespace gig { Line 949  namespace LinuxSampler { namespace gig {
949      ::gig::File* InstrumentResourceManager::GigResourceManager::Create(String Key, GigConsumer* pConsumer, void*& pArg) {      ::gig::File* InstrumentResourceManager::GigResourceManager::Create(String Key, GigConsumer* pConsumer, void*& pArg) {
950          dmsg(1,("Loading gig file \'%s\'...", Key.c_str()));          dmsg(1,("Loading gig file \'%s\'...", Key.c_str()));
951          ::RIFF::File* pRIFF = new ::RIFF::File(Key);          ::RIFF::File* pRIFF = new ::RIFF::File(Key);
952            // due to the multi-threaded scenario use separate file I/O handles for
953            // each thread to avoid file I/O concurrency issues with .gig file
954            pRIFF->SetIOPerThread(true);
955    
956          ::gig::File* pGig   = new ::gig::File(pRIFF);          ::gig::File* pGig   = new ::gig::File(pRIFF);
957          pArg                = pRIFF;          pArg                = pRIFF;
958          dmsg(1,("OK\n"));          dmsg(1,("OK\n"));

Legend:
Removed from v.3916  
changed lines
  Added in v.3917

  ViewVC Help
Powered by ViewVC