more 64bit VM debugging nonsense (svn in the fastest route between my system and...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 21 May 2012 20:44:04 +0000 (20:44 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 21 May 2012 20:44:04 +0000 (20:44 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12368 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/sndfilesource.cc
libs/audiographer/src/general/broadcast_info.cc

index a818769921d980d472dc9195755b30267ca3236c..644762f7210096e6fdcaf8825c9369c6f541b85d 100644 (file)
@@ -341,14 +341,6 @@ SndFileSource::read_unlocked (Sample *dst, framepos_t start, framecnt_t cnt) con
                                sf_error_str (0, errbuf, sizeof (errbuf) - 1);
                                error << string_compose(_("SndFileSource: @ %1 could not read %2 within %3 (%4) (len = %5, ret was %6)"), start, file_cnt, _name.val().substr (1), errbuf, _length, ret) << endl;
                        }
-                       if (id() == ID ("148")) {
-                               cerr << "src 148, first sample of read @ " << start << " = " << dst[0] << " aka " << hex
-                                    <<  (int) (((char*) dst)[0]) << ' '
-                                    <<  (int) (((char*) dst)[1]) << ' '
-                                    <<  (int) (((char*) dst)[2]) << ' '
-                                    <<  (int) (((char*) dst)[3]) << dec
-                                    << endl;
-                       }
                        _descriptor->release ();
                        return ret;
                }
@@ -538,6 +530,7 @@ SndFileSource::flush_header ()
                return -1;
        }
 
+       std::cerr << "Flushing header of " << _path << " with length @ " << _length << endl;
        int const r = sf_command (sf, SFC_UPDATE_HEADER_NOW, 0, 0) != SF_TRUE;
        _descriptor->release ();
 
@@ -593,7 +586,7 @@ SndFileSource::set_header_timeline_position ()
        _broadcast_info->set_time_reference (_timeline_position);
 
        SNDFILE* sf = _descriptor->allocate ();
-
+       
        if (sf == 0 || !_broadcast_info->write_to_file (sf)) {
                error << string_compose (_("cannot set broadcast info for audio file %1 (%2); dropping broadcast info for this file"),
                                           _path, _broadcast_info->get_error())
index 43e5008e5212c49ffaf89e4f6997b2cbeb392645..a0c41ca70c13fca9bc171d53decc0befab728a8c 100644 (file)
@@ -168,6 +168,7 @@ BroadcastInfo::write_to_file (std::string const & filename)
 bool
 BroadcastInfo::write_to_file (SNDFILE* sf)
 {
+       std::cerr << "AG set BWF as " << sizeof(*info) << std::endl;
        if (sf_command (sf, SFC_SET_BROADCAST_INFO, info, sizeof (*info)) != SF_TRUE) {
                update_error();
                return false;