13
0

clarify variable name

TODO: use a central shared location for this, and Do not allow
disk_read_chunk_frames/set_disk_write_chunk_frames to exceed it.
This commit is contained in:
Robin Gareus 2015-08-13 04:28:34 +02:00
parent 0cc2e3b370
commit 1df1a883e7
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ protected:
} }
private: private:
static const uint32_t blocksize; static const uint32_t max_blocksize;
boost::shared_ptr<AudioFileSource> _source; boost::shared_ptr<AudioFileSource> _source;
mutable SRC_STATE* _src_state; mutable SRC_STATE* _src_state;

View File

@ -30,7 +30,7 @@
using namespace ARDOUR; using namespace ARDOUR;
using namespace PBD; using namespace PBD;
const uint32_t SrcFileSource::blocksize = 2097152U; /* see AudioDiskstream::_do_refill_with_alloc, max */ const uint32_t SrcFileSource::max_blocksize = 2097152U; /* see AudioDiskstream::_do_refill_with_alloc, max */
SrcFileSource::SrcFileSource (Session& s, boost::shared_ptr<AudioFileSource> src, SrcQuality srcq) SrcFileSource::SrcFileSource (Session& s, boost::shared_ptr<AudioFileSource> src, SrcQuality srcq)
: Source(s, DataType::AUDIO, src->name(), Flag (src->flags() & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy))) : Source(s, DataType::AUDIO, src->name(), Flag (src->flags() & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy)))
@ -67,7 +67,7 @@ SrcFileSource::SrcFileSource (Session& s, boost::shared_ptr<AudioFileSource> src
_ratio = s.nominal_frame_rate() / _source->sample_rate(); _ratio = s.nominal_frame_rate() / _source->sample_rate();
_src_data.src_ratio = _ratio; _src_data.src_ratio = _ratio;
src_buffer_size = ceil((double)blocksize / _ratio) + 2; src_buffer_size = ceil((double)max_blocksize / _ratio) + 2;
_src_buffer = new float[src_buffer_size]; _src_buffer = new float[src_buffer_size];
int err; int err;