MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ release()

void MayaFlux::Buffers::AudioComputeProcessor::release ( const std::shared_ptr< Buffer > & buffer)
private

Definition at line 130 of file AudioComputeProcessor.cpp.

131{
132 if (!m_holds_block.exchange(false, std::memory_order_seq_cst)) {
133 return;
134 }
135
136 unbind_buffer(k_block_name);
137 m_block.reset();
138 m_frames = 0;
140}
std::atomic< bool > m_holds_block
True while m_block is allocated and bound.
void unbind_buffer(const std::string &descriptor_name)
Unbind a buffer from a descriptor.
void on_detach(const std::shared_ptr< Buffer > &buffer) override
Called when this processor is detached from a buffer.

References m_block, m_frames, m_holds_block, MayaFlux::Buffers::ShaderProcessor::on_detach(), and MayaFlux::Buffers::ShaderProcessor::unbind_buffer().

Referenced by on_detach(), and processing_function().

Here is the call graph for this function:
Here is the caller graph for this function: