Bump version.
[lilypond.git] / lily / audio-element-info.cc
blobc3cda8b40eafefeb7bbd0b2989ea5b8001069440
1 /*
2 Audio-element-info.cc -- implement Audio_element_info
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
9 #include "audio-element-info.hh"
11 #include "translator-group.hh"
12 #include "context.hh"
14 Audio_element_info::Audio_element_info (Audio_element *s, Stream_event *r)
16 elem_ = s;
17 origin_trans_ = 0;
18 event_ = r;
21 Audio_element_info::Audio_element_info ()
23 elem_ = 0;
24 event_ = 0;
25 origin_trans_ = 0;
28 vector<Context*>
29 Audio_element_info::origin_contexts (Translator *end) const
31 Context *t = origin_trans_->context ();
32 vector<Context*> r;
35 r.push_back (t);
36 t = t->get_parent_context ();
38 while (t && t != end->context ());
40 return r;