SoundFrame::SoundFrame (boost::filesystem::path mxf_path, int n, ASDCP::AESDecContext* c)
{
ASDCP::PCM::MXFReader reader;
- Kumu::Result_t r = reader.OpenRead (mxf_path.file().c_str());
+ Kumu::Result_t r = reader.OpenRead (mxf_path.string().c_str());
if (ASDCP_FAILURE (r)) {
boost::throw_exception (FileError ("could not open MXF file for reading", mxf_path, r));
}
*/
+/** @file src/sound_mxf.h
+ * @brief SoundMXF class
+ */
+
#ifndef LIBDCP_SOUND_MXF_H
#define LIBDCP_SOUND_MXF_H
class SoundFrame;
class SoundMXFWriter;
+/** @class SoundMXF
+ * @brief Representation of a MXF file containing sound
+ */
class SoundMXF : public MXF
{
public:
boost::shared_ptr<const SoundFrame> get_frame (int n) const;
- void set_channels (int c) {
- _channels = c;
- }
-
+ /** @return number of channels */
int channels () const {
return _channels;
}
- void set_sampling_rate (int s) {
- _sampling_rate = s;
- }
-
+ /** @return sampling rate in Hz */
int sampling_rate () const {
return _sampling_rate;
}
private:
std::string key_type () const;
- /** Number of channels in the asset */
- int _channels;
- int _sampling_rate;
+ int _channels; ///< number of channels
+ int _sampling_rate; ///< sampling rate in Hz
};
}