41 std::uint8_t
const*
samples()
const noexcept;
46 std::uint8_t
const*
data()
const noexcept;
51 std::size_t
size()
const noexcept;
54 std::vector<std::uint8_t>
_data;
71 std::vector<Region>
getRegions()
const noexcept;
std::vector< std::uint8_t > _data
std::uint8_t const * samples() const noexcept
Return a view to the samples data of the bounce buffer entry.
std::size_t size() const noexcept
The total size of the bounce buffer entry in bytes.
AudioEntryHeader const * header() const noexcept
Return a view on the header of the bounce buffer entry.
AudioBounceBufferEntry(std::uint32_t size)
Construct an AudioBounceBufferEntry with the given size in bytes. The size should be large enough to ...
std::uint8_t const * data() const noexcept
Return a view to the beginning of the bounce buffer entry data.
AudioEntryHeader const & unpack(std::size_t entryIndex, Region const &outRegion) const
Copy the samples from the bounce buffer entry to the provided output region, and return the header of...
DataLayout::Continuous _layout
std::vector< Region > getRegions() const noexcept
Return the regions corresponding to the bounce buffer entries. Each region corresponds to one bounce ...
static void getMutableMultiBufferSlices(std::uint64_t index, std::size_t count, std::size_t bufferLength, std::size_t sampleWordSize, std::size_t channelCount, std::uint8_t *baseBufferPtr, mxlMutableWrappedMultiBufferSlice &slice) noexcept
std::size_t entryCount() const noexcept
Return the number of entries in the bounce buffer.
AudioBounceBuffer(std::size_t entryCount, std::size_t entrySize, DataLayout::Continuous layout)
std::vector< AudioBounceBufferEntry > _entries
std::size_t entrySize() const noexcept
Return the size of a bounce buffer entry in bytes.
Represent a memory region (unregistered).
struct mxlMutableWrappedMultiBufferSlice_t mxlMutableWrappedMultiBufferSlice
std::size_t count(uuids::uuid id) const noexcept
Returns the number of writers registered for flow id 'id'.
Continuous layout variant of DataLayout.