-bool
-InternalReturn::configure_io (ChanCount in, ChanCount out)
-{
- IOProcessor::configure_io (in, out);
- allocate_buffers (_session.engine().frames_per_cycle());
- return true;
-}
-
-void
-InternalReturn::set_block_size (nframes_t nframes)
-{
- allocate_buffers (nframes);
-}
-
-void
-InternalReturn::allocate_buffers (nframes_t nframes)
-{
- buffers.ensure_buffers (_configured_input, nframes);
- buffers.set_count (_configured_input);
-}
-
-BufferSet*
-InternalReturn::get_buffers ()
-{
- Glib::Mutex::Lock lm (_session.engine().process_lock());
- /* use of g_atomic here is just for code consistency - its protected by the lock
- for writing.
- */
- g_atomic_int_inc (&user_count);
- return &buffers;
-}
-