Comments / tweaks.
[libdcp.git] / src / sound_frame.cc
index 6471ee0a78d0b9358c4cf59b1f61a3206e604323..da0da194baf7f4df99997e29c009bf76e96ee3fc 100644 (file)
 
 */
 
+/** @file  src/sound_frame.cc
+ *  @brief SoundFrame class.
+ */
+
 #include "sound_frame.h"
 #include "exceptions.h"
 #include "AS_DCP.h"
 using namespace std;
 using namespace dcp;
 
-SoundFrame::SoundFrame (string mxf_path, int n, ASDCP::AESDecContext* c)
+SoundFrame::SoundFrame (boost::filesystem::path mxf_path, int n, ASDCP::AESDecContext* c)
 {
        ASDCP::PCM::MXFReader reader;
-       Kumu::Result_t r = reader.OpenRead (mxf_path.c_str());
+       Kumu::Result_t r = reader.OpenRead (mxf_path.file().c_str());
        if (ASDCP_FAILURE (r)) {
                boost::throw_exception (FileError ("could not open MXF file for reading", mxf_path, r));
        }