diff options
Diffstat (limited to 'libs/ardour/sndfilesource.cc')
-rw-r--r-- | libs/ardour/sndfilesource.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index ca2544054c..3dfec0bab6 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -221,6 +221,13 @@ SndFileSource::open () bool bwf_info_exists = _broadcast_info->load_from_file (sf); + if (_file_is_new && _length == 0 && writable() && !bwf_info_exists) { + /* newly created files will not have a BWF header at this point in time. + * Import will have called Source::set_timeline_position() if one exists + * in the original. */ + header_position_offset = _timeline_position; + } + /* Set our timeline position to either the time reference from a BWF header or the current start of the session. */ |