Skip to content

Conversation

@igorski
Copy link
Owner

@igorski igorski commented Jan 9, 2024

To debug #179

@igorski igorski changed the title Extend example Activity with real life runtime event addition / removal events Allow delayed execution of deallocation operations by waiting engine idle phase Jan 13, 2024
@igorski igorski self-assigned this Jan 13, 2024
virtual ~BaseAudioEvent();

void dispose(); // invoke when removing the Event from the engine
void dispose(); // invoke when removing the Event from the engine, should be done when ENGINE_IDLE is broadcast!
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or when Sequencer isn't running

public static void handleNotification( int aNotificationId ) {
if ( INSTANCE != null && INSTANCE._observer != null ) INSTANCE._observer.handleNotification( aNotificationId );
if ( INSTANCE != null ) {
if ( ENGINE_IDLE_NOTIFICATION == aNotificationId && !INSTANCE._idleCallbacks.isEmpty() ) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty check us unnecessary as we can iterate safely over an empty list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants