libdcp
Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
dcp::SoundAsset Class Reference

Representation of a sound asset. More...

#include <sound_asset.h>

Inheritance diagram for dcp::SoundAsset:
dcp::Asset dcp::MXF dcp::Object

Public Member Functions

 SoundAsset (boost::filesystem::path file)
 
 SoundAsset (Fraction edit_rate, int sampling_rate, int channels, LanguageTag language, Standard standard)
 
std::shared_ptr< SoundAssetWriterstart_write (boost::filesystem::path file, bool atmos_sync=false)
 
std::shared_ptr< SoundAssetReaderstart_read () const
 
bool equals (std::shared_ptr< const Asset > other, EqualityOptions opt, NoteHandler note) const override
 
int channels () const
 
int sampling_rate () const
 
Fraction edit_rate () const
 
int64_t intrinsic_duration () const
 
boost::optional< std::string > language () const
 
- Public Member Functions inherited from dcp::Asset
 Asset ()
 
 Asset (boost::filesystem::path file)
 
 Asset (std::string id, boost::filesystem::path file)
 
virtual void write_to_assetmap (xmlpp::Node *node, boost::filesystem::path root) const
 
virtual void add_to_pkl (std::shared_ptr< PKL > pkl, boost::filesystem::path root) const
 
boost::optional< boost::filesystem::path > file () const
 
void set_file (boost::filesystem::path file) const
 
std::string hash (boost::function< void(float)> progress={}) const
 
void set_hash (std::string hash)
 
- Public Member Functions inherited from dcp::Object
 Object ()
 
 Object (std::string id)
 
 Object (Object const &)=delete
 
Objectoperator= (Object const &)=delete
 
std::string id () const
 
- Public Member Functions inherited from dcp::MXF
 MXF (Standard standard)
 
bool encrypted () const
 
void set_key_id (std::string i)
 
boost::optional< std::string > key_id () const
 
virtual void set_key (Key)
 
boost::optional< Keykey () const
 
void set_context_id (std::string id)
 
std::string context_id () const
 
void set_metadata (MXFMetadata m)
 
MXFMetadata metadata () const
 
Standard standard () const
 

Static Public Member Functions

static bool valid_mxf (boost::filesystem::path)
 
static std::string static_pkl_type (Standard standard)
 

Private Attributes

Fraction _edit_rate
 
int64_t _intrinsic_duration = 0
 
int _channels = 0
 number of channels
 
int _sampling_rate = 0
 sampling rate in Hz
 
boost::optional< std::string > _language
 

Friends

class SoundAssetWriter
 

Additional Inherited Members

- Protected Member Functions inherited from dcp::MXF
std::string read_writer_info (ASDCP::WriterInfo const &)
 
void fill_writer_info (ASDCP::WriterInfo *w, std::string id) const
 
- Static Protected Member Functions inherited from dcp::Asset
static void write_file_to_assetmap (xmlpp::Node *node, boost::filesystem::path root, boost::filesystem::path file, std::string id)
 
- Protected Attributes inherited from dcp::Asset
boost::optional< boost::filesystem::path > _file
 
- Protected Attributes inherited from dcp::Object
std::string _id
 
- Protected Attributes inherited from dcp::MXF
boost::optional< std::string > _key_id
 
boost::optional< Key_key
 
std::string _context_id
 
MXFMetadata _metadata
 
boost::optional< Standard > _standard
 

Detailed Description

Representation of a sound asset.

Definition at line 72 of file sound_asset.h.

Member Function Documentation

◆ channels()

int dcp::SoundAsset::channels ( ) const
inline
Returns
number of channels

Definition at line 88 of file sound_asset.h.

◆ sampling_rate()

int dcp::SoundAsset::sampling_rate ( ) const
inline
Returns
sampling rate in Hz

Definition at line 93 of file sound_asset.h.

Member Data Documentation

◆ _intrinsic_duration

int64_t dcp::SoundAsset::_intrinsic_duration = 0
private

The total length of this content in video frames. The amount of content presented may be less than this.

Definition at line 126 of file sound_asset.h.


The documentation for this class was generated from the following files: