Towards a new disk-reader ringbuffer
authorRobin Gareus <robin@gareus.org>
Tue, 5 Feb 2019 19:51:33 +0000 (20:51 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 5 Feb 2019 22:29:31 +0000 (23:29 +0100)
commit007c4ffdc0bb8a6de967e499885284b2d3b3d0c2
treece6815467083ef1a6e672700aa6079dc370432ab
parent3cc3074dc7e964275db7184cc0ff4213fb84d272
Towards a new disk-reader ringbuffer

This is mainly a NO-OP, introducing a new PlaybackBuffer type
and preparing for its use.

At this point in time, the buffer is just a power-of-two sized
ringbuffer and the disk-reader's read-logic is still unchanged.

Eventually the read and write sample position that are currently
private to the disk-reader can be migrated to be owned by the buffer.
Also Diskreader::read() positions can be matched to read-position ..
+/- buffer reservation and de-click can read w/o committing the read.
libs/ardour/ardour/disk_io.h
libs/ardour/ardour/disk_reader.h
libs/ardour/disk_io.cc
libs/ardour/disk_reader.cc
libs/pbd/pbd/playback_buffer.h [new file with mode: 0644]