Refine search
@Callback private static void cbUser(@Pointer long clientData, MusicSequence sequence, MusicTrack track, double eventTime, MusicEventUserData eventData, double startSliceBeat, double endSliceBeat) { synchronized (userCallbacks) { userCallbacks.get(clientData).invoke(sequence, track, eventTime, eventData, startSliceBeat, endSliceBeat); } }
@Callback private static void cbParseProperty(@Pointer long clientData, AudioFileStream audioFileStream, AudioFileStreamProperty property, AudioFileStreamMutablePropertyFlags flags) { synchronized (parseListeners) { parseListeners.get(clientData).onPropertyParsed(audioFileStream, property, flags); } } @Callback
@Callback private static void cbNotification(CFNotificationCenter center, CFType observer, String name, CFType object, NSDictionary<NSString, ?> userInfo) { NotificationCallback callback = null; synchronized (callbacks) { long id = getCallbackIdForNotification(observer, name, object); callback = callbacks.get(id); } // We don't store observer callbacks for every possible combination of observer, name and object. // Therefore a callback for the current combination is not registered and will be null. if (callback != null) { callback.invoke(center, observer, name, object, userInfo); } }