summaryrefslogtreecommitdiff
path: root/src/lib/sndfile_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-13 18:39:56 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-18 11:50:29 +0100
commit6dd3777a0074f6f97c7f7286621006a1c14376e8 (patch)
treef151d71e7d5616e87d1b1d087e4a3034d676dee7 /src/lib/sndfile_content.h
parentc5dab5fdc0edde080e408a6d24fa059e27106ef5 (diff)
Copy SingleStreamAudioContent into DCPContent and SndfileContent.
Diffstat (limited to 'src/lib/sndfile_content.h')
-rw-r--r--src/lib/sndfile_content.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/sndfile_content.h b/src/lib/sndfile_content.h
index 9dcf954b5..5f89b7cc8 100644
--- a/src/lib/sndfile_content.h
+++ b/src/lib/sndfile_content.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -20,9 +20,11 @@
#ifndef DCPOMATIC_SNDFILE_CONTENT_H
#define DCPOMATIC_SNDFILE_CONTENT_H
-#include "single_stream_audio_content.h"
+#include "audio_content.h"
-class SndfileContent : public SingleStreamAudioContent
+class AudioExaminer;
+
+class SndfileContent : public AudioContent
{
public:
SndfileContent (boost::shared_ptr<const Film>, boost::filesystem::path);
@@ -42,6 +44,12 @@ public:
void take_from_audio_examiner (boost::shared_ptr<AudioExaminer>);
+ std::vector<AudioStreamPtr> audio_streams () const;
+
+ AudioStreamPtr audio_stream () const {
+ return _audio_stream;
+ }
+
static bool valid_file (boost::filesystem::path);
private:
@@ -51,6 +59,8 @@ private:
}
Frame _audio_length;
+
+ boost::shared_ptr<AudioStream> _audio_stream;
};
#endif