4th parameter of time is ticks (1 tick = 4ms) not milliseconds
[libdcp.git] / src / sound_asset.h
index f686e4bd6fbbd5c67c1402665eaa3401f8d83122..06edfc335d42ac52f0dd14307d0a3f7f7fbcb77d 100644 (file)
  *  @brief An asset made up of WAV files
  */
 
-#include "asset.h"
+#include "mxf_asset.h"
 #include "types.h"
 
 namespace libdcp
 {
 
+class SoundFrame;      
+
 /** @brief An asset made up of WAV files */
-class SoundAsset : public Asset
+class SoundAsset : public MXFAsset
 {
 public:
        /** Construct a SoundAsset, generating the MXF from the WAV files.
@@ -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;
 };
 
 }