![]() |
Mema
Memory Matrix — multi-channel audio matrix monitor and router
|
Carries a post-matrix output audio buffer streamed continuously from Mema to subscribed clients. More...
#include <MemaMessages.h>
Inheritance diagram for Mema::AudioOutputBufferMessage:
Collaboration diagram for Mema::AudioOutputBufferMessage:Public Member Functions | |
| AudioOutputBufferMessage ()=default | |
| AudioOutputBufferMessage (juce::AudioBuffer< float > &buffer) | |
| AudioOutputBufferMessage (const juce::MemoryBlock &blob) | |
| ~AudioOutputBufferMessage ()=default | |
Public Member Functions inherited from Mema::AudioBufferMessage | |
| AudioBufferMessage ()=default | |
| AudioBufferMessage (juce::AudioBuffer< float > &buffer) | |
| ~AudioBufferMessage ()=default | |
| const juce::AudioBuffer< float > & | getAudioBuffer () const |
| Returns a const reference to the decoded audio buffer. | |
| const FlowDirection | getFlowDirection () const |
| Returns the flow direction encoded in the message. | |
Public Member Functions inherited from Mema::SerializableMessage | |
| SerializableMessage ()=default | |
| virtual | ~SerializableMessage ()=default |
| void | setId (int id) |
| Tags the message with a connection-id used for echo-suppression on the server. | |
| int | getId () const |
| Returns the connection-id tag, or -1 if not set. | |
| bool | hasUserId () const |
| Returns true when a non-default connection-id has been assigned. | |
| const SerializableMessageType | getType () const |
| Returns the concrete message type discriminator. | |
| juce::MemoryBlock | getSerializedMessage () const |
Serialises the message to a MemoryBlock ready to send over the socket. | |
Additional Inherited Members | |
Public Types inherited from Mema::AudioBufferMessage | |
| enum | FlowDirection { Invalid , Input , Output } |
| Identifies whether the buffer contains pre-matrix input or post-matrix output samples. More... | |
Public Types inherited from Mema::SerializableMessage | |
| enum | SerializableMessageType { None = 0 , EnvironmentParameters , AnalyzerParameters , ReinitIOCount , AudioInputBuffer , AudioOutputBuffer , DataTrafficTypeSelection , ControlParameters , PluginParameterInfos , PluginParameterValue } |
Static Public Member Functions inherited from Mema::SerializableMessage | |
| static SerializableMessage * | initFromMemoryBlock (const juce::MemoryBlock &blob) |
Deserialises a raw TCP frame into the correct concrete SerializableMessage subclass. | |
| static void | freeMessageData (SerializableMessage *message) |
Type-correctly destroys a SerializableMessage* returned by initFromMemoryBlock(). | |
Protected Member Functions inherited from Mema::AudioBufferMessage | |
| juce::MemoryBlock | createSerializedContent (size_t &contentSize) const |
| Subclass hook — produces the type-specific payload bytes (everything after the type discriminator). | |
Protected Member Functions inherited from Mema::SerializableMessage | |
| std::uint32_t | ReadUint32 (const char *buffer) |
Reads a big-endian uint32 from buffer. | |
| std::uint16_t | ReadUint16 (const char *buffer) |
Reads a big-endian uint16 from buffer. | |
Protected Attributes inherited from Mema::AudioBufferMessage | |
| FlowDirection | m_direction { FlowDirection::Invalid } |
| Input or output flow direction. | |
| juce::AudioBuffer< float > | m_buffer |
| Decoded float audio buffer. | |
Protected Attributes inherited from Mema::SerializableMessage | |
| SerializableMessageType | m_type = SerializableMessageType::None |
| Type discriminator stored in the first 4 bytes of every serialised frame. | |
| int | m_userId = -1 |
| Optional connection-id tag for echo-suppression (-1 = not set). | |
Carries a post-matrix output audio buffer streamed continuously from Mema to subscribed clients.
Instantiated by MemaProcessor in audioDeviceIOCallbackWithContext() after the signal has passed through all mutes, the crosspoint gain matrix, and the optional plugin. Mema.Mo's MemaMoComponent feeds these buffers directly into its local ProcessorDataAnalyzer to drive metering and spectrum visualisation without requiring a second audio device on the monitoring machine.
Definition at line 502 of file MemaMessages.h.
|
default |
|
inline |
Definition at line 506 of file MemaMessages.h.
References Mema::SerializableMessage::AudioOutputBuffer, Mema::AudioBufferMessage::m_direction, Mema::SerializableMessage::m_type, and Mema::AudioBufferMessage::Output.
|
inline |
Definition at line 507 of file MemaMessages.h.
References Mema::SerializableMessage::AudioOutputBuffer, Mema::AudioBufferMessage::m_buffer, Mema::AudioBufferMessage::m_direction, Mema::SerializableMessage::m_type, and Mema::AudioBufferMessage::Output.
|
default |