]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/performer.cc
release: 1.3.10
[lilypond.git] / lily / performer.cc
index ad2f9805ed00e7057ba77f7d6df497e0c3f3eb17..f0cd2585e22887666b0c957aa744075ec3cef678 100644 (file)
@@ -3,91 +3,48 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996, 1997 Han-Wen Nienhuys <hanwen@stack.nl>
-               Jan Nieuwenhuizen <jan@digicash.com>
+  (c) 1996,  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+               Jan Nieuwenhuizen <janneke@gnu.org>
  */
 
 
 #include "performer-group-performer.hh"
 #include "debug.hh"
 
-
-IMPLEMENT_IS_TYPE_B(Performer);
-
-Performer::Performer()
-{
-  daddy_perf_l_ = 0;
-  init_b_ =false;
-}
-
-Performer::~Performer()
-{
-}
-
-void
-Performer::do_print() const
-{
-}
-
 void 
-Performer::play (Audio_element* p) 
+Performer::play_element (Audio_element* p) 
 { 
-  daddy_perf_l_->play (p); 
+  daddy_perf_l ()->play_element (p); 
 }
 
 int
-Performer::get_tempo_i()const
+Performer::get_tempo_i() const
 {
-  return daddy_perf_l_->get_tempo_i();
+  return daddy_perf_l ()->get_tempo_i();
 }
 
-void
-Performer::print() const
+Performer_group_performer*
+Performer::daddy_perf_l () const
 {
-#ifndef NPRINT
-  DOUT << "\n" << name() << " {";
-  do_print();
-  DOUT << "}";
-#endif
+  return (daddy_trans_l_) 
+    ?dynamic_cast<Performer_group_performer *> (daddy_trans_l_)
+    : 0;
 }
 
 void
-Performer::process_requests()
-{
-}
-
-bool 
-Performer::do_try_request (Request* req_l)
+Performer::acknowledge_element (Audio_element_info)
 {
-  return false;
-}
-
-bool
-Performer::try_request (Request*r)
-{
-  if (!init_b_) 
-    {
-       creation_processing();
-    }
-  return do_try_request (r);
 }
 
 void
-Performer::creation_processing()
+Performer::process_acknowledged ()
 {
-  if (!init_b_) 
-    {
-       do_creation_processing();
-       init_b_ = true;
-    }
 }
 
-void
-Performer::do_creation_processing()
-{
-}
 
 void
-Performer::do_removal_processing()
+Performer::announce_element (Audio_element_info i)
 {
+  i.origin_trans_l_arr_.push (this);
+  daddy_perf_l()->announce_element (i);
 }