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

◆ has_data_for_cycle()

virtual bool MayaFlux::Buffers::Buffer::has_data_for_cycle ( ) const
pure virtual

Checks if the buffer has data for the current processing cycle.

Returns
True if the buffer has data available for processing, false otherwise

This method is particularly relevant for dynamic buffer management systems like SignalSourceContainers, where buffers may not always contain valid data. The interpretation and behavior may vary based on the buffer type:

  • Audio buffers typically return true unless specifically marked otherwise
  • Video buffers may return false if no frame is available
  • Texture buffers may return false if textures are not loaded

Implemented in MayaFlux::Buffers::AudioBuffer, and MayaFlux::Buffers::VKBuffer.