|
MXL : Media eXchange Layer
MXL
|
Ingress protocol for RMA writer endpoint for audio samples. More...
#include <ProtocolIngressRMA.hpp>


Public Member Functions | |
| virtual std::optional< TargetInfoBounceBufferInfo > | bounceBufferInfo () const override |
| virtual bool | canReadGrains () const noexcept override |
| This protocol cannot read grains, since it is designed for remote writes of audio samples. | |
| virtual bool | canReadSamples () const noexcept override |
| This protocol can read samples, since it is designed for remote writes of audio samples. | |
| virtual std::optional< Target::ReadResult > | read (Endpoint const &endpoint, Completion const &completion) override |
| virtual std::vector< RemoteRegion > | registerMemory (std::shared_ptr< Domain > domain) override |
| Register local memory regions used in this protocol. | |
| virtual void | reset () override |
| RMASampleIngressProtocol (Region region, DataLayout::Continuous const &dataLayout, std::uint32_t maxSyncBatchSize) | |
| virtual void | start (Endpoint const &endpoint) override |
| Start receiving. | |
| Public Member Functions inherited from mxl::lib::fabrics::ofi::IngressProtocol | |
| virtual | ~IngressProtocol ()=default |
Private Member Functions | |
| LocalRegion | immDataRegion () |
| AudioBounceBuffer | makeAudioBounceBuffer (DataLayout::Continuous const &layout, std::uint32_t maxSyncBatchSize) |
| Helper function to create an AudioBounceBuffer based on the given audio data layout and maximum synchronous batch size. Entries are as big as the maximum number of samples that can be transferred in a single batch, which is determined by maxSyncBatchSize. The number of entries is determined by how many batches are needed to cover the entire history buffer. | |
Private Attributes | |
| AudioBounceBuffer | _bounceBuffer |
| std::optional< Target::ImmediateDataLocation > | _immDataBuffer {} |
| bool | _isMemoryRegistered = false |
| Region | _region |
Ingress protocol for RMA writer endpoint for audio samples.
Definition at line 67 of file ProtocolIngressRMA.hpp.
| mxl::lib::fabrics::ofi::RMASampleIngressProtocol::RMASampleIngressProtocol | ( | Region | region, |
| DataLayout::Continuous const & | dataLayout, | ||
| std::uint32_t | maxSyncBatchSize ) |
Construct an RMASampleIngressProtocol with the given region and data layout.
| region | The memory region containing audio. The audio samples will be first received in one of the bounce buffer entry and will then be copied to this region. |
Definition at line 103 of file ProtocolIngressRMA.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::fabrics::ofi::IngressProtocol.
Definition at line 121 of file ProtocolIngressRMA.cpp.
|
nodiscardoverridevirtualnoexcept |
This protocol cannot read grains, since it is designed for remote writes of audio samples.
Implements mxl::lib::fabrics::ofi::IngressProtocol.
Definition at line 164 of file ProtocolIngressRMA.cpp.
|
nodiscardoverridevirtualnoexcept |
This protocol can read samples, since it is designed for remote writes of audio samples.
Implements mxl::lib::fabrics::ofi::IngressProtocol.
Definition at line 169 of file ProtocolIngressRMA.cpp.
|
private |
Definition at line 177 of file ProtocolIngressRMA.cpp.
|
private |
Helper function to create an AudioBounceBuffer based on the given audio data layout and maximum synchronous batch size. Entries are as big as the maximum number of samples that can be transferred in a single batch, which is determined by maxSyncBatchSize. The number of entries is determined by how many batches are needed to cover the entire history buffer.
Definition at line 187 of file ProtocolIngressRMA.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::fabrics::ofi::IngressProtocol.
Definition at line 137 of file ProtocolIngressRMA.cpp.
|
nodiscardoverridevirtual |
Register local memory regions used in this protocol.
| domain | The domain to register memory with. |
Implements mxl::lib::fabrics::ofi::IngressProtocol.
Definition at line 108 of file ProtocolIngressRMA.cpp.
|
overridevirtual |
Implements mxl::lib::fabrics::ofi::IngressProtocol.
Definition at line 174 of file ProtocolIngressRMA.cpp.
|
overridevirtual |
Start receiving.
Implements mxl::lib::fabrics::ofi::IngressProtocol.
Definition at line 129 of file ProtocolIngressRMA.cpp.
|
private |
Definition at line 118 of file ProtocolIngressRMA.hpp.
|
private |
Definition at line 121 of file ProtocolIngressRMA.hpp.
|
private |
Definition at line 120 of file ProtocolIngressRMA.hpp.
|
private |
Definition at line 119 of file ProtocolIngressRMA.hpp.