X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flyric-performer.cc;h=9ba25c5bf1f1e6c839c4a7d05b319ba8a40251be;hb=5d84bfad4626892bcffd05adcced53c8a2329047;hp=2b117fe4fd6ccf57695058bd3e4d4585790fc51e;hpb=f93e4199873c91ae32f0e84a610d14853dc379df;p=lilypond.git diff --git a/lily/lyric-performer.cc b/lily/lyric-performer.cc index 2b117fe4fd..9ba25c5bf1 100644 --- a/lily/lyric-performer.cc +++ b/lily/lyric-performer.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2011 Jan Nieuwenhuizen + Copyright (C) 1997--2015 Jan Nieuwenhuizen LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,13 +30,14 @@ protected: void stop_translation_timestep (); void process_music (); - DECLARE_TRANSLATOR_LISTENER (lyric); + void listen_lyric (Stream_event *); private: vector events_; Audio_text *audio_; }; -Lyric_performer::Lyric_performer () +Lyric_performer::Lyric_performer (Context *c) + : Performer (c) { audio_ = 0; } @@ -67,13 +68,18 @@ Lyric_performer::stop_translation_timestep () events_.clear (); } -IMPLEMENT_TRANSLATOR_LISTENER (Lyric_performer, lyric); void Lyric_performer::listen_lyric (Stream_event *event) { events_.push_back (event); } +void +Lyric_performer::boot () +{ + ADD_LISTENER (Lyric_performer, lyric); +} + ADD_TRANSLATOR (Lyric_performer, /* doc */ "",