#include "log.h"
#include "resampler.h"
#include "compose.hpp"
-#include <boost/foreach.hpp>
#include <iostream>
#include "i18n.h"
using std::cout;
using std::map;
using std::pair;
-using boost::shared_ptr;
+using std::shared_ptr;
using boost::optional;
using namespace dcpomatic;
, _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;
}
}
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 ();