diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-01 23:53:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-01 23:53:06 +0100 |
| commit | a68b877d96a9e9f366f27752e071bc0e895e9dc7 (patch) | |
| tree | 11a32d1efd6abf182b03ce22f1f1fe84258bb7de /src/sound_asset.h | |
| parent | f9cba324c8160a70b108d9e5b60a4ccad6ee9be2 (diff) | |
Add Reader classes to permit much more efficient DCP reading.
Diffstat (limited to 'src/sound_asset.h')
| -rw-r--r-- | src/sound_asset.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound_asset.h b/src/sound_asset.h index 73734f9f..78b80bc8 100644 --- a/src/sound_asset.h +++ b/src/sound_asset.h @@ -33,6 +33,7 @@ namespace dcp class SoundFrame; class SoundAssetWriter; +class SoundAssetReader; /** @class SoundAsset * @brief Representation of a sound asset @@ -44,6 +45,7 @@ public: SoundAsset (Fraction edit_rate, int sampling_rate, int channels); boost::shared_ptr<SoundAssetWriter> start_write (boost::filesystem::path file, Standard standard); + boost::shared_ptr<SoundAssetReader> start_read () const; bool equals ( boost::shared_ptr<const Asset> other, @@ -51,8 +53,6 @@ public: NoteHandler note ) const; - boost::shared_ptr<const SoundFrame> get_frame (int n) const; - /** @return number of channels */ int channels () const { return _channels; |
