diff options
author | Carl Hetherington <carl@carlh.net> | 2011-10-24 20:45:29 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-10-24 20:45:29 +0000 |
commit | 75e6adcf03078c24d13ddc7c9c714582a6cf7891 (patch) | |
tree | 7bc831c605e76def3ee045569dfd442c8c7d67c1 /libs/ardour/sndfilesource.cc | |
parent | 8404d7ff94c6bffd150ed11a791a26ae5f1d824d (diff) |
Remove unused read/write data count code.
git-svn-id: svn://localhost/ardour2/branches/3.0@10300 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/sndfilesource.cc')
-rw-r--r-- | libs/ardour/sndfilesource.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index 47571cead6..ee4d976f16 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -327,7 +327,6 @@ SndFileSource::read_unlocked (Sample *dst, framepos_t start, framecnt_t cnt) con if (_info.channels == 1) { framecnt_t ret = sf_read_float (sf, dst, file_cnt); - _read_data_count = ret * sizeof(float); if (ret != file_cnt) { char errbuf[256]; sf_error_str (0, errbuf, sizeof (errbuf) - 1); @@ -353,8 +352,6 @@ SndFileSource::read_unlocked (Sample *dst, framepos_t start, framecnt_t cnt) con ptr += _info.channels; } - _read_data_count = cnt * sizeof(float); - _descriptor->release (); return nread; } @@ -401,8 +398,6 @@ SndFileSource::nondestructive_write_unlocked (Sample *data, framecnt_t cnt) compute_and_write_peaks (data, frame_pos, cnt, false, true); } - _write_data_count = cnt; - return cnt; } |