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

◆ is_ready()

bool MayaFlux::Kakshya::SoundStreamContainer::is_ready ( ) const
overridevirtual

Check if the stream is ready for reading.

Returns
true if stream can be read from

Useful for coordinating with asynchronous or streaming data sources.

Implements MayaFlux::Kakshya::StreamContainer.

Definition at line 521 of file SoundStreamContainer.cpp.

522{
523 auto state = get_processing_state();
524 return has_data() && (state == ProcessingState::READY || state == ProcessingState::PROCESSED);
525}
bool has_data() const override
Check if the container currently holds any data.
ProcessingState get_processing_state() const override
Get the current processing state of the container.
@ READY
Container has data loaded and is ready for processing.
@ PROCESSED
Container has completed processing and results are available.

References get_processing_state(), has_data(), MayaFlux::Kakshya::PROCESSED, and MayaFlux::Kakshya::READY.

+ Here is the call graph for this function: