diff options
Diffstat (limited to 'libs/ardour/filesource.cc')
-rw-r--r-- | libs/ardour/filesource.cc | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libs/ardour/filesource.cc b/libs/ardour/filesource.cc index d4f728c13b..568ce46bd1 100644 --- a/libs/ardour/filesource.cc +++ b/libs/ardour/filesource.cc @@ -907,14 +907,20 @@ FileSource::check_header (jack_nframes_t rate, bool silent) _path, header.data.size, _length * sizeof (Sample)) << endmsg; } - if ((jack_nframes_t) header.format.nSamplesPerSec != rate) { - warning << string_compose(_("\"%1\" has a sample rate of %2 instead of %3 as used by this session"), - _path, header.format.nSamplesPerSec, rate) << endmsg; - } +// if ((jack_nframes_t) header.format.nSamplesPerSec != rate) { +// warning << string_compose(_("\"%1\" has a sample rate of %2 instead of %3 as used by this session"), +// _path, header.format.nSamplesPerSec, rate) << endmsg; +// } return 0; } +float +FileSource::sample_rate () const +{ + return header.format.nSamplesPerSec; +} + int FileSource::write_header() { |