|
| void | clear(uint64_t position, uint64_t bytes) |
| | zero a just-consumed region, wrapping around - only safe for a single reader's own rx, never a shared/multi-reader position
|
| size_t | decode(volatile uint64_t& rx, uint8_t* dst, uint8_t cable) |
| | the next message of the cable as MIDI 1.0 bytes into dst, which holds 8, their count returned - 0: none
|
| size_t | decode(volatile uint64_t& rx, union msg& msg, uint8_t cable) |
| | USB MIDI msg word to OS MIDI stream format decoder.
|
| uint64_t | empty() const |
| uint64_t | empty(uint64_t position) const |
| size_t | encode(dx::midi::parser& parser, const uint8_t* src, size_t size, uint8_t cable) |
| template<typename ext_t> |
| bool | force_read(const conversion& conversion, volatile uint64_t& position, ext_t* const* dst, uint64_t bulk, uint32_t channels_circular= 1, uint32_t channels_dst= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| | multi channel interleaved bulk read from circular buffer with format conversion if applicable
|
| template<non_pointer ext_t, typename circular_t= ext_t> |
| bool | force_read(ext_t* const* dst, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t channels_dst= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<non_pointer ext_t, typename circular_t= ext_t> |
| bool | force_read(ext_t* dst, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<typename ext_t, typename circular_t= ext_t> |
| bool | force_read(volatile uint64_t& position, ext_t* const* dst, uint64_t bulk, uint32_t channels_circular= 1, uint32_t channels_dst= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<non_pointer ext_t, typename circular_t= ext_t> |
| bool | force_read(volatile uint64_t& position, ext_t* dst, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<typename ext_t> |
| bool | force_write(const conversion& conversion, volatile uint64_t& position, const ext_t* const* src, uint64_t bulk, uint32_t channels_circular= 1, uint32_t channels_src= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| | multi channel interleaved bulk write into circular buffer with format conversion if applicable
|
| template<typename ext_t, typename circular_t= ext_t> |
| bool | force_write(const ext_t* const* src, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t channels_src= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<non_pointer ext_t, typename circular_t= ext_t> |
| bool | force_write(const ext_t* src, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<typename data_t> |
| bool | force_write(data_t* const* const* src, uint64_t clients, uint64_t channels, uint64_t bulk) |
| template<typename circular_t, typename src_t> |
| bool | force_write(src_t* const* const* src, uint32_t clients, uint32_t channels= 1, uint64_t bulk= 1) |
| | multi channel multi client bulk mix into circular buffer with format conversion if applicable src[client][channel][sample]
|
| template<typename ext_t, typename circular_t= ext_t> |
| bool | force_write(volatile uint64_t& position, const ext_t* const* src, uint64_t bulk, uint32_t channels_circular= 1, uint32_t channels_src= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<non_pointer ext_t, typename circular_t= ext_t> |
| bool | force_write(volatile uint64_t& position, const ext_t* src, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| | single channel convenience access templates
|
| void | initialize() |
| void | initialize(uint64_t backingstore_size) |
| uint64_t | loop() const |
| template<typename ext_t> |
| bool | mix_write(const conversion& conversion, volatile uint64_t& position, const ext_t* const* src, uint64_t bulk, uint32_t channels_circular= 1, uint32_t channels_src= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| | multi channel interleaved bulk mix into circular buffer at position with format conversion if applicable
|
| template<typename ext_t, typename circular_t= ext_t> |
| bool | mix_write(volatile uint64_t& position, const ext_t* const* src, uint64_t bulk, uint32_t channels_circular= 1, uint32_t channels_src= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<typename callback_t> |
| bool | move(callback_t& callback, uint64_t packet) |
| template<non_pointer data_t> |
| bool | operator <<(const data_t& src) |
| template<non_pointer data_t> |
| bool | operator >>(data_t& dst) |
| template<typename ext_t> |
| void | put(conversion::loop op, const conversion& conversion, uint64_t position, const ext_t* const* src, uint64_t bulk, uint32_t channels_circular, uint32_t channels_src, uint32_t circular_offset, uint32_t interleaved) |
| | multi channel interleaved bulk placement into circular space at position with wrap-around; channel operation (copy/add) the conversion's
|
| template<non_pointer ext_t, typename circular_t= ext_t> |
| bool | read(ext_t* const* dst, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t channels_dst= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<non_pointer ext_t, typename circular_t= ext_t> |
| bool | read(ext_t* dst, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<non_pointer ext_t, typename circular_t= ext_t> |
| bool | read(volatile uint64_t& position, ext_t* const* dst, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t channels_dst= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<non_pointer ext_t, typename circular_t= ext_t> |
| bool | read(volatile uint64_t& position, ext_t* dst, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| void | reset(int64_t timestamp) |
| | a session start: the indices at the ring's size, the content silence, the time the transport's
|
| template<typename dst_t= uint8_t> |
| dst_t* | simulate_read(uint64_t bulk= 1) |
| template<typename dst_t= uint8_t> |
| dst_t* | simulate_read(volatile uint64_t& position, uint64_t bulk) |
| uint8_t* | simulate_write(uint64_t bulk) |
| | simulate write by advancing write idx and take care of wrap write optimization
|
| void | stamp(uint64_t position, int64_t timestamp, uint64_t bytes= 0, int64_t period= 0) |
| | the transport moved its index to position at timestamp: the ring's time, and a crossed cycle boundary's - placed within the move's period by its share of the move's bytes, at timestamp without them
|
| uint64_t | used() const |
| uint64_t | used(uint64_t position) const |
| template<typename ext_t, typename circular_t= ext_t> |
| bool | write(const ext_t* const* src, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t channels_src= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<non_pointer ext_t, typename circular_t= ext_t> |
| bool | write(const ext_t* src, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| template<typename ext_t, typename circular_t= ext_t> |
| bool | write(volatile uint64_t& position, const ext_t* const* src, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t channels_src= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
| | bulk write into circular buffer with format conversion if applicable
|
| template<non_pointer ext_t, typename circular_t= ext_t> |
| bool | write(volatile uint64_t& position, const ext_t* src, uint64_t bulk= 1, uint32_t channels_circular= 1, uint32_t circular_offset= 0, uint32_t interleaved= 1) |
|
| template<typename position_t> |
| static position_t | advance(volatile position_t& position, position_t value) |
| | lock-free max-publish; returns the position advanced from (>= value when nothing was advanced), so the winning caller alone owns the span [returned, value)
|
| template<typename dst_t> |
| static void | atomic_add(dst_t* dst, int64_t added) |
| | atomic clip-add of one sample: concurrent writers into the same mix target must never plain read-modify-write
|
| static size_t | bytes(const union msg& msg) |
| | the MIDI 1.0 bytes a packet carries by its code index number: 0 for a reserved, a miscellaneous or a cable event
|
| static uint8_t | cin(const uint8_t* bytes, uint8_t size) |
| template<typename position_t> |
| static position_t | exchange(volatile position_t& position, position_t comperator, position_t value) |
| | lock-free monotonic publish: advance position to value unless already beyond
|
| template<typename dst_t, typename src_t> |
| static constexpr conversion::loop | mixed() |
| | a sample that adds mixes; a record moved through a ring (a MIDI message, a log line) has none
|
| static union msg | packet(uint8_t cable, const uint8_t* bytes, uint8_t size) |
| | a parser's piece into the packet that carries it on the cable
|
| template<auto op, typename dst_t, typename src_t> |
| static void | untyped(void* dst, const void* src, uint64_t bulk, uint32_t dst_gap, uint32_t src_gap, uint32_t interleaved) |