diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-02 19:25:53 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-02 19:25:53 +0000 |
commit | cdfbec0eb1289c17159f3263c1e6256afdee67dc (patch) | |
tree | a33a830c6ed389ee38407b36c3c9a92b0b2c143a /libs/ardour/audio_playlist.cc | |
parent | bb797943ddaae0a904b140fec58f6367fdf87d07 (diff) |
A few type fixes.
git-svn-id: svn://localhost/ardour2/branches/3.0@8154 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_playlist.cc')
-rw-r--r-- | libs/ardour/audio_playlist.cc | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/libs/ardour/audio_playlist.cc b/libs/ardour/audio_playlist.cc index 9c3bce4196..1fa9c5adc4 100644 --- a/libs/ardour/audio_playlist.cc +++ b/libs/ardour/audio_playlist.cc @@ -184,14 +184,11 @@ struct RegionSortByLayer { } }; -ARDOUR::nframes_t -AudioPlaylist::read (Sample *buf, Sample *mixdown_buffer, float *gain_buffer, nframes_t start, - nframes_t cnt, unsigned chan_n) +ARDOUR::framecnt_t +AudioPlaylist::read (Sample *buf, Sample *mixdown_buffer, float *gain_buffer, framepos_t start, + framecnt_t cnt, unsigned chan_n) { - nframes_t ret = cnt; - nframes_t end; - nframes_t read_frames; - nframes_t skip_frames; + framecnt_t ret = cnt; /* optimizing this memset() away involves a lot of conditionals that may well cause more of a hit due to cache misses @@ -214,9 +211,9 @@ AudioPlaylist::read (Sample *buf, Sample *mixdown_buffer, float *gain_buffer, nf Glib::RecMutex::Lock rm (region_lock); - end = start + cnt - 1; - read_frames = 0; - skip_frames = 0; + framepos_t const end = start + cnt - 1; + framecnt_t read_frames = 0; + framecnt_t skip_frames = 0; _read_data_count = 0; _read_data_count = 0; |