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

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

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

revision 1040 by schoenebeck, Wed Feb 7 15:41:31 2007 UTC revision 1267 by iliev, Tue Aug 7 10:34:07 2007 UTC
# Line 159  namespace LinuxSampler { namespace gig { Line 159  namespace LinuxSampler { namespace gig {
159       * This method will then actually start to load the instrument and block       * This method will then actually start to load the instrument and block
160       * the calling thread until loading was completed.       * the calling thread until loading was completed.
161       *       *
      * @returns detailed description of the method call result  
162       * @see PrepareLoadInstrument()       * @see PrepareLoadInstrument()
163       */       */
164      void EngineChannel::LoadInstrument() {      void EngineChannel::LoadInstrument() {
# Line 192  namespace LinuxSampler { namespace gig { Line 191  namespace LinuxSampler { namespace gig {
191              instrid.Index     = InstrumentIdx;              instrid.Index     = InstrumentIdx;
192              newInstrument = Engine::instruments.Borrow(instrid, this);              newInstrument = Engine::instruments.Borrow(instrid, this);
193              if (!newInstrument) {              if (!newInstrument) {
194                  throw InstrumentResourceManagerException("resource was not created");                  throw InstrumentManagerException("resource was not created");
195              }              }
196          }          }
197          catch (RIFF::Exception e) {          catch (RIFF::Exception e) {
# Line 200  namespace LinuxSampler { namespace gig { Line 199  namespace LinuxSampler { namespace gig {
199              String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message;              String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message;
200              throw Exception(msg);              throw Exception(msg);
201          }          }
202          catch (InstrumentResourceManagerException e) {          catch (InstrumentManagerException e) {
203              InstrumentStat = -3;              InstrumentStat = -3;
204              String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message();              String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message();
205              throw Exception(msg);              throw Exception(msg);
# Line 336  namespace LinuxSampler { namespace gig { Line 335  namespace LinuxSampler { namespace gig {
335              default:              default:
336                  throw AudioOutputException("Invalid engine audio channel " + ToString(EngineAudioChannel));                  throw AudioOutputException("Invalid engine audio channel " + ToString(EngineAudioChannel));
337          }          }
338    
339            bStatusChanged = true;
340      }      }
341    
342      int EngineChannel::OutputChannel(uint EngineAudioChannel) {      int EngineChannel::OutputChannel(uint EngineAudioChannel) {
# Line 388  namespace LinuxSampler { namespace gig { Line 389  namespace LinuxSampler { namespace gig {
389          }          }
390          fxSends.push_back(pFxSend);          fxSends.push_back(pFxSend);
391          if (pEngine) pEngine->Enable();          if (pEngine) pEngine->Enable();
392            fireFxSendCountChanged(iSamplerChannelIndex, GetFxSendCount());
393            
394          return pFxSend;          return pFxSend;
395      }      }
396    
# Line 425  namespace LinuxSampler { namespace gig { Line 428  namespace LinuxSampler { namespace gig {
428              }              }
429          }          }
430          if (pEngine) pEngine->Enable();          if (pEngine) pEngine->Enable();
431            fireFxSendCountChanged(iSamplerChannelIndex, GetFxSendCount());
432      }      }
433    
434      /**      /**
# Line 631  namespace LinuxSampler { namespace gig { Line 635  namespace LinuxSampler { namespace gig {
635          MidiVolume     = 1.0;          MidiVolume     = 1.0;
636          GlobalPanLeft  = 1.0f;          GlobalPanLeft  = 1.0f;
637          GlobalPanRight = 1.0f;          GlobalPanRight = 1.0f;
638            GlobalTranspose = 0;
639          // set all MIDI controller values to zero          // set all MIDI controller values to zero
640          memset(ControllerTable, 0x00, 129);          memset(ControllerTable, 0x00, 129);
641          // reset all FX Send levels          // reset all FX Send levels

Legend:
Removed from v.1040  
changed lines
  Added in v.1267

  ViewVC Help
Powered by ViewVC