/[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 829 by schoenebeck, Sat Jan 14 14:07:47 2006 UTC revision 903 by persson, Sat Jul 22 14:22:53 2006 UTC
# Line 189  namespace LinuxSampler { namespace gig { Line 189  namespace LinuxSampler { namespace gig {
189          catch (RIFF::Exception e) {          catch (RIFF::Exception e) {
190              InstrumentStat = -2;              InstrumentStat = -2;
191              String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message;              String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message;
192              throw LinuxSamplerException(msg);              throw Exception(msg);
193          }          }
194          catch (InstrumentResourceManagerException e) {          catch (InstrumentResourceManagerException e) {
195              InstrumentStat = -3;              InstrumentStat = -3;
196              String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message();              String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message();
197              throw LinuxSamplerException(msg);              throw Exception(msg);
198          }          }
199          catch (...) {          catch (...) {
200              InstrumentStat = -4;              InstrumentStat = -4;
201              throw LinuxSamplerException("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file.");              throw Exception("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file.");
202          }          }
203    
204          // rebuild ActiveKeyGroups map with key groups of current instrument          // rebuild ActiveKeyGroups map with key groups of current instrument
# Line 215  namespace LinuxSampler { namespace gig { Line 215  namespace LinuxSampler { namespace gig {
215          }          }
216          catch (AudioOutputException e) {          catch (AudioOutputException e) {
217              String msg = "Audio output device unable to provide 2 audio channels, cause: " + e.Message();              String msg = "Audio output device unable to provide 2 audio channels, cause: " + e.Message();
218              throw LinuxSamplerException(msg);              throw Exception(msg);
219          }          }
220    
221          if (pEngine) pEngine->Enable();          if (pEngine) pEngine->Enable();
# Line 271  namespace LinuxSampler { namespace gig { Line 271  namespace LinuxSampler { namespace gig {
271          AudioDeviceChannelRight = 1;          AudioDeviceChannelRight = 1;
272          pOutputLeft             = pAudioOut->Channel(0)->Buffer();          pOutputLeft             = pAudioOut->Channel(0)->Buffer();
273          pOutputRight            = pAudioOut->Channel(1)->Buffer();          pOutputRight            = pAudioOut->Channel(1)->Buffer();
274            MidiInputPort::AddSysexListener(pEngine);
275      }      }
276    
277      void EngineChannel::DisconnectAudioOutputDevice() {      void EngineChannel::DisconnectAudioOutputDevice() {
# Line 445  namespace LinuxSampler { namespace gig { Line 446  namespace LinuxSampler { namespace gig {
446          GlobalPanLeft  = 1.0f;          GlobalPanLeft  = 1.0f;
447          GlobalPanRight = 1.0f;          GlobalPanRight = 1.0f;
448          // set all MIDI controller values to zero          // set all MIDI controller values to zero
449          memset(ControllerTable, 0x00, 128);          memset(ControllerTable, 0x00, 129);
450      }      }
451    
452      /**      /**

Legend:
Removed from v.829  
changed lines
  Added in v.903

  ViewVC Help
Powered by ViewVC