BOOST_FOREACH.
[dcpomatic.git] / src / lib / audio_decoder.cc
index 5334dfa345071e887fa6e9f7a04d34701d23054b..095be0aae50e7aa0f1d4a16e2ab893691449bacb 100644 (file)
@@ -25,7 +25,6 @@
 #include "log.h"
 #include "resampler.h"
 #include "compose.hpp"
-#include <boost/foreach.hpp>
 #include <iostream>
 
 #include "i18n.h"
@@ -43,7 +42,7 @@ AudioDecoder::AudioDecoder (Decoder* parent, shared_ptr<const AudioContent> cont
        , _fast (fast)
 {
        /* Set up _positions so that we have one for each stream */
-       BOOST_FOREACH (AudioStreamPtr i, content->streams ()) {
+       for (auto i: content->streams ()) {
                _positions[i] = 0;
        }
 }
@@ -184,7 +183,7 @@ AudioDecoder::flush ()
 void
 AudioDecoder::silence (int milliseconds)
 {
-       BOOST_FOREACH (AudioStreamPtr i, _content->streams ()) {
+       for (auto i: _content->streams()) {
                int const samples = ContentTime::from_seconds(milliseconds / 1000.0).frames_round(i->frame_rate());
                shared_ptr<AudioBuffers> silence (new AudioBuffers (i->channels(), samples));
                silence->make_silent ();