rbuf allocation/use is protected by process_lock
static void reset_loop_declick (Location*, samplecnt_t sample_rate);
static void alloc_loop_declick (samplecnt_t sample_rate);
- Glib::Threads::Mutex rbuf_lock;
-
protected:
friend class Track;
friend class MidiTrack;
void
DiskReader::ReaderChannelInfo::resize (samplecnt_t bufsize)
{
- /* caller must hold rbuf lock */
-
delete rbuf; rbuf = 0;
rbuf = new PlaybackBuffer<Sample> (bufsize);
void
DiskReader::adjust_buffering ()
{
- Glib::Threads::Mutex::Lock lm (rbuf_lock);
boost::shared_ptr<ChannelList> c = channels.reader();
for (ChannelList::iterator chan = c->begin(); chan != c->end(); ++chan) {