diff options
author | Robin Gareus <robin@gareus.org> | 2015-08-13 03:09:51 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-08-13 03:23:38 +0200 |
commit | 0cc2e3b3702beffd7349f58c3930c96f34c76114 (patch) | |
tree | 5850825e504dd36f0339e7fa1bcc1cc5f51d7cc0 /libs/ardour/ardour/resampled_source.h | |
parent | 2083cd8a4ecbad69e76d3b6af2b0947c538c45ee (diff) |
fix import resampling (don’t cut end short)
Diffstat (limited to 'libs/ardour/ardour/resampled_source.h')
-rw-r--r-- | libs/ardour/ardour/resampled_source.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libs/ardour/ardour/resampled_source.h b/libs/ardour/ardour/resampled_source.h index bb088f36fb..0c90581a29 100644 --- a/libs/ardour/ardour/resampled_source.h +++ b/libs/ardour/ardour/resampled_source.h @@ -36,7 +36,7 @@ class LIBARDOUR_API ResampledImportableSource : public ImportableSource ~ResampledImportableSource (); framecnt_t read (Sample* buffer, framecnt_t nframes); - float ratio() const { return src_data.src_ratio; } + float ratio() const { return _src_data.src_ratio; } uint32_t channels() const { return source->channels(); } framecnt_t length() const { return source->length(); } framecnt_t samplerate() const { return source->samplerate(); } @@ -52,10 +52,11 @@ class LIBARDOUR_API ResampledImportableSource : public ImportableSource private: boost::shared_ptr<ImportableSource> source; - float* input; - int _src_type; - SRC_STATE* src_state; - SRC_DATA src_data; + float* _input; + int _src_type; + SRC_STATE* _src_state; + SRC_DATA _src_data; + bool _end_of_input; }; } |