diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-05 15:34:51 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-07 10:30:38 -0700 |
commit | 1008ac20ffcf4a88420c5c5a9a0b2396cca04f20 (patch) | |
tree | 213f108dca423b4618fcd20f0428c355ad5e1252 /libs/ardour/ardour/disk_io.h | |
parent | 8d05f6d4b788d2f100eb309965d398adc4198045 (diff) |
a few parameter changes, and flesh out code to switch rbufs in DiskReader
Diffstat (limited to 'libs/ardour/ardour/disk_io.h')
-rw-r--r-- | libs/ardour/ardour/disk_io.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libs/ardour/ardour/disk_io.h b/libs/ardour/ardour/disk_io.h index 43898551a8..c040ba8519 100644 --- a/libs/ardour/ardour/disk_io.h +++ b/libs/ardour/ardour/disk_io.h @@ -155,15 +155,21 @@ protected: * written to in the butler thread, read from in the process * thread. * - * + * */ PBD::PlaybackBuffer<Sample>* _rbuf[2]; + gint _process_rbuf; + gint _switch_rbuf; /* 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; + PBD::PlaybackBuffer<Sample>* process_rbuf (); + /* This returns a pointer to the correct PlaybackBuffer to use + for writing to within butler context. + */ + PBD::PlaybackBuffer<Sample>* other_rbuf(); + void queue_switch_rbuf (); + void maybe_switch_rbuf (); /** A ringbuffer for data to be recorded back, written to in the * process thread, read from in the butler thread. |