diff options
Diffstat (limited to 'libs/ardour/ardour/disk_io.h')
-rw-r--r-- | libs/ardour/ardour/disk_io.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/libs/ardour/ardour/disk_io.h b/libs/ardour/ardour/disk_io.h index 1c60a19fc2..43898551a8 100644 --- a/libs/ardour/ardour/disk_io.h +++ b/libs/ardour/ardour/disk_io.h @@ -151,10 +151,19 @@ protected: ChannelInfo (samplecnt_t buffer_size); virtual ~ChannelInfo (); - /** A random-access ringbuffer for data to be played back. - * written to in the butler thread, read from in the process thread. + /** A pair of random-access ringbuffers for data to be played back. + * written to in the butler thread, read from in the process + * thread. + * + * */ - PBD::PlaybackBuffer<Sample>* rbuf; + PBD::PlaybackBuffer<Sample>* _rbuf[2]; + /* This returns a pointer to the correct PlaybackBuffer to use + for reading from within process context. + */ + PBD::PlaybackBuffer<Sample>* rbuf(); + gint current_rbuf; + gint read_switch_rbuf; /** A ringbuffer for data to be recorded back, written to in the * process thread, read from in the butler thread. |