dcpomatic::DCPTime time;
};
- void set_sample_peak (std::vector<PeakTime> peak) {
+ void set_sample_peak (std::vector<PeakTime> const& peak) {
_sample_peak = peak;
}
- void set_true_peak (std::vector<float> peak) {
+ void set_true_peak (std::vector<float> const& peak) {
_true_peak = peak;
}
void
-AudioContent::set_mapping (AudioMapping mapping)
+AudioContent::set_mapping (AudioMapping const& mapping)
{
ContentChangeSignaller cc (_parent, AudioContentProperty::STREAMS);
void
-AudioContent::set_streams (vector<AudioStreamPtr> streams)
+AudioContent::set_streams (vector<AudioStreamPtr> const& streams)
{
ContentChangeSignaller cc (_parent, AudioContentProperty::STREAMS);
void take_settings_from (std::shared_ptr<const AudioContent> c);
AudioMapping mapping () const;
- void set_mapping (AudioMapping);
+ void set_mapping (AudioMapping const&);
int resampled_frame_rate (std::shared_ptr<const Film> film) const;
std::vector<NamedChannel> channel_names () const;
void add_stream (AudioStreamPtr stream);
void set_stream (AudioStreamPtr stream);
- void set_streams (std::vector<AudioStreamPtr> streams);
+ void set_streams (std::vector<AudioStreamPtr> const& streams);
AudioStreamPtr stream () const;
void add_properties (std::shared_ptr<const Film> film, std::list<UserProperty> &) const;
class ContentStringText : public ContentText
{
public:
- ContentStringText (dcpomatic::ContentTime f, std::list<dcp::SubtitleString> s)
+ ContentStringText (dcpomatic::ContentTime f, std::list<dcp::SubtitleString> const& s)
: ContentText (f)
, subs (s)
{}
}
shared_ptr<AudioBuffers>
-remap (shared_ptr<const AudioBuffers> input, int output_channels, AudioMapping map)
+remap (shared_ptr<const AudioBuffers> input, int output_channels, AudioMapping const& map)
{
auto mapped = make_shared<AudioBuffers>(output_channels, input->frames());
mapped->make_silent ();
extern float relaxed_string_to_float (std::string);
extern std::string careful_string_filter (std::string);
extern std::pair<int, int> audio_channel_types (std::list<int> mapped, int channels);
-extern std::shared_ptr<AudioBuffers> remap (std::shared_ptr<const AudioBuffers> input, int output_channels, AudioMapping map);
+extern std::shared_ptr<AudioBuffers> remap (std::shared_ptr<const AudioBuffers> input, int output_channels, AudioMapping const& map);
extern Eyes increment_eyes (Eyes e);
extern void checked_fread (void* ptr, size_t size, FILE* stream, boost::filesystem::path path);
extern void checked_fwrite (void const * ptr, size_t size, FILE* stream, boost::filesystem::path path);