summaryrefslogtreecommitdiff
path: root/src/sound_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-08-12 20:52:15 +0100
committerCarl Hetherington <cth@carlh.net>2012-08-12 20:52:15 +0100
commit916247147468aee47354ebb3088f47b8a56fcccf (patch)
tree90fb72f6312a8935bf61ec5affaf82f7bb8b88f6 /src/sound_asset.h
parentbc09fbc79580f56c93e35de25230af18b30e0e1e (diff)
Don't crash with no audio; get video MXF information from the MXF itself; get sampling rate from audio MXF.for-dcptovideo
Diffstat (limited to 'src/sound_asset.h')
-rw-r--r--src/sound_asset.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sound_asset.h b/src/sound_asset.h
index f686e4bd..a0dd0a6e 100644
--- a/src/sound_asset.h
+++ b/src/sound_asset.h
@@ -30,6 +30,8 @@
namespace libdcp
{
+class SoundFrame;
+
/** @brief An asset made up of WAV files */
class SoundAsset : public Asset
{
@@ -86,11 +88,15 @@ public:
std::list<std::string> equals (boost::shared_ptr<const Asset> other, EqualityOptions opt) const;
+ boost::shared_ptr<const SoundFrame> get_frame (int n) const;
+
int channels () const {
return _channels;
}
- int sampling_rate () const;
+ int sampling_rate () const {
+ return _sampling_rate;
+ }
private:
void construct (sigc::slot<std::string, Channel> get_path);
@@ -98,6 +104,7 @@ private:
/** Number of channels in the asset */
int _channels;
+ int _sampling_rate;
};
}