}
bool
-SoundMXF::equals (shared_ptr<const Content> other, EqualityOptions opt, boost::function<void (NoteType, string)> note) const
+SoundMXF::equals (shared_ptr<const Asset> other, EqualityOptions opt, NoteHandler note) const
{
if (!MXF::equals (other, opt, note)) {
return false;
// desc_A.ChannelFormat != desc_B.ChannelFormat ||
) {
- note (ERROR, "audio MXF picture descriptors differ");
+ note (DCP_ERROR, "audio MXF picture descriptors differ");
return false;
}
}
if (buffer_A.Size() != buffer_B.Size()) {
- note (ERROR, String::compose ("sizes of audio data for frame %1 differ", i));
+ note (DCP_ERROR, String::compose ("sizes of audio data for frame %1 differ", i));
return false;
}
for (uint32_t i = 0; i < buffer_A.Size(); ++i) {
int const d = abs (buffer_A.RoData()[i] - buffer_B.RoData()[i]);
if (d > opt.max_audio_sample_error) {
- note (ERROR, String::compose ("PCM data difference of %1", d));
+ note (DCP_ERROR, String::compose ("PCM data difference of %1", d));
return false;
}
}
SoundMXF::get_frame (int n) const
{
/* XXX: should add on entry point here? */
- return shared_ptr<const SoundFrame> (new SoundFrame (file().string(), n, _decryption_context));
+ return shared_ptr<const SoundFrame> (new SoundFrame (file(), n, _decryption_context));
}
shared_ptr<SoundMXFWriter>
/* XXX: can't we use a shared_ptr here? */
return shared_ptr<SoundMXFWriter> (new SoundMXFWriter (this, file, standard));
}
-
-string
-SoundMXF::key_type () const
-{
- return "MDAK";
-}