+
+ if (_content->delay() < 0) {
+ /* Finish off with the gap caused by the delay */
+ silence (-_content->delay ());
+ }
+}
+
+
+void
+AudioDecoder::silence (int milliseconds)
+{
+ for (auto i: _content->streams()) {
+ int const samples = ContentTime::from_seconds(milliseconds / 1000.0).frames_round(i->frame_rate());
+ auto silence = make_shared<AudioBuffers>(i->channels(), samples);
+ silence->make_silent ();
+ Data (i, ContentAudio (silence, _positions[i]));
+ }