using std::cout;
-using std::map;
-using std::pair;
using std::shared_ptr;
using std::make_shared;
using boost::optional;
/*
- Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#define DCPOMATIC_AUDIO_DECODER_H
-#include "decoder.h"
-#include "content_audio.h"
#include "audio_stream.h"
+#include "content_audio.h"
+#include "decoder.h"
#include "decoder_part.h"
#include <boost/signals2.hpp>
*/
+
#include "audio_stream.h"
#include "audio_mapping.h"
#include "util.h"
+
AudioStream::AudioStream (int frame_rate, Frame length, int channels)
: _frame_rate (frame_rate)
, _length (length)
}
+
AudioStream::AudioStream (int frame_rate, Frame length, AudioMapping mapping)
: _frame_rate (frame_rate)
, _length (length)
}
+
void
AudioStream::set_mapping (AudioMapping mapping)
{
_mapping = mapping;
}
+
int
AudioStream::channels () const
{
/*
- Copyright (C) 2015-2016 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2015-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
*/
+
#ifndef DCPOMATIC_AUDIO_STREAM_H
#define DCPOMATIC_AUDIO_STREAM_H
+
#include "audio_mapping.h"
#include "types.h"
#include <boost/thread/mutex.hpp>
+
struct audio_sampling_rate_test;
class AudioStream
AudioMapping _mapping;
};
+
typedef std::shared_ptr<AudioStream> AudioStreamPtr;
+
#endif