Index: src/engines/gig/EngineChannel.cpp =================================================================== RCS file: /var/cvs/linuxsampler/linuxsampler/src/engines/gig/EngineChannel.cpp,v retrieving revision 1.35 diff -U3 -r1.35 EngineChannel.cpp --- src/engines/gig/EngineChannel.cpp 29 Aug 2007 10:36:32 -0000 1.35 +++ src/engines/gig/EngineChannel.cpp 4 Sep 2007 13:22:14 -0000 @@ -452,6 +452,7 @@ event.Param.Note.Key = Key; event.Param.Note.Velocity = Velocity; event.pEngineChannel = this; + if (!event.pEngineChannel) std::cerr << "!!! ERROR !pEngineChannel !!! -> " << __PRETTY_FUNCTION__ << "\n" << std::flush; if (this->pEventQueue->write_space() > 0) this->pEventQueue->push(&event); else dmsg(1,("EngineChannel: Input event queue full!")); } @@ -478,6 +479,7 @@ event.Param.Note.Key = Key; event.Param.Note.Velocity = Velocity; event.pEngineChannel = this; + if (!event.pEngineChannel) std::cerr << "!!! ERROR !pEngineChannel !!! -> " << __PRETTY_FUNCTION__ << "\n" << std::flush; if (this->pEventQueue->write_space() > 0) this->pEventQueue->push(&event); else dmsg(1,("EngineChannel: Input event queue full!")); } @@ -499,6 +501,7 @@ event.Param.Note.Key = Key; event.Param.Note.Velocity = Velocity; event.pEngineChannel = this; + if (!event.pEngineChannel) std::cerr << "!!! ERROR !pEngineChannel !!! -> " << __PRETTY_FUNCTION__ << "\n" << std::flush; if (this->pEventQueue->write_space() > 0) this->pEventQueue->push(&event); else dmsg(1,("EngineChannel: Input event queue full!")); } @@ -525,6 +528,7 @@ event.Param.Note.Key = Key; event.Param.Note.Velocity = Velocity; event.pEngineChannel = this; + if (!event.pEngineChannel) std::cerr << "!!! ERROR !pEngineChannel !!! -> " << __PRETTY_FUNCTION__ << "\n" << std::flush; if (this->pEventQueue->write_space() > 0) this->pEventQueue->push(&event); else dmsg(1,("EngineChannel: Input event queue full!")); } @@ -544,6 +548,7 @@ event.Type = Event::type_pitchbend; event.Param.Pitch.Pitch = Pitch; event.pEngineChannel = this; + if (!event.pEngineChannel) std::cerr << "!!! ERROR !pEngineChannel !!! -> " << __PRETTY_FUNCTION__ << "\n" << std::flush; if (this->pEventQueue->write_space() > 0) this->pEventQueue->push(&event); else dmsg(1,("EngineChannel: Input event queue full!")); } @@ -568,6 +573,7 @@ event.Type = Event::type_pitchbend; event.Param.Pitch.Pitch = Pitch; event.pEngineChannel = this; + if (!event.pEngineChannel) std::cerr << "!!! ERROR !pEngineChannel !!! -> " << __PRETTY_FUNCTION__ << "\n" << std::flush; if (this->pEventQueue->write_space() > 0) this->pEventQueue->push(&event); else dmsg(1,("EngineChannel: Input event queue full!")); } @@ -589,6 +595,7 @@ event.Param.CC.Controller = Controller; event.Param.CC.Value = Value; event.pEngineChannel = this; + if (!event.pEngineChannel) std::cerr << "!!! ERROR !pEngineChannel !!! -> " << __PRETTY_FUNCTION__ << "\n" << std::flush; if (this->pEventQueue->write_space() > 0) this->pEventQueue->push(&event); else dmsg(1,("EngineChannel: Input event queue full!")); } @@ -615,6 +622,7 @@ event.Param.CC.Controller = Controller; event.Param.CC.Value = Value; event.pEngineChannel = this; + if (!event.pEngineChannel) std::cerr << "!!! ERROR !pEngineChannel !!! -> " << __PRETTY_FUNCTION__ << "\n" << std::flush; if (this->pEventQueue->write_space() > 0) this->pEventQueue->push(&event); else dmsg(1,("EngineChannel: Input event queue full!")); }