Module Expr Str Assign NameStore Str Import alias identifier Import alias identifier ImportFrom alias identifier Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad If CompareEq Call AttributeLoad NameLoad attr Str body If CompareEq SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Str Assign NameStore Num Assign NameStore Num ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Expr Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Call NameLoad NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call NameLoad NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body TryExcept body Expr Call NameLoad handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body TryExcept body Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareIn NameLoad TupleLoad AttributeLoad NameLoad attr Num body Return NameLoad Expr Call NameLoad NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore NameLoad orelse If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore Str Assign NameStore Num If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr If NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad If NameLoad body Assign NameStore Num While NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AugAssignAdd NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad NameLoad body Assign NameStore IfExp Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body Assign NameStore IfExp Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad orelse Assert NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return UnaryOpNot Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults NameLoad keyword Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults NameLoad keyword Str FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad BinOpBitAnd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults NameLoad keyword Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults NameLoad keyword Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Return Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore NameLoad orelse Assert NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Assign NameStore TupleLoad NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Str orelse If AttributeLoad NameLoad attr body Assign NameStore Str If AttributeLoad NameLoad attr body AugAssignAdd NameStore Str orelse If AttributeLoad NameLoad attr body AugAssignAdd NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias identifier Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assert UnaryOpNot NameLoad NameLoad Expr Yield TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass ExceptHandler type NameLoad body Pass Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad IfExp NameLoad NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str While AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass ExceptHandler type NameLoad body Pass Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return TupleLoad Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return TupleLoad Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr GeneratorExp NameLoad comprehension NameStore Call NameLoad NameLoad BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Str Return Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad BinOpBitAnd AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd Str SubscriptLoad Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Str Index AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str If BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Str Str Str Str Str Str Str Str If BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Str Str If BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Str If BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Str If BinOpBitAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad Str Return Call NameLoad GeneratorExp TupleLoad NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num BinOpAdd NameLoad Num BinOpAdd NameLoad Num BinOpAdd NameLoad Num Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list
N/A N/A JACK Client for Python.

http://jackclient-python.rtfd.org/

 N/A __version__ 0.4.0 N/A errno _errno N/A platform _platform cffi FFI _FFI N/A _ffi N/A _FFI N/A N/A N/A _ffi cdef 

/* types.h */

typedef uint64_t jack_uuid_t;
typedef uint32_t jack_nframes_t;
typedef uint64_t jack_time_t;
typedef struct _jack_port jack_port_t;
typedef struct _jack_client jack_client_t;
typedef uint32_t jack_port_id_t;
typedef uint32_t jack_port_type_id_t;
enum JackOptions {
    JackNullOption = 0x00,
    JackNoStartServer = 0x01,
    JackUseExactName = 0x02,
    JackServerName = 0x04,
    JackLoadName = 0x08,
    JackLoadInit = 0x10,
    JackSessionID = 0x20
};
typedef enum JackOptions jack_options_t;
enum JackStatus {
    JackFailure = 0x01,
    JackInvalidOption = 0x02,
    JackNameNotUnique = 0x04,
    JackServerStarted = 0x08,
    JackServerFailed = 0x10,
    JackServerError = 0x20,
    JackNoSuchClient = 0x40,
    JackLoadFailure = 0x80,
    JackInitFailure = 0x100,
    JackShmFailure = 0x200,
    JackVersionError = 0x400,
    JackBackendError = 0x800,
    JackClientZombie = 0x1000
};
typedef enum JackStatus jack_status_t;
typedef int (*JackProcessCallback)(jack_nframes_t nframes, void* arg);
typedef int (*JackGraphOrderCallback)(void* arg);
typedef int (*JackXRunCallback)(void* arg);
typedef int (*JackBufferSizeCallback)(jack_nframes_t nframes, void* arg);
typedef int (*JackSampleRateCallback)(jack_nframes_t nframes, void* arg);
typedef void (*JackPortRegistrationCallback)(jack_port_id_t port, int /* register */, void* arg);
typedef void (*JackClientRegistrationCallback)(const char* name, int /* register */, void* arg);
typedef void (*JackPortConnectCallback)(jack_port_id_t a, jack_port_id_t b, int connect, void* arg);
typedef int (*JackPortRenameCallback)(jack_port_id_t port, const char* old_name, const char* new_name, void* arg);
typedef void (*JackFreewheelCallback)(int starting, void* arg);
/* not implemented: JackShutdownCallback (only JackInfoShutdownCallback is used) */
typedef void (*JackInfoShutdownCallback)(jack_status_t code, const char* reason, void* arg);
/* JACK_DEFAULT_AUDIO_TYPE: see _AUDIO */
/* JACK_DEFAULT_MIDI_TYPE: see _MIDI */
/* not implemented: jack_default_audio_sample_t (hard-coded as float) */
enum JackPortFlags {
    JackPortIsInput = 0x1,
    JackPortIsOutput = 0x2,
    JackPortIsPhysical = 0x4,
    JackPortCanMonitor = 0x8,
    JackPortIsTerminal = 0x10,
};
typedef enum {
    JackTransportStopped = 0,
    JackTransportRolling = 1,
    JackTransportLooping = 2,  /* deprecated */
    JackTransportStarting = 3,
    JackTransportNetStarting = 4,
} jack_transport_state_t;
typedef uint64_t jack_unique_t;
typedef enum {
    JackPositionBBT = 0x10,
    JackPositionTimecode = 0x20,
    JackBBTFrameOffset = 0x40,
    JackAudioVideoRatio = 0x80,
    JackVideoFrameOffset = 0x100,
} jack_position_bits_t;
/* _jack_position: see below in "packed" section */
typedef struct _jack_position jack_position_t;
typedef void (*JackTimebaseCallback)(jack_transport_state_t state, jack_nframes_t nframes, jack_position_t *pos, int new_pos, void *arg);
/* deprecated: jack_transport_bits_t */
/* deprecated: jack_transport_info_t */

/* jack.h */

void jack_get_version(int* major_ptr, int* minor_ptr, int* micro_ptr, int* proto_ptr);
const char* jack_get_version_string();
jack_client_t* jack_client_open(const char* client_name, jack_options_t options, jack_status_t* status, ...);
/* deprecated: jack_client_new */
int jack_client_close(jack_client_t* client);
int jack_client_name_size(void);
char* jack_get_client_name(jack_client_t* client);
char* jack_get_uuid_for_client_name(jack_client_t* client, const char* client_name);
char* jack_get_client_name_by_uuid(jack_client_t* client, const char* client_uuid);
/* deprecated: jack_internal_client_new */
/* deprecated: jack_internal_client_close */
int jack_activate(jack_client_t* client);
int jack_deactivate(jack_client_t* client);
int jack_get_client_pid(const char* name);
/* not implemented: jack_client_thread_id */
int jack_is_realtime(jack_client_t* client);
/* deprecated: jack_thread_wait */
/* not implemented: jack_cycle_wait */
/* not implemented: jack_cycle_signal */
/* not implemented: jack_set_process_thread */
/* not implemented: jack_set_thread_init_callback */
/* not implemented (jack_on_info_shutdown is used): jack_on_shutdown */
void jack_on_info_shutdown(jack_client_t* client, JackInfoShutdownCallback shutdown_callback, void* arg);
int jack_set_process_callback(jack_client_t* client, JackProcessCallback process_callback, void* arg);
int jack_set_freewheel_callback(jack_client_t* client, JackFreewheelCallback freewheel_callback, void* arg);
int jack_set_buffer_size_callback(jack_client_t* client, JackBufferSizeCallback bufsize_callback, void* arg);
int jack_set_sample_rate_callback(jack_client_t* client, JackSampleRateCallback srate_callback, void* arg);
int jack_set_client_registration_callback(jack_client_t* client, JackClientRegistrationCallback registration_callback, void* arg);
int jack_set_port_registration_callback(jack_client_t* client, JackPortRegistrationCallback registration_callback, void* arg);
int jack_set_port_connect_callback(jack_client_t* client, JackPortConnectCallback connect_callback, void* arg);
int jack_set_port_rename_callback(jack_client_t* client, JackPortRenameCallback rename_callback, void* arg);
int jack_set_graph_order_callback(jack_client_t* client, JackGraphOrderCallback graph_callback, void*);
int jack_set_xrun_callback(jack_client_t* client, JackXRunCallback xrun_callback, void* arg);
/* TODO: jack_set_latency_callback */
int jack_set_freewheel(jack_client_t* client, int onoff);
int jack_set_buffer_size(jack_client_t* client, jack_nframes_t nframes);
jack_nframes_t jack_get_sample_rate(jack_client_t*);
jack_nframes_t jack_get_buffer_size(jack_client_t*);
/* deprecated: jack_engine_takeover_timebase */
float jack_cpu_load(jack_client_t* client);
jack_port_t* jack_port_register(jack_client_t* client, const char* port_name, const char* port_type, unsigned long flags, unsigned long buffer_size);
int jack_port_unregister(jack_client_t* client, jack_port_t* port);
void* jack_port_get_buffer(jack_port_t* port, jack_nframes_t);
jack_uuid_t jack_port_uuid(const jack_port_t* port);
const char* jack_port_name(const jack_port_t* port);
const char* jack_port_short_name(const jack_port_t* port);
int jack_port_flags(const jack_port_t* port);
const char* jack_port_type(const jack_port_t* port);
/* not implemented: jack_port_type_id */
int jack_port_is_mine(const jack_client_t* client, const jack_port_t* port);
int jack_port_connected(const jack_port_t* port);
int jack_port_connected_to(const jack_port_t* port, const char* port_name);
const char** jack_port_get_connections(const jack_port_t* port);
const char** jack_port_get_all_connections(const jack_client_t* client, const jack_port_t* port);
/* deprecated: jack_port_tie */
/* deprecated: jack_port_untie */
int jack_port_set_name(jack_port_t* port, const char* port_name);
/* TODO: jack_port_set_alias */
/* TODO: jack_port_unset_alias */
/* TODO: jack_port_get_aliases */
int jack_port_request_monitor(jack_port_t *port, int onoff);
/* not implemented (use jack_port_request_monitor): jack_port_request_monitor_by_name */
/* TODO: jack_port_ensure_monitor */
/* TODO: jack_port_monitoring_input */
int jack_connect(jack_client_t* client, const char* source_port, const char* destination_port);
int jack_disconnect(jack_client_t* client, const char* source_port, const char* destination_port);
int jack_port_disconnect(jack_client_t* client, jack_port_t* port);
int jack_port_name_size(void);
/* not implemented: jack_port_type_size */
/* not implemented: jack_port_type_get_buffer_size */
/* TODO: jack_port_set_latency */
/* TODO: jack_port_get_latency_range */
/* TODO: jack_port_set_latency_range */
/* TODO: jack_recompute_total_latencies */
/* TODO: jack_port_get_latency */
/* TODO: jack_port_get_total_latency */
/* TODO: jack_recompute_total_latency */
const char** jack_get_ports(jack_client_t* client, const char* port_name_pattern, const char* type_name_pattern, unsigned long flags);
jack_port_t* jack_port_by_name(jack_client_t* client, const char* port_name);
jack_port_t* jack_port_by_id(jack_client_t* client, jack_port_id_t port_id);
jack_nframes_t jack_frames_since_cycle_start(const jack_client_t*);
jack_nframes_t jack_frame_time(const jack_client_t*);
jack_nframes_t jack_last_frame_time(const jack_client_t* client);
/* TODO: jack_get_cycle_times */
/* TODO: jack_frames_to_time */
/* TODO: jack_time_to_frames */
/* TODO: jack_get_time */
void jack_set_error_function(void (*func)(const char*));
void jack_set_info_function(void (*func)(const char*));
void jack_free(void* ptr);

/* ringbuffer.h */

typedef struct {
    char* buf;
    size_t len;
} jack_ringbuffer_data_t;
typedef struct {
    char* buf;
    volatile size_t write_ptr;
    volatile size_t read_ptr;
    size_t size;
    size_t size_mask;
    int mlocked;
} jack_ringbuffer_t;
jack_ringbuffer_t* jack_ringbuffer_create(size_t sz);
void jack_ringbuffer_free(jack_ringbuffer_t* rb);
void jack_ringbuffer_get_read_vector(const jack_ringbuffer_t* rb, jack_ringbuffer_data_t* vec);
void jack_ringbuffer_get_write_vector(const jack_ringbuffer_t* rb, jack_ringbuffer_data_t* vec);
size_t jack_ringbuffer_read(jack_ringbuffer_t* rb, char* dest, size_t cnt);
size_t jack_ringbuffer_peek(jack_ringbuffer_t* rb, char* dest, size_t cnt);
void jack_ringbuffer_read_advance(jack_ringbuffer_t* rb, size_t cnt);
size_t jack_ringbuffer_read_space(const jack_ringbuffer_t* rb);
int jack_ringbuffer_mlock(jack_ringbuffer_t* rb);
void jack_ringbuffer_reset(jack_ringbuffer_t* rb);
void jack_ringbuffer_reset_size (jack_ringbuffer_t* rb, size_t sz);
/* Note: "char*" was changed to "unsigned char*" to support iterables of int */
size_t jack_ringbuffer_write(jack_ringbuffer_t* rb, const unsigned char* src, size_t cnt);
void jack_ringbuffer_write_advance(jack_ringbuffer_t* rb, size_t cnt);
size_t jack_ringbuffer_write_space(const jack_ringbuffer_t* rb);

/* transport.h */

/* TODO: jack_release_timebase */
/* TODO: jack_set_sync_callback */
/* TODO: jack_set_sync_timeout */
int jack_set_timebase_callback(jack_client_t* client, int conditional, JackTimebaseCallback timebase_callback, void* arg);
int  jack_transport_locate(jack_client_t* client, jack_nframes_t frame);
jack_transport_state_t jack_transport_query(const jack_client_t* client, jack_position_t* pos);
jack_nframes_t jack_get_current_transport_frame(const jack_client_t* client);
/* TODO: jack_transport_reposition */
void jack_transport_start(jack_client_t* client);
void jack_transport_stop(jack_client_t* client);
/* deprecated: jack_get_transport_info */
/* deprecated: jack_set_transport_info */

/* statistics.h */

float jack_get_xrun_delayed_usecs(jack_client_t* client);

/* midiport.h */

typedef unsigned char jack_midi_data_t;
typedef struct _jack_midi_event {
    jack_nframes_t time;
    size_t size;
    jack_midi_data_t* buffer;
} jack_midi_event_t;
uint32_t jack_midi_get_event_count(void* port_buffer);
int jack_midi_event_get(jack_midi_event_t* event, void* port_buffer, uint32_t event_index);
void jack_midi_clear_buffer(void* port_buffer);
/* not implemented: jack_midi_reset_buffer */
size_t jack_midi_max_event_size(void* port_buffer);
jack_midi_data_t* jack_midi_event_reserve(void* port_buffer, jack_nframes_t time, size_t data_size);
int jack_midi_event_write(void* port_buffer, jack_nframes_t time, const jack_midi_data_t* data, size_t data_size);
uint32_t jack_midi_get_lost_event_count(void* port_buffer);
 N/A N/A N/A _ffi cdef 
struct _jack_position {
    jack_unique_t unique_1;
    jack_time_t usecs;
    jack_nframes_t frame_rate;
    jack_nframes_t frame;
    jack_position_bits_t valid;
    int32_t bar;
    int32_t beat;
    int32_t tick;
    double bar_start_tick;
    float beats_per_bar;
    float beat_type;
    double ticks_per_beat;
    double beats_per_minute;
    double frame_time;
    double next_time;
    jack_nframes_t bbt_offset;
    float audio_frames_per_video_frame;
    jack_nframes_t video_offset;
    int32_t padding[7];
    jack_unique_t unique_2;
};
 packed True N/A N/A N/A N/A _platform system Windows N/A N/A N/A N/A N/A N/A _platform architecture N/A 0 64bit N/A N/A _lib N/A N/A _ffi dlopen libjack64 N/A N/A _lib N/A N/A _ffi dlopen libjack N/A N/A _lib N/A N/A _ffi dlopen jack N/A _AUDIO 32 bit float mono audio N/A _MIDI 8 bit raw midi N/A STOPPED N/A _lib JackTransportStopped N/A Transport halted. N/A ROLLING N/A _lib JackTransportRolling N/A Transport playing. N/A STARTING N/A _lib JackTransportStarting N/A Waiting for sync ready. N/A NETSTARTING N/A _lib JackTransportNetStarting N/A Waiting for sync ready on the network. N/A _SUCCESS 0 N/A _FAILURE 1 Client N/A object N/A N/A A client that can connect to the JACK audio server. __init__ N/A N/A self name use_exact_name no_start_server servername session_id N/A False False None None N/A N/A Create a new JACK client.

        A client object is a *context manager*, i.e. it can be used in a
        *with statement* to automatically call :meth:`activate` in the
        beginning of the statement and :meth:`deactivate` and
        :meth:`close` on exit.

        Parameters
        ----------
        name : str
            The desired client name of at most :func:`client_name_size`
            characters.  The name scope is local to each server.
            Unless forbidden by the `use_exact_name` option, the server
            will modify this name to create a unique variant, if needed.

        Other Parameters
        ----------------
        use_exact_name : bool
            Whether an error should be raised if `name` is not unique.
            See :attr:`Status.name_not_unique`.
        no_start_server : bool
            Do not automatically start the JACK server when it is not
            already running.  This option is always selected if
            ``JACK_NO_START_SERVER`` is defined in the calling process
            environment.
        servername : str
            Selects from among several possible concurrent server
            instances.
            Server names are unique to each user.  If unspecified, use
            ``"default"`` unless ``JACK_DEFAULT_SERVER`` is defined in
            the process environment.
        session_id : str
            Pass a SessionID Token. This allows the sessionmanager to
            identify the client again.

         N/A status N/A N/A _ffi new jack_status_t* N/A options N/A _lib JackNullOption N/A optargs N/A N/A use_exact_name N/A N/A options N/A _lib JackUseExactName N/A no_start_server N/A N/A options N/A _lib JackNoStartServer N/A servername N/A N/A options N/A _lib JackServerName N/A N/A N/A optargs append N/A N/A _ffi new char[] N/A N/A servername encode N/A session_id N/A N/A options N/A _lib JackSessionID N/A N/A N/A optargs append N/A N/A _ffi new char[] N/A N/A session_id encode N/A N/A self _ptr N/A N/A _lib jack_client_open N/A N/A name encode options status optargs N/A N/A self _status N/A Status N/A status N/A 0 N/A N/A N/A self _ptr N/A N/A N/A JackError N/A str N/A self status N/A N/A self _inports N/A Ports self _AUDIO N/A _lib JackPortIsInput N/A N/A self _outports N/A Ports self _AUDIO N/A _lib JackPortIsOutput N/A N/A self _midi_inports N/A Ports self _MIDI N/A _lib JackPortIsInput N/A N/A self _midi_outports N/A Ports self _MIDI N/A _lib JackPortIsOutput N/A N/A self _keepalive N/A N/A N/A self _position N/A N/A _ffi new jack_position_t* N/A N/A _ptr N/A _ffi NULL __enter__ N/A N/A self N/A N/A N/A N/A N/A self activate N/A self N/A __exit__ N/A N/A self N/A args N/A N/A N/A N/A self deactivate N/A N/A N/A self close N/A __del__ N/A N/A self N/A N/A N/A Close JACK client on garbage collection. N/A N/A N/A self close N/A name N/A N/A self N/A N/A N/A The name of the JACK client (read-only). N/A N/A N/A N/A N/A _ffi string N/A N/A _lib jack_get_client_name N/A self _ptr decode N/A property samplerate N/A N/A self N/A N/A N/A The sample rate of the JACK system (read-only). N/A N/A N/A _lib jack_get_sample_rate N/A self _ptr N/A property blocksize N/A N/A self N/A N/A N/A The JACK block size (must be a power of two).

        The current maximum size that will ever be passed to the process
        callback.  It should only be queried *before* :meth:`activate`
        has been called.  This size may change, clients that depend on
        it must register a callback with :meth:`set_blocksize_callback`
        so they will be notified if it does.

        Changing the blocksize stops the JACK engine process cycle, then
        calls all registered callback functions (see
        :meth:`set_blocksize_callback`) before restarting the process
        cycle.  This will cause a gap in the audio flow, so it should
        only be done at appropriate stopping points.

         N/A N/A N/A _lib jack_get_buffer_size N/A self _ptr N/A property blocksize N/A N/A self blocksize N/A N/A N/A N/A _check N/A N/A _lib jack_set_buffer_size N/A self _ptr blocksize Error setting JACK blocksize N/A N/A blocksize setter status N/A N/A self N/A N/A N/A JACK client status.  See :class:`Status`. N/A N/A self _status N/A property realtime N/A N/A self N/A N/A N/A Whether JACK is running with ``-R`` (``--realtime``). N/A N/A bool N/A N/A _lib jack_is_realtime N/A self _ptr N/A property frames_since_cycle_start N/A N/A self N/A N/A N/A Time since start of audio block.

        The estimated time in frames that has passed since the JACK
        server began the current process cycle.

         N/A N/A N/A _lib jack_frames_since_cycle_start N/A self _ptr N/A property frame_time N/A N/A self N/A N/A N/A The estimated current time in frames.

        This is intended for use in other threads (not the process
        callback).  The return value can be compared with the value of
        :attr:`last_frame_time` to relate time in other threads to JACK
        time.

         N/A N/A N/A _lib jack_frame_time N/A self _ptr N/A property last_frame_time N/A N/A self N/A N/A N/A The precise time at the start of the current process cycle.

        This may only be used from the process callback (see
        :meth:`set_process_callback`), and can be used to interpret
        timestamps generated by :attr:`frame_time` in other threads with
        respect to the current process cycle.

        This is the only jack time function that returns exact time:
        when used during the process callback it always returns the same
        value (until the next process callback, where it will return
        that value + :attr:`blocksize`, etc).  The return value is
        guaranteed to be monotonic and linear in this fashion unless an
        xrun occurs (see :meth:`set_xrun_callback`).  If an xrun occurs,
        clients must check this value again, as time may have advanced
        in a non-linear way (e.g.  cycles may have been skipped).

         N/A N/A N/A _lib jack_last_frame_time N/A self _ptr N/A property inports N/A N/A self N/A N/A N/A A list of audio input :class:`Ports`.

        New ports can be created and added to this list with the
        :meth:`~Ports.register` method.
        When :meth:`~OwnPort.unregister` is called on one of the items
        in this list, this port is removed from the list.
        The :meth:`~Ports.clear` method can be used to unregister all
        audio input ports at once.

        See Also
        --------
        Ports, OwnPort

         N/A N/A self _inports N/A property outports N/A N/A self N/A N/A N/A A list of audio output :class:`Ports`.

        New ports can be created and added to this list with the
        :meth:`~Ports.register` method.
        When :meth:`~OwnPort.unregister` is called on one of the items
        in this list, this port is removed from the list.
        The :meth:`~Ports.clear` method can be used to unregister all
        audio output ports at once.

        See Also
        --------
        Ports, OwnPort

         N/A N/A self _outports N/A property midi_inports N/A N/A self N/A N/A N/A A list of MIDI input :class:`Ports`.

        New MIDI ports can be created and added to this list with the
        :meth:`~Ports.register` method.
        When :meth:`~OwnPort.unregister` is called on one of the
        items in this list, this port is removed from the list.
        The :meth:`~Ports.clear` method can be used to unregister all
        MIDI input ports at once.

        See Also
        --------
        Ports, OwnMidiPort

         N/A N/A self _midi_inports N/A property midi_outports N/A N/A self N/A N/A N/A A list of MIDI output :class:`Ports`.

        New MIDI ports can be created and added to this list with the
        :meth:`~Ports.register` method.
        When :meth:`~OwnPort.unregister` is called on one of the
        items in this list, this port is removed from the list.
        The :meth:`~Ports.clear` method can be used to unregister all
        MIDI output ports at once.

        See Also
        --------
        Ports, OwnMidiPort

         N/A N/A self _midi_outports N/A property owns N/A N/A self port N/A N/A N/A Check if a given port belongs to `self`.

        Parameters
        ----------
        port : str or Port
            Full port name or :class:`Port`, :class:`MidiPort`,
            :class:`OwnPort` or :class:`OwnMidiPort` object.

         N/A port N/A N/A self _get_port_ptr port N/A N/A bool N/A N/A _lib jack_port_is_mine N/A self _ptr port N/A activate N/A N/A self N/A N/A N/A Activate JACK client.

        Tell the JACK server that the program is ready to start
        processing audio.

         N/A N/A _check N/A N/A _lib jack_activate N/A self _ptr Error activating JACK client N/A deactivate N/A N/A self ignore_errors N/A True N/A N/A De-activate JACK client.

        Tell the JACK server to remove `self` from the process graph.
        Also, disconnect all ports belonging to it, since inactive
        clients have no port connections.

         N/A err N/A N/A _lib jack_deactivate N/A self _ptr N/A N/A ignore_errors N/A N/A N/A _check err Error deactivating JACK client N/A cpu_load N/A N/A self N/A N/A N/A Return the current CPU load estimated by JACK.

        This is a running average of the time it takes to execute a full
        process cycle for all clients as a percentage of the real time
        available per cycle determined by the :attr:`blocksize` and
        :attr:`samplerate`.

         N/A N/A N/A _lib jack_cpu_load N/A self _ptr N/A close N/A N/A self ignore_errors N/A True N/A N/A Close the JACK client. N/A N/A self _ptr N/A N/A err N/A N/A _lib jack_client_close N/A self _ptr N/A N/A self _ptr N/A _ffi NULL N/A N/A ignore_errors N/A N/A N/A _check err Error closing JACK client N/A connect N/A N/A self source destination N/A N/A N/A Establish a connection between two ports.

        When a connection exists, data written to the source port will
        be available to be read at the destination port.

        Audio ports can obviously not be connected with MIDI ports.

        Parameters
        ----------
        source : str or Port
            One end of the connection. Must be an output port.
        destination : str or Port
            The other end of the connection. Must be an input port.

        See Also
        --------
        OwnPort.connect

         N/A N/A isinstance source Port N/A N/A source N/A source name N/A N/A isinstance destination Port N/A N/A destination N/A destination name N/A err N/A N/A _lib jack_connect N/A self _ptr N/A N/A source encode N/A N/A destination encode N/A N/A err N/A _errno EEXIST N/A N/A N/A JackError N/A N/A Connection {0!r} -> {1!r} already exists format source destination N/A N/A _check err N/A N/A Error connecting {0!r} -> {1!r} format source destination N/A disconnect N/A N/A self source destination N/A N/A N/A Remove a connection between two ports.

        Parameters
        ----------
        source, destination : str or Port
            See :meth:`connect`.

         N/A N/A isinstance source Port N/A N/A source N/A source name N/A N/A isinstance destination Port N/A N/A destination N/A destination name N/A N/A _check N/A N/A _lib jack_disconnect N/A self _ptr N/A N/A source encode N/A N/A destination encode N/A N/A Couldn't disconnect {0!r} -> {1!r} format source destination N/A transport_start N/A N/A self N/A N/A N/A Start JACK transport. N/A N/A N/A _lib jack_transport_start N/A self _ptr N/A transport_stop N/A N/A self N/A N/A N/A Stop JACK transport. N/A N/A N/A _lib jack_transport_stop N/A self _ptr N/A transport_state N/A N/A self N/A N/A N/A JACK transport state.

        This is one of :attr:`STOPPED`, :attr:`ROLLING`,
        :attr:`STARTING`, :attr:`NETSTARTING`.

        See Also
        --------
        transport_query

         N/A N/A TransportState N/A N/A _lib jack_transport_query N/A self _ptr N/A _ffi NULL N/A property transport_locate N/A N/A self frame N/A N/A N/A Reposition the JACK transport to a new frame number.

        Parameters
        ----------
        frame : int
            Frame number.

         N/A N/A _check N/A N/A _lib jack_transport_locate N/A self _ptr frame Error locating JACK transport N/A transport_query N/A N/A self N/A N/A N/A Query the current transport state and position.

        This is a convenience function that does the same as
        :meth:`transport_query_struct` but it only returns the valid
        fields in an easy-to-use ``dict``.

        Returns
        -------
        state : TransportState
            The transport state can take following values:
            :attr:`STOPPED`, :attr:`ROLLING`, :attr:`STARTING` and
            :attr:`NETSTARTING`.
        position : dict
            A dictionary containing only the valid fields of the
            structure returned by :meth:`transport_query_struct`.

        See Also
        --------
        :attr:`transport_state`

         N/A N/A state pos N/A N/A self transport_query_struct N/A N/A N/A TransportState state N/A position2dict pos N/A transport_query_struct N/A N/A self N/A N/A N/A Query the current transport state and position.

        This function is realtime-safe, and can be called from any
        thread.  If called from the process thread, the returned
        position corresponds to the first frame of the current cycle and
        the state returned is valid for the entire cycle.

        Returns
        -------
        state : int
            The transport state can take following values:
            :attr:`STOPPED`, :attr:`ROLLING`, :attr:`STARTING` and
            :attr:`NETSTARTING`.
        position : jack_position_t
            See the `JACK transport documentation`__ for the available
            fields.

            __ http://jackaudio.org/files/docs/html/
               structjack__position__t.html

        See Also
        --------
        transport_query, transport_reposition_struct

         N/A state N/A N/A _lib jack_transport_query N/A self _ptr N/A self _position N/A N/A state N/A self _position N/A transport_reposition_struct N/A N/A self position N/A N/A N/A Request a new transport position.

        May be called at any time by any client.  The new position takes
        effect in two process cycles.  If there are slow-sync clients
        and the transport is already rolling, it will enter the
        :attr:`STARTING` state and begin invoking their sync callbacks
        (see :meth:`set_sync_callback`) until ready.  This function is
        realtime-safe.

        Parameters
        ----------
        position : jack_position_t
            Requested new transport position.  This is the same
            structure as returned by :meth:`transport_query_struct`.

        See Also
        --------
        transport_query_struct, transport_locate

         N/A N/A _check N/A N/A _lib jack_transport_reposition N/A self _ptr position Error re-positioning transport N/A set_freewheel N/A N/A self onoff N/A N/A N/A Start/Stop JACK's "freewheel" mode.

        When in "freewheel" mode, JACK no longer waits for any external
        event to begin the start of the next process cycle.

        As a result, freewheel mode causes "faster than realtime"
        execution of a JACK graph. If possessed, real-time scheduling is
        dropped when entering freewheel mode, and if appropriate it is
        reacquired when stopping.

        IMPORTANT: on systems using capabilities to provide real-time
        scheduling (i.e. Linux kernel 2.4), if onoff is zero, this
        function must be called from the thread that originally called
        :meth:`activate`.  This restriction does not apply to other
        systems (e.g. Linux kernel 2.6 or OS X).

        Parameters
        ----------
        onoff : bool
            If ``True``, freewheel mode starts. Otherwise freewheel mode
            ends.

        See Also
        --------
        set_freewheel_callback

         N/A N/A _check N/A N/A _lib jack_set_freewheel N/A self _ptr onoff Error setting freewheel mode N/A set_shutdown_callback N/A N/A self callback N/A N/A N/A Register shutdown callback.

        Register a function (and optional argument) to be called if and
        when the JACK server shuts down the client thread.
        The function must be written as if it were an asynchonrous POSIX
        signal handler -- use only async-safe functions, and remember
        that it is executed from another thread.
        A typical function might set a flag or write to a pipe so that
        the rest of the application knows that the JACK client thread
        has shut down.

        .. note:: Clients do not need to call this.  It exists only to
           help more complex clients understand what is going on.  It
           should be called before :meth:`activate`.

        Parameters
        ----------
        callback : callable
            User-supplied function that is called whenever the JACK
            daemon is shutdown.  It must have this signature::

                callback(status: Status, reason: str) -> None

            The argument `status` is of type :class:`jack.Status`.

            .. note:: The `callback` should typically signal another
               thread to correctly finish cleanup by calling
               :meth:`close` (since it cannot be called directly in the
               context of the thread that calls the shutdown callback).

               After server shutdown, the client is *not*
               deallocated by JACK, the user (that's you!) is
               responsible to properly use :meth:`close` to release
               client ressources.  Alternatively, the :class:`Client`
               object can be used as a *context manager* in a *with
               statement*, which takes care of activating, deactivating
               and closing the client automatically.

            .. note:: Same as with most callbacks, no functions that
               interact with the JACK daemon should be used here.

         callback_wrapper N/A N/A code reason _ N/A N/A N/A N/A callback N/A Status code N/A N/A N/A N/A _ffi string reason decode N/A N/A N/A self _callback JackInfoShutdownCallback N/A N/A N/A _lib jack_on_info_shutdown N/A self _ptr callback_wrapper N/A _ffi NULL N/A set_process_callback N/A N/A self callback N/A N/A N/A Register process callback.

        Tell the JACK server to call `callback` whenever there is work
        be done.

        The code in the supplied function must be suitable for real-time
        execution.  That means that it cannot call functions that might
        block for a long time. This includes malloc, free, printf,
        pthread_mutex_lock, sleep, wait, poll, select, pthread_join,
        pthread_cond_wait, etc, etc.

        .. warning:: Most Python interpreters use a `global interpreter
           lock (GIL)`__, which violates the above real-time
           requirement.  Furthermore, Python's `garbage collector`__
           might become active at an inconvenient time and block the
           process callback for some time.

           Because of this, Python is not really suitable for real-time
           processing.  If you want to implement a *reliable* real-time
           audio/MIDI application, you should use a different
           programming language, such as C or C++.

           If you can live with some random audio drop-outs now and
           then, feel free to continue using Python!

        __ http://en.wikipedia.org/wiki/Global_Interpreter_Lock
        __ http://en.wikipedia.org/wiki/Garbage_collection_(computer_science)

        .. note:: This function cannot be called while the client is
           activated (after :meth:`activate` has been called).

        Parameters
        ----------
        callback : callable
            User-supplied function that is called by the engine anytime
            there is work to be done.  It must have this signature::

                callback(frames: int) -> None

            The argument `frames` specifies the number of frames that
            have to be processed in the current audio block. It will be
            the same number as :attr:`blocksize` and it will be a power
            of two.

            As long as the client is active, the `callback` will be
            called once in each process cycle.  However, if an exception
            is raised inside of a `callback`, it will not be called
            anymore.  The exception :class:`CallbackExit` can be used to
            silently prevent further callback invocations, all other
            exceptions will print an error message to *stderr*.

         callback_wrapper N/A N/A frames _ N/A N/A N/A N/A N/A N/A callback frames N/A N/A N/A CallbackExit N/A N/A _FAILURE N/A _SUCCESS N/A N/A N/A self _callback JackProcessCallback error _FAILURE N/A N/A _check N/A N/A _lib jack_set_process_callback N/A self _ptr callback_wrapper N/A _ffi NULL Error setting process callback N/A set_freewheel_callback N/A N/A self callback N/A N/A N/A Register freewheel callback.

        Tell the JACK server to call `callback` whenever we enter or
        leave "freewheel" mode.
        The argument to the callback will be ``True`` if JACK is
        entering freewheel mode, and ``False`` otherwise.

        All "notification events" are received in a separated non RT
        thread, the code in the supplied function does not need to be
        suitable for real-time execution.

        .. note:: This function cannot be called while the client is
           activated (after :meth:`activate` has been called).

        Parameters
        ----------
        callback : callable
            User-supplied function that is called whenever JACK starts
            or stops freewheeling.  It must have this signature::

                callback(starting: bool) -> None

            The argument `starting` is ``True`` if we start to
            freewheel, ``False`` otherwise.

            .. note:: Same as with most callbacks, no functions that
               interact with the JACK daemon should be used here.

        See Also
        --------
        set_freewheel

         callback_wrapper N/A N/A starting _ N/A N/A N/A N/A callback N/A bool starting N/A N/A N/A self _callback JackFreewheelCallback N/A N/A _check N/A N/A _lib jack_set_freewheel_callback N/A self _ptr callback_wrapper N/A _ffi NULL Error setting freewheel callback N/A set_blocksize_callback N/A N/A self callback N/A N/A N/A Register blocksize callback.

        Tell JACK to call `callback` whenever the size of the the buffer
        that will be passed to the process callback is about to change.
        Clients that depend on knowing the buffer size must supply a
        `callback` before activating themselves.

        All "notification events" are received in a separated non RT
        thread, the code in the supplied function does not need to be
        suitable for real-time execution.

        .. note:: This function cannot be called while the client is
           activated (after :meth:`activate` has been called).

        Parameters
        ----------
        callback : callable
            User-supplied function that is invoked whenever the JACK
            engine buffer size changes.  It must have this signature::

                callback(blocksize: int) -> None

            The argument `blocksize` is the new buffer size.
            The `callback` is supposed to raise :class:`CallbackExit` on
            error.

            .. note:: Although this function is called in the JACK
               process thread, the normal process cycle is suspended
               during its operation, causing a gap in the audio flow.
               So, the `callback` can allocate storage, touch memory not
               previously referenced, and perform other operations that
               are not realtime safe.

            .. note:: Same as with most callbacks, no functions that
               interact with the JACK daemon should be used here.

        See Also
        --------
        :attr:`blocksize`

         callback_wrapper N/A N/A blocksize _ N/A N/A N/A N/A N/A N/A callback blocksize N/A N/A N/A CallbackExit N/A N/A _FAILURE N/A _SUCCESS N/A N/A N/A self _callback JackBufferSizeCallback error _FAILURE N/A N/A _check N/A N/A _lib jack_set_buffer_size_callback N/A self _ptr callback_wrapper N/A _ffi NULL Error setting blocksize callback N/A set_samplerate_callback N/A N/A self callback N/A N/A N/A Register samplerate callback.

        Tell the JACK server to call `callback` whenever the system
        sample rate changes.

        All "notification events" are received in a separated non RT
        thread, the code in the supplied function does not need to be
        suitable for real-time execution.

        .. note:: This function cannot be called while the client is
           activated (after :meth:`activate` has been called).

        Parameters
        ----------
        callback : callable
            User-supplied function that is called when the engine sample
            rate changes.  It must have this signature::

                callback(samplerate: int) -> None

            The argument `samplerate` is the new engine sample rate.
            The `callback` is supposed to raise :class:`CallbackExit` on
            error.

            .. note:: Same as with most callbacks, no functions that
               interact with the JACK daemon should be used here.

        See Also
        --------
        :attr:`samplerate`

         callback_wrapper N/A N/A samplerate _ N/A N/A N/A N/A N/A N/A callback samplerate N/A N/A N/A CallbackExit N/A N/A _FAILURE N/A _SUCCESS N/A N/A N/A self _callback JackSampleRateCallback error _FAILURE N/A N/A _check N/A N/A _lib jack_set_sample_rate_callback N/A self _ptr callback_wrapper N/A _ffi NULL Error setting samplerate callback N/A set_client_registration_callback N/A N/A self callback N/A N/A N/A Register client registration callback.

        Tell the JACK server to call `callback` whenever a client is
        registered or unregistered.

        All "notification events" are received in a separated non RT
        thread, the code in the supplied function does not need to be
        suitable for real-time execution.

        .. note:: This function cannot be called while the client is
           activated (after :meth:`activate` has been called).

        Parameters
        ----------
        callback : callable
            User-supplied function that is called whenever a client is
            registered or unregistered.  It must have this signature::

                callback(name: str, register: bool) -> None

            The first argument contains the client name, the second
            argument is ``True`` if the client is being registered and
            ``False`` if the client is being unregistered.

            .. note:: Same as with most callbacks, no functions that
               interact with the JACK daemon should be used here.

         callback_wrapper N/A N/A name register _ N/A N/A N/A N/A callback N/A N/A N/A N/A _ffi string name decode N/A bool register N/A N/A N/A self _callback JackClientRegistrationCallback N/A N/A _check N/A N/A _lib jack_set_client_registration_callback N/A self _ptr callback_wrapper N/A _ffi NULL Error setting client registration callback N/A set_port_registration_callback N/A N/A self callback N/A N/A N/A Register port registration callback.

        Tell the JACK server to call `callback` whenever a port is
        registered or unregistered.

        All "notification events" are received in a separated non RT
        thread, the code in the supplied function does not need to be
        suitable for real-time execution.

        .. note:: This function cannot be called while the client is
           activated (after :meth:`activate` has been called).

        Parameters
        ----------
        callback : callable
            User-supplied function function that is called whenever a
            port is registered or unregistered.
            It must have this signature::

                callback(port: Port, register: bool) -> None

            The first argument is a :class:`Port`, :class:`MidiPort`,
            :class:`OwnPort` or :class:`OwnMidiPort` object, the second
            argument is ``True`` if the port is being registered,
            ``False`` if the port is being unregistered.

            .. note:: Same as with most callbacks, no functions that
               interact with the JACK daemon should be used here.

        See Also
        --------
        Ports.register

         callback_wrapper N/A N/A port register _ N/A N/A N/A port N/A N/A self _wrap_port_ptr N/A N/A _lib jack_port_by_id N/A self _ptr port N/A N/A callback port N/A bool register N/A N/A N/A self _callback JackPortRegistrationCallback N/A N/A _check N/A N/A _lib jack_set_port_registration_callback N/A self _ptr callback_wrapper N/A _ffi NULL Error setting port registration callback N/A set_port_connect_callback N/A N/A self callback N/A N/A N/A Register port connect callback.

        Tell the JACK server to call `callback` whenever a port is
        connected or disconnected.

        All "notification events" are received in a separated non RT
        thread, the code in the supplied function does not need to be
        suitable for real-time execution.

        .. note:: This function cannot be called while the client is
           activated (after :meth:`activate` has been called).

        Parameters
        ----------
        callback : callable
            User-supplied function that is called whenever a port is
            connected or disconnected.  It must have this signature::

                callback(a: Port, b: Port, connect: bool) -> None

            The first and second arguments contain :class:`Port`,
            :class:`MidiPort`, :class:`OwnPort` or :class:`OwnMidiPort`
            objects of the ports which are connected or disconnected.
            The third argument is ``True`` if the ports were connected
            and ``False`` if the ports were disconnected.

            .. note:: Same as with most callbacks, no functions that
               interact with the JACK daemon should be used here.

        See Also
        --------
        Client.connect, OwnPort.connect

         callback_wrapper N/A N/A a b connect _ N/A N/A N/A a N/A N/A self _wrap_port_ptr N/A N/A _lib jack_port_by_id N/A self _ptr a N/A b N/A N/A self _wrap_port_ptr N/A N/A _lib jack_port_by_id N/A self _ptr b N/A N/A callback a b N/A bool connect N/A N/A N/A self _callback JackPortConnectCallback N/A N/A _check N/A N/A _lib jack_set_port_connect_callback N/A self _ptr callback_wrapper N/A _ffi NULL Error setting port connect callback N/A set_port_rename_callback N/A N/A self callback N/A N/A N/A Register port rename callback.

        Tell the JACK server to call `callback` whenever a port is
        renamed.

        All "notification events" are received in a separated non RT
        thread, the code in the supplied function does not need to be
        suitable for real-time execution.

        .. note:: This function cannot be called while the client is
           activated (after :meth:`activate` has been called).

        Parameters
        ----------
        callback : callable
            User-supplied function that is called whenever the port name
            has been changed.  It must have this signature::

                callback(port: Port, old: str, new: str) -> None

            The first argument is the port that has been renamed (a
            :class:`Port`, :class:`MidiPort`, :class:`OwnPort` or
            :class:`OwnMidiPort` object); the second and third argument
            is the old and new name, respectively.
            The `callback` is supposed to raise :class:`CallbackExit` on
            error.

            .. note:: Same as with most callbacks, no functions that
               interact with the JACK daemon should be used here.

        See Also
        --------
        :attr:`Port.shortname`

        Notes
        -----
        The port rename callback is not available in JACK 1!
        See `this mailing list posting`__ and `this commit message`__.

        __ http://comments.gmane.org/gmane.comp.audio.jackit/28888
        __ https://github.com/jackaudio/jack1/commit/
           94c819accfab2612050e875c24cf325daa0fd26d

         callback_wrapper N/A N/A port old_name new_name _ N/A N/A N/A port N/A N/A self _wrap_port_ptr N/A N/A _lib jack_port_by_id N/A self _ptr port N/A N/A N/A N/A callback port N/A N/A N/A N/A _ffi string old_name decode N/A N/A N/A N/A _ffi string new_name decode N/A N/A N/A CallbackExit N/A N/A _FAILURE N/A _SUCCESS N/A N/A N/A self _callback JackPortRenameCallback error _FAILURE N/A N/A _check N/A N/A _lib jack_set_port_rename_callback N/A self _ptr callback_wrapper N/A _ffi NULL Error setting port rename callback N/A set_graph_order_callback N/A N/A self callback N/A N/A N/A Register graph order callback.

        Tell the JACK server to call `callback` whenever the processing
        graph is reordered.

        All "notification events" are received in a separated non RT
        thread, the code in the supplied function does not need to be
        suitable for real-time execution.

        .. note:: This function cannot be called while the client is
           activated (after :meth:`activate` has been called).

        Parameters
        ----------
        callback : callable
            User-supplied function that is called whenever the
            processing graph is reordered.
            It must have this signature::

                callback() -> None

            The `callback` is supposed to raise :class:`CallbackExit` on
            error.

            .. note:: Same as with most callbacks, no functions that
               interact with the JACK daemon should be used here.

         callback_wrapper N/A N/A _ N/A N/A N/A N/A N/A N/A callback N/A N/A N/A CallbackExit N/A N/A _FAILURE N/A _SUCCESS N/A N/A N/A self _callback JackGraphOrderCallback error _FAILURE N/A N/A _check N/A N/A _lib jack_set_graph_order_callback N/A self _ptr callback_wrapper N/A _ffi NULL Error setting graph order callback N/A set_xrun_callback N/A N/A self callback N/A N/A N/A Register xrun callback.

        Tell the JACK server to call `callback` whenever there is an
        xrun.

        All "notification events" are received in a separated non RT
        thread, the code in the supplied function does not need to be
        suitable for real-time execution.

        .. note:: This function cannot be called while the client is
           activated (after :meth:`activate` has been called).

        Parameters
        ----------
        callback : callable
            User-supplied function that is called whenever an xrun has
            occured.  It must have this signature::

                callback(delayed_usecs: float) -> None

            The callback argument is the delay in microseconds due to
            the most recent XRUN occurrence.
            The `callback` is supposed to raise :class:`CallbackExit` on
            error.

            .. note:: Same as with most callbacks, no functions that
               interact with the JACK daemon should be used here.

         callback_wrapper N/A N/A _ N/A N/A N/A N/A N/A N/A callback N/A N/A _lib jack_get_xrun_delayed_usecs N/A self _ptr N/A N/A N/A CallbackExit N/A N/A _FAILURE N/A _SUCCESS N/A N/A N/A self _callback JackXRunCallback error _FAILURE N/A N/A _check N/A N/A _lib jack_set_xrun_callback N/A self _ptr callback_wrapper N/A _ffi NULL Error setting xrun callback N/A set_timebase_callback N/A N/A self callback conditional N/A None False N/A N/A Register as timebase master for the JACK subsystem.

        The timebase master registers a callback that updates extended
        position information such as beats or timecode whenever
        necessary.  Without this extended information, there is no need
        for this function.

        There is never more than one master at a time.  When a new
        client takes over, the former callback is no longer called.
        Taking over the timebase may be done conditionally, so that
        `callback` is not registered if there was a master already.

        Parameters
        ----------
        callback : callable
            Realtime function that returns extended position
            information.  Its output affects all of the following process
            cycle.  This realtime function must not wait.
            It is called immediately after the process callback (see
            :meth:`set_process_callback`) in the same thread whenever
            the transport is rolling, or when any client has requested a
            new position in the previous cycle.  The first cycle after
            :meth:`set_timebase_callback()` is also treated as a new
            position, or the first cycle after :meth:`activate()` if the
            client had been inactive.
            The `callback` must have this signature::

                callback(state: int, blocksize: int, pos: jack_position_t, new_pos: bool) -> None

            `state`
                The current transport state.
                See :attr:`transport_state`.
            `blocksize`
                The number of frames in the current period.
                See :attr:`blocksize`.
            `pos`
                The position structure for the next cycle; `pos.frame`
                will be its frame number.  If `new_pos` is ``False``,
                this structure contains extended position information
                from the current cycle.  If `new_pos` is ``True``, it
                contains whatever was set by the requester.
                The `callback`'s task is to update the extended
                information here.  See :meth:`transport_query_struct`
                for details about `jack_position_t`.
            `new_pos`
                ``True`` for a newly requested `pos`, or for the first
                cycle after the timebase callback is defined.

            .. note:: The `pos` argument must not be used to set
               `pos.frame`.  To change position, use
               :meth:`transport_reposition_struct()` or
               :meth:`transport_locate()`.  These functions are
               realtime-safe, the timebase callback can call them
               directly.
        conditional : bool
            Set to ``True`` for a conditional request.

        Returns
        -------
        bool
            ``True`` if the timebase callback was registered.
            ``False`` if a conditional request failed because another
            timebase master is already registered.

         N/A N/A callback None N/A N/A N/A N/A N/A cb N/A N/A N/A self set_timebase_callback cb conditional callback_wrapper N/A N/A state blocksize pos new_pos _ N/A N/A N/A N/A callback state blocksize pos N/A bool new_pos N/A N/A N/A self _callback JackTimebaseCallback N/A err N/A N/A _lib jack_set_timebase_callback N/A self _ptr conditional callback_wrapper N/A _ffi NULL N/A N/A conditional N/A err N/A N/A _errno EBUSY -1 N/A N/A False N/A N/A _check err Error setting timebase callback N/A True N/A get_uuid_for_client_name N/A N/A self name N/A N/A N/A Get the session ID for a client name.

        The session manager needs this to reassociate a client name to
        the session ID.

         N/A uuid N/A N/A _ffi gc N/A N/A _lib jack_get_uuid_for_client_name N/A self _ptr N/A N/A name encode N/A _lib jack_free N/A N/A uuid N/A N/A N/A JackError N/A N/A Unable to get session ID for {0!r} format name N/A N/A N/A N/A N/A _ffi string uuid decode N/A get_client_name_by_uuid N/A N/A self uuid N/A N/A N/A Get the client name for a session ID.

        In order to snapshot the graph connections, the session manager
        needs to map session IDs to client names.

         N/A name N/A N/A _ffi gc N/A N/A _lib jack_get_client_name_by_uuid N/A self _ptr N/A N/A uuid encode N/A _lib jack_free N/A N/A name N/A N/A N/A JackError N/A N/A Unable to get client name for {0!r} format uuid N/A N/A N/A N/A N/A _ffi string name decode N/A get_port_by_name N/A N/A self name N/A N/A N/A Get port by name.

        Given a full port name, this returns a :class:`Port`,
        :class:`MidiPort`, :class:`OwnPort` or :class:`OwnMidiPort`
        object.

         N/A port_ptr N/A N/A _lib jack_port_by_name N/A self _ptr N/A N/A name encode N/A N/A port_ptr N/A N/A N/A JackError N/A N/A Port {0!r} not available format name N/A N/A N/A self _wrap_port_ptr port_ptr N/A get_all_connections N/A N/A self port N/A N/A N/A Return a list of ports which the given port is connected to.

        This differs from :attr:`OwnPort.connections` (also available on
        :class:`OwnMidiPort`) in two important respects:

        1) You may not call this function from code that is executed in
           response to a JACK event. For example, you cannot use it in a
           graph order callback.

        2) You need not be the owner of the port to get information
           about its connections.

         N/A port N/A N/A self _get_port_ptr port N/A names N/A N/A _ffi gc N/A N/A _lib jack_port_get_all_connections N/A self _ptr port N/A _lib jack_free N/A N/A N/A self _port_list_from_pointers names N/A get_ports N/A N/A self name_pattern is_audio is_midi is_input is_output is_physical can_monitor is_terminal N/A False False False False False False False N/A N/A Return a list of selected ports.

        Parameters
        ----------
        name_pattern : str
            A regular expression used to select ports by name.  If
            empty, no selection based on name will be carried out.
        is_audio, is_midi : bool
            Select audio/MIDI ports.  If neither of them is ``True``,
            both types of ports are selected.
        is_input, is_output, is_physical, can_monitor, is_terminal : bool
            Select ports by their flags.  If none of them are ``True``,
            no selection based on flags will be carried out.

        Returns
        -------
        list of Port/MidiPort/OwnPort/OwnMidiPort
            All ports that satisfy the given conditions.

         N/A N/A is_audio N/A is_midi N/A N/A type_pattern _AUDIO N/A N/A N/A is_midi N/A is_audio N/A N/A type_pattern _MIDI N/A N/A type_pattern N/A flags 0 N/A is_input N/A N/A flags N/A _lib JackPortIsInput N/A is_output N/A N/A flags N/A _lib JackPortIsOutput N/A is_physical N/A N/A flags N/A _lib JackPortIsPhysical N/A can_monitor N/A N/A flags N/A _lib JackPortCanMonitor N/A is_terminal N/A N/A flags N/A _lib JackPortIsTerminal N/A names N/A N/A _ffi gc N/A N/A _lib jack_get_ports N/A self _ptr N/A N/A name_pattern encode type_pattern flags N/A _lib jack_free N/A N/A N/A self _port_list_from_pointers names N/A _callback N/A N/A self cdecl N/A kwargs N/A N/A Wrapper for ffi.callback() that keeps callback alive. callback_decorator N/A N/A python_callable N/A N/A N/A function_ptr N/A N/A _ffi callback cdecl python_callable kwargs N/A N/A N/A N/A self _keepalive append function_ptr N/A function_ptr N/A N/A callback_decorator N/A _register_port N/A N/A self name porttype is_terminal is_physical flags N/A N/A N/A Create a new port. N/A is_terminal N/A N/A flags N/A _lib JackPortIsTerminal N/A is_physical N/A N/A flags N/A _lib JackPortIsPhysical N/A port_ptr N/A N/A _lib jack_port_register N/A self _ptr N/A N/A name encode porttype flags 0 N/A N/A port_ptr N/A N/A N/A JackError N/A N/A {0!r}: port registration failed format name N/A N/A N/A self _wrap_port_ptr port_ptr N/A _port_list_from_pointers N/A N/A self names N/A N/A N/A Get list of Port objects from char**. N/A ports N/A N/A names N/A N/A idx 0 N/A True N/A N/A name N/A names N/A idx N/A N/A name N/A N/A N/A N/A N/A ports append N/A N/A self get_port_by_name N/A N/A N/A N/A _ffi string name decode N/A idx 1 N/A ports N/A _get_port_ptr N/A N/A self port N/A N/A N/A Get port pointer from Port object or string or port pointer. N/A N/A isinstance port Port N/A N/A port N/A port _ptr N/A N/A N/A isinstance port str N/A N/A port N/A N/A N/A self get_port_by_name port _ptr N/A port N/A _wrap_port_ptr N/A N/A self ptr N/A N/A N/A Create appropriate port object for a given port pointer. N/A porttype N/A N/A _ffi string N/A N/A _lib jack_port_type ptr N/A N/A porttype _AUDIO N/A N/A port N/A N/A N/A self owns ptr N/A OwnPort ptr self N/A Port ptr N/A N/A N/A porttype _MIDI N/A N/A port N/A N/A N/A self owns ptr N/A OwnMidiPort ptr self N/A MidiPort ptr N/A N/A False N/A port N/A N/A Port N/A object N/A N/A A JACK audio port.

    This class cannot be instantiated directly.  Instead, instances of
    this class are returned from :meth:`Client.get_port_by_name`,
    :meth:`Client.get_ports`, :meth:`Client.get_all_connections` and
    :attr:`OwnPort.connections`.
    In addition, instances of this class are available in the callbacks
    which are set with :meth:`Client.set_port_registration_callback`,
    :meth:`Client.set_port_connect_callback` or
    :meth:`Client.set_port_rename_callback`.

    Note, however, that if the used :class:`Client` owns the respective
    port, instances of :class:`OwnPort` (instead of :class:`Port`) will
    be created.  In case of MIDI ports, instances of :class:`MidiPort`
    or :class:`OwnMidiPort` are created.

    Besides being the type of non-owned JACK audio ports, this class
    also serves as base class for all other port classes
    (:class:`OwnPort`, :class:`MidiPort` and :class:`OwnMidiPort`).

    New JACK audio/MIDI ports can be created with the
    :meth:`~Ports.register` method of :attr:`Client.inports`,
    :attr:`Client.outports`, :attr:`Client.midi_inports` and
    :attr:`Client.midi_outports`.

     __init__ N/A N/A self port_ptr N/A N/A N/A N/A self _ptr port_ptr N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A jack.{0.__class__.__name__}('{0.name}') format self N/A __eq__ N/A N/A self other N/A N/A N/A Ports are equal if their underlying port pointers are. N/A N/A N/A self _ptr N/A other _ptr N/A __ne__ N/A N/A self other N/A N/A N/A This should be implemented whenever __eq__() is implemented. N/A N/A N/A N/A self __eq__ other N/A name N/A N/A self N/A N/A N/A Full name of the JACK port (read-only). N/A N/A N/A N/A N/A _ffi string N/A N/A _lib jack_port_name N/A self _ptr decode N/A property shortname N/A N/A self N/A N/A N/A Short name of the JACK port, not including "client_name:".

        Must be unique among all ports owned by a client.

        May be modified at any time.  If the resulting full name
        (including the "client_name:" prefix) is longer than
        :func:`port_name_size`, it will be truncated.

         N/A N/A N/A N/A N/A _ffi string N/A N/A _lib jack_port_short_name N/A self _ptr decode N/A property shortname N/A N/A self shortname N/A N/A N/A N/A _check N/A N/A _lib jack_port_set_name N/A self _ptr N/A N/A shortname encode Error setting port name N/A N/A shortname setter uuid N/A N/A self N/A N/A N/A The UUID of the JACK port. N/A N/A N/A _lib jack_port_uuid N/A self _ptr N/A property N/A is_audio N/A property N/A N/A N/A self N/A True doc This is always ``True``. N/A is_midi N/A property N/A N/A N/A self N/A False doc This is always ``False``. is_input N/A N/A self N/A N/A N/A Can the port receive data? N/A N/A N/A self _hasflag N/A _lib JackPortIsInput N/A property is_output N/A N/A self N/A N/A N/A Can data be read from this port? N/A N/A N/A self _hasflag N/A _lib JackPortIsOutput N/A property is_physical N/A N/A self N/A N/A N/A Does it correspond to some kind of physical I/O connector? N/A N/A N/A self _hasflag N/A _lib JackPortIsPhysical N/A property can_monitor N/A N/A self N/A N/A N/A Does a call to :meth:`request_monitor` make sense? N/A N/A N/A self _hasflag N/A _lib JackPortCanMonitor N/A property is_terminal N/A N/A self N/A N/A N/A Is the data consumed/generated? N/A N/A N/A self _hasflag N/A _lib JackPortIsTerminal N/A property request_monitor N/A N/A self onoff N/A N/A N/A Set input monitoring.

        If :attr:`can_monitor` is ``True``, turn input monitoring on or
        off.  Otherwise, do nothing.

        Parameters
        ----------
        onoff : bool
            If ``True``, switch monitoring on; if ``False``, switch it
            off.

         N/A N/A _check N/A N/A _lib jack_port_request_monitor N/A self _ptr onoff Unable to switch monitoring on/off N/A _hasflag N/A N/A self flag N/A N/A N/A Helper method for is_*(). N/A N/A bool N/A N/A N/A _lib jack_port_flags N/A self _ptr flag N/A N/A MidiPort N/A Port N/A N/A A JACK MIDI port.

    This class is derived from :class:`Port` and has exactly the same
    attributes and methods.

    This class cannot be instantiated directly (see :class:`Port`).

    New JACK audio/MIDI ports can be created with the
    :meth:`~Ports.register` method of :attr:`Client.inports`,
    :attr:`Client.outports`, :attr:`Client.midi_inports` and
    :attr:`Client.midi_outports`.

    See Also
    --------
    Port, OwnMidiPort

     N/A is_audio N/A property N/A N/A N/A self N/A False doc This is always ``False``. N/A is_midi N/A property N/A N/A N/A self N/A True doc This is always ``True``. N/A OwnPort N/A Port N/A N/A A JACK audio port owned by a :class:`Client` object.

    This class is derived from :class:`Port`.  :class:`OwnPort` objects
    can do everything that :class:`Port` objects can, plus a lot more.

    This class cannot be instantiated directly (see :class:`Port`).

    New JACK audio/MIDI ports can be created with the
    :meth:`~Ports.register` method of :attr:`Client.inports`,
    :attr:`Client.outports`, :attr:`Client.midi_inports` and
    :attr:`Client.midi_outports`.

     __init__ N/A N/A self port_ptr client N/A N/A N/A N/A N/A Port __init__ self port_ptr N/A N/A self _client client N/A number_of_connections N/A N/A self N/A N/A N/A Number of connections to or from port. N/A N/A N/A _lib jack_port_connected N/A self _ptr N/A property connections N/A N/A self N/A N/A N/A List of ports which the port is connected to. N/A names N/A N/A _ffi gc N/A N/A _lib jack_port_get_connections N/A self _ptr N/A _lib jack_free N/A N/A N/A N/A self _client _port_list_from_pointers names N/A property is_connected_to N/A N/A self port N/A N/A N/A Am I *directly* connected to `port`?

        Parameters
        ----------
        port : str or Port
            Full port name or port object.

         N/A N/A isinstance port Port N/A N/A port N/A port name N/A N/A bool N/A N/A _lib jack_port_connected_to N/A self _ptr N/A N/A port encode N/A connect N/A N/A self port N/A N/A N/A Connect to given port.

        Parameters
        ----------
        port : str or Port
            Full port name or port object.

        See Also
        --------
        Client.connect

         N/A N/A N/A isinstance port Port N/A N/A port N/A N/A N/A self _client get_port_by_name port N/A N/A self is_output N/A N/A source self N/A N/A N/A port is_input N/A N/A N/A ValueError Input port expected N/A destination port N/A N/A N/A self is_input N/A N/A destination self N/A N/A N/A port is_output N/A N/A N/A ValueError Output port expected N/A source port N/A N/A False N/A N/A N/A N/A self _client connect N/A source name N/A destination name N/A disconnect N/A N/A self other N/A None N/A N/A Disconnect this port.

        Parameters
        ----------
        other : str or Port
            Port to disconnect from.
            By default, disconnect from all connected ports.

         N/A N/A other None N/A N/A N/A _check N/A N/A _lib jack_port_disconnect N/A N/A self _client _ptr N/A self _ptr N/A N/A Error disconnecting {0!r} format N/A self name N/A N/A N/A self is_output N/A N/A args N/A self other N/A N/A N/A self is_input N/A N/A args N/A other self N/A N/A N/A N/A self _client disconnect args N/A unregister N/A N/A self N/A N/A N/A Unregister port.

        Remove the port from the client, disconnecting any existing
        connections.  This also removes the port from
        :attr:`Client.inports`, :attr:`Client.outports`,
        :attr:`Client.midi_inports` or :attr:`Client.midi_outports`.

         N/A N/A self is_audio N/A N/A listname N/A N/A N/A self is_midi N/A N/A listname midi_ N/A N/A self is_input N/A N/A listname inports N/A N/A N/A self is_output N/A N/A listname outports N/A ports N/A getattr N/A self _client listname N/A N/A N/A N/A ports _portlist remove self N/A N/A _check N/A N/A _lib jack_port_unregister N/A N/A self _client _ptr N/A self _ptr N/A N/A Error unregistering {0!r} format N/A self name N/A get_buffer N/A N/A self N/A N/A N/A Get buffer for audio data.

        This returns a buffer holding the memory area associated with
        the specified port.  For an output port, it will be a memory
        area that can be written to; for an input port, it will be an
        area containing the data from the port's connection(s), or
        zero-filled.  If there are multiple inbound connections, the
        data will be mixed appropriately.

        Caching output ports is DEPRECATED in JACK 2.0, due to some new
        optimization (like "pipelining").  Port buffers have to be
        retrieved in each callback for proper functioning.

        This method shall only be called from within the process
        callback (see :meth:`Client.set_process_callback`).

         N/A blocksize N/A N/A self _client blocksize N/A N/A N/A _ffi buffer N/A N/A _lib jack_port_get_buffer N/A self _ptr blocksize N/A blocksize N/A N/A _ffi sizeof float N/A get_array N/A N/A self N/A N/A N/A Get audio buffer as NumPy array.

        Make sure to ``import numpy`` before calling this, otherwise the
        first call might take a long time.

        This method shall only be called from within the process
        callback (see :meth:`Client.set_process_callback`).

        See Also
        --------
        get_buffer

         N/A numpy np N/A N/A N/A np frombuffer N/A N/A self get_buffer dtype N/A np float32 N/A N/A OwnMidiPort N/A MidiPort OwnPort N/A N/A A JACK MIDI port owned by a :class:`Client` object.

    This class is derived from :class:`OwnPort` and :class:`MidiPort`,
    which are themselves derived from :class:`Port`.  It has the same
    attributes and methods as :class:`OwnPort`, but :meth:`get_buffer`
    and :meth:`get_array` are disabled.  Instead, it has methods for
    sending and receiving MIDI events (to be used only from within the
    process callback -- see :meth:`Client.set_process_callback`).

    This class cannot be instantiated directly (see :class:`Port`).

    New JACK audio/MIDI ports can be created with the
    :meth:`~Ports.register` method of :attr:`Client.inports`,
    :attr:`Client.outports`, :attr:`Client.midi_inports` and
    :attr:`Client.midi_outports`.

     __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A OwnPort __init__ self args kwargs N/A N/A self _event N/A N/A _ffi new jack_midi_event_t* N/A get_buffer N/A N/A self N/A N/A N/A Not available for MIDI ports. N/A N/A NotImplementedError get_buffer() not available on MIDI ports N/A get_array N/A N/A self N/A N/A N/A Not available for MIDI ports. N/A N/A NotImplementedError get_array() not available on MIDI ports N/A max_event_size N/A N/A self N/A N/A N/A Get the size of the largest event that can be stored by the port.

        This returns the current space available, taking into
        account events already stored in the port.

         N/A N/A N/A _lib jack_midi_max_event_size N/A N/A _lib jack_port_get_buffer N/A self _ptr N/A N/A self _client blocksize N/A property lost_midi_events N/A N/A self N/A N/A N/A Get the number of events that could not be written to the port.

        This being a non-zero value implies that the port is full.
        Currently the only way this can happen is if events are lost on
        port mixdown.

         N/A N/A N/A _lib jack_midi_get_lost_event_count N/A N/A _lib jack_port_get_buffer N/A self _ptr N/A N/A self _client blocksize N/A property incoming_midi_events N/A N/A self N/A N/A N/A Return generator for incoming MIDI events.

        JACK MIDI is normalised, the MIDI events yielded by this
        generator are guaranteed to be complete MIDI events (the status
        byte will always be present, and no realtime events will be
        interspersed with the events).

        Yields
        ------
        time : int
            Time (in samples) relative to the beginning of the current
            audio block.
        event : buffer
            The actual MIDI event data.

         N/A event N/A self _event N/A buf N/A N/A _lib jack_port_get_buffer N/A self _ptr N/A N/A self _client blocksize N/A i N/A range N/A N/A _lib jack_midi_get_event_count buf N/A N/A err N/A N/A _lib jack_midi_event_get event buf i N/A N/A err err N/A N/A N/A N/A event time N/A N/A _ffi buffer N/A event buffer N/A event size N/A clear_buffer N/A N/A self N/A N/A N/A Clear an event buffer.

        This should be called at the beginning of each process cycle
        before calling :meth:`reserve_midi_event` or
        :meth:`write_midi_event`.
        This function may not be called on an input port.

         N/A N/A N/A _lib jack_midi_clear_buffer N/A N/A _lib jack_port_get_buffer N/A self _ptr N/A N/A self _client blocksize N/A write_midi_event N/A N/A self time event N/A N/A N/A Create an outgoing MIDI event.

        Clients must write normalised MIDI data to the port - no running
        status and no (one-byte) realtime messages interspersed with
        other messages (realtime messages are fine when they occur on
        their own, like other messages).

        Events must be written in order, sorted by their sample offsets.
        JACK will not sort the events for you, and will refuse to store
        out-of-order events.

        Parameters
        ----------
        time : int
            Time (in samples) relative to the beginning of the current
            audio block.
        event : bytes or buffer or sequence of int
            The actual MIDI event data.

            .. note:: Buffer objects are only supported for CFFI >= 0.9.

        Raises
        ------
        JackError
            If MIDI event couldn't be written.

         N/A N/A N/A event N/A N/A _ffi from_buffer event N/A N/A N/A AttributeError N/A N/A N/A N/A TypeError N/A N/A N/A N/A _check N/A N/A _lib jack_midi_event_write N/A N/A _lib jack_port_get_buffer N/A self _ptr N/A N/A self _client blocksize time event N/A len event Error writing MIDI event N/A reserve_midi_event N/A N/A self time size N/A N/A N/A Get a buffer where an outgoing MIDI event can be written to.

        Clients must write normalised MIDI data to the port - no running
        status and no (one-byte) realtime messages interspersed with
        other messages (realtime messages are fine when they occur on
        their own, like other messages).

        Events must be written in order, sorted by their sample offsets.
        JACK will not sort the events for you, and will refuse to store
        out-of-order events.

        Parameters
        ----------
        time : int
            Time (in samples) relative to the beginning of the current
            audio block.
        size : int
            Number of bytes to reserve.

        Returns
        -------
        buffer
            A buffer object where MIDI data bytes can be written to.
            If no space could be reserved, an empty buffer is returned.

         N/A buf N/A N/A _lib jack_midi_event_reserve N/A N/A _lib jack_port_get_buffer N/A self _ptr N/A N/A self _client blocksize time size N/A N/A N/A _ffi buffer buf N/A buf size 0 N/A N/A Ports N/A object N/A N/A A list of input/output ports.

    This class is not meant to be instantiated directly.  It is only
    used as :attr:`Client.inports`, :attr:`Client.outports`,
    :attr:`Client.midi_inports` and :attr:`Client.midi_outports`.

    The ports can be accessed by indexing or by iteration.

    New ports can be added with :meth:`register`, existing ports can
    be removed by calling their :meth:`~OwnPort.unregister` method.

     __init__ N/A N/A self client porttype flag N/A N/A N/A N/A self _client client N/A N/A self _type porttype N/A N/A self _flag flag N/A N/A self _portlist N/A N/A __len__ N/A N/A self N/A N/A N/A N/A N/A N/A self _portlist __len__ N/A __getitem__ N/A N/A self name N/A N/A N/A N/A N/A N/A self _portlist __getitem__ name N/A __iter__ N/A N/A self N/A N/A N/A N/A N/A N/A self _portlist __iter__ N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A N/A self _portlist __repr__ N/A register N/A N/A self shortname is_terminal is_physical N/A False False N/A N/A Create a new input/output port.

        The new :class:`OwnPort` or :class:`OwnMidiPort` object is
        automatically added to :attr:`Client.inports`,
        :attr:`Client.outports`, :attr:`Client.midi_inports` or
        :attr:`Client.midi_outports`.

        Parameters
        ----------
        shortname : str
            Each port has a short name.  The port's full name contains
            the name of the client concatenated with a colon (:)
            followed by its short name.  The :func:`port_name_size` is
            the maximum length of this full name.  Exceeding that will
            cause the port registration to fail.

            The port name must be unique among all ports owned by this
            client.
            If the name is not unique, the registration will fail.
        is_terminal : bool
            For an input port: If ``True``, the data received by the
            port will not be passed on or made available at any other
            port.
            For an output port: If ``True``, the data available at the
            port does not originate from any other port

            Audio synthesizers, I/O hardware interface clients, HDR
            systems are examples of clients that would set this flag for
            their ports.
        is_physical : bool
            If ``True`` the port corresponds to some kind of physical
            I/O connector.

        Returns
        -------
        Port
            A new :class:`OwnPort` or :class:`OwnMidiPort` instance.

         N/A port N/A N/A N/A self _client _register_port shortname N/A self _type is_terminal is_physical N/A self _flag N/A N/A N/A N/A self _portlist append port N/A port N/A clear N/A N/A self N/A N/A N/A Unregister all ports in the list.

        See Also
        --------
        OwnPort.unregister

         N/A N/A self _portlist N/A N/A N/A N/A N/A N/A self _portlist N/A 0 unregister N/A N/A RingBuffer N/A object N/A N/A JACK's lock-free ringbuffer. __init__ N/A N/A self size N/A N/A N/A Create a lock-free ringbuffer.

        A ringbuffer is a good way to pass data between threads
        (e.g. between the main program and the process callback),
        when streaming realtime data to slower media, like audio file
        playback or recording.

        The key attribute of a ringbuffer is that it can be safely
        accessed by two threads simultaneously -- one reading from the
        buffer and the other writing to it -- without using any
        synchronization or mutual exclusion primitives.  For this to
        work correctly, there can only be a single reader and a single
        writer thread.  Their identities cannot be interchanged.

        Parameters
        ----------
        size : int
            Size in bytes.  JACK will allocate a buffer of at least this
            size (rounded up to the next power of 2), but one byte is
            reserved for internal use.  Use :attr:`write_space` to
            determine the actual size available for writing.

         N/A ptr N/A N/A _lib jack_ringbuffer_create size N/A N/A ptr N/A N/A N/A JackError Could not create RingBuffer N/A N/A self _ptr N/A N/A _ffi gc ptr N/A _lib jack_ringbuffer_free N/A write_space N/A N/A self N/A N/A N/A The number of bytes available for writing. N/A N/A N/A _lib jack_ringbuffer_write_space N/A self _ptr N/A property write N/A N/A self data N/A N/A N/A Write data into the ringbuffer.

        Parameters
        ----------
        data : buffer or bytes or iterable of int
            Bytes to be written to the ringbuffer.

        Returns
        -------
        int
            The number of bytes written, which could be less than the
            length of `data` if there was no more space left
            (see :attr:`write_space`).

        See Also
        --------
        :attr:`write_space`, :attr:`write_buffers`

         N/A N/A N/A data N/A N/A _ffi from_buffer data N/A N/A N/A AttributeError N/A N/A N/A N/A TypeError N/A N/A N/A N/A N/A _lib jack_ringbuffer_write N/A self _ptr data N/A len data N/A write_buffers N/A N/A self N/A N/A N/A Contains two buffer objects that can be written to directly.

        Two are needed because the space available for writing may be
        split across the end of the ringbuffer.  Either of them could be
        0 length.

        This can be used as a no-copy version of :meth:`write`.

        When finished with writing, :meth:`write_advance` should be
        used.

        .. note:: After an operation that changes the write pointer
           (:meth:`write`, :meth:`write_advance`, :meth:`reset`), the
           buffers are no longer valid and one should use this property
           again to get new ones.

         N/A vectors N/A N/A _ffi new jack_ringbuffer_data_t[2] N/A N/A N/A _lib jack_ringbuffer_get_write_vector N/A self _ptr vectors N/A N/A N/A N/A _ffi buffer N/A N/A vectors N/A 0 buf N/A N/A vectors N/A 0 len N/A N/A _ffi buffer N/A N/A vectors N/A 1 buf N/A N/A vectors N/A 1 len N/A property write_advance N/A N/A self size N/A N/A N/A Advance the write pointer.

        After data has been written to the ringbuffer using
        :attr:`write_buffers`, use this method to advance the buffer
        pointer, making the data available for future read operations.

        Parameters
        ----------
        size : int
            The number of bytes to advance.

         N/A N/A N/A _lib jack_ringbuffer_write_advance N/A self _ptr size N/A read_space N/A N/A self N/A N/A N/A The number of bytes available for reading. N/A N/A N/A _lib jack_ringbuffer_read_space N/A self _ptr N/A property read N/A N/A self size N/A N/A N/A Read data from the ringbuffer.

        Parameters
        ----------
        size : int
            Number of bytes to read.

        Returns
        -------
        buffer
            A buffer object containing the requested data.
            If no more data is left (see :attr:`read_space`), a smaller
            (or even empty) buffer is returned.

        See Also
        --------
        peek, :attr:`read_space`, :attr:`read_buffers`

         N/A data N/A N/A _ffi new unsigned char[] size N/A size N/A N/A _lib jack_ringbuffer_read N/A self _ptr data size N/A N/A N/A _ffi buffer data size N/A peek N/A N/A self size N/A N/A N/A Peek at data from the ringbuffer.

        Opposed to :meth:`read` this function does not move the read
        pointer.  Thus it's a convenient way to inspect data in the
        ringbuffer in a continuous fashion.
        The price is that the data is copied into a newly allocated
        buffer.  For "raw" non-copy inspection of the data in the
        ringbuffer use :attr:`read_buffers`.

        Parameters
        ----------
        size : int
            Number of bytes to peek.

        Returns
        -------
        buffer
            A buffer object containing the requested data.
            If no more data is left (see :attr:`read_space`), a smaller
            (or even empty) buffer is returned.

        See Also
        --------
        read, :attr:`read_space`, :attr:`read_buffers`

         N/A data N/A N/A _ffi new unsigned char[] size N/A size N/A N/A _lib jack_ringbuffer_peek N/A self _ptr data size N/A N/A N/A _ffi buffer data size N/A read_buffers N/A N/A self N/A N/A N/A Contains two buffer objects that can be read directly.

        Two are needed because the data to be read may be split across
        the end of the ringbuffer.  Either of them could be 0 length.

        This can be used as a no-copy version of :meth:`peek` or
        :meth:`read`.

        When finished with reading, :meth:`read_advance` should be used.

        .. note:: After an operation that changes the read pointer
           (:meth:`read`, :meth:`read_advance`, :meth:`reset`), the
           buffers are no longer valid and one should use this property
           again to get new ones.

         N/A vectors N/A N/A _ffi new jack_ringbuffer_data_t[2] N/A N/A N/A _lib jack_ringbuffer_get_read_vector N/A self _ptr vectors N/A N/A N/A N/A _ffi buffer N/A N/A vectors N/A 0 buf N/A N/A vectors N/A 0 len N/A N/A _ffi buffer N/A N/A vectors N/A 1 buf N/A N/A vectors N/A 1 len N/A property read_advance N/A N/A self size N/A N/A N/A Advance the read pointer.

        After data has been read from the ringbuffer using
        :attr:`read_buffers` or :meth:`peek`, use this method to advance
        the buffer pointers, making that space available for future
        write operations.

        Parameters
        ----------
        size : int
            The number of bytes to advance.

         N/A N/A N/A _lib jack_ringbuffer_read_advance N/A self _ptr size N/A mlock N/A N/A self N/A N/A N/A Lock a ringbuffer data block into memory.

        Uses the ``mlock()`` system call.  This prevents the
        ringbuffer's memory from being paged to the swap area.

        .. note:: This is not a realtime operation.

         N/A N/A _check N/A N/A _lib jack_ringbuffer_mlock N/A self _ptr Error mlocking the RingBuffer data N/A reset N/A N/A self size N/A None N/A N/A Reset the read and write pointers, making an empty buffer.

        .. note:: This is not thread safe.

        Parameters
        ----------
        size : int, optional
            The new size for the ringbuffer.
            Must be less than allocated size.

         N/A N/A size None N/A N/A N/A N/A _lib jack_ringbuffer_reset N/A self _ptr N/A N/A N/A N/A _lib jack_ringbuffer_reset_size N/A self _ptr size N/A size N/A N/A self N/A N/A N/A The number of bytes in total used by the buffer.

        See Also
        --------
        :attr:`read_space`, :attr:`write_space`

         N/A N/A N/A self _ptr size N/A property N/A Status N/A object N/A N/A Representation of the JACK status bits. N/A __slots__ _code __init__ N/A N/A self code N/A N/A N/A N/A self _code code N/A __repr__ N/A N/A self N/A N/A N/A flags N/A N/A ,  join N/A name N/A name N/A dir self N/A N/A N/A N/A name startswith _ N/A getattr self name N/A N/A flags N/A N/A flags no flags set N/A N/A N/A <jack.Status 0x{0:X}: {1}> format N/A self _code flags N/A failure N/A N/A self N/A N/A N/A Overall operation failed. N/A N/A N/A self _hasflag N/A _lib JackFailure N/A property invalid_option N/A N/A self N/A N/A N/A The operation contained an invalid or unsupported option. N/A N/A N/A self _hasflag N/A _lib JackInvalidOption N/A property name_not_unique N/A N/A self N/A N/A N/A The desired client name was not unique.

        With the `use_exact_name` option of :class:`Client`, this
        situation is fatal.
        Otherwise, the name is modified by appending a dash and a
        two-digit number in the range "-01" to "-99".
        :attr:`Client.name` will return the exact string that was used.
        If the specified `name` plus these extra characters would be too
        long, the open fails instead.

         N/A N/A N/A self _hasflag N/A _lib JackNameNotUnique N/A property server_started N/A N/A self N/A N/A N/A The JACK server was started for this :class:`Client`.

        Otherwise, it was running already.

         N/A N/A N/A self _hasflag N/A _lib JackServerStarted N/A property server_failed N/A N/A self N/A N/A N/A Unable to connect to the JACK server. N/A N/A N/A self _hasflag N/A _lib JackServerFailed N/A property server_error N/A N/A self N/A N/A N/A Communication error with the JACK server. N/A N/A N/A self _hasflag N/A _lib JackServerError N/A property no_such_client N/A N/A self N/A N/A N/A Requested client does not exist. N/A N/A N/A self _hasflag N/A _lib JackNoSuchClient N/A property load_failure N/A N/A self N/A N/A N/A Unable to load internal client. N/A N/A N/A self _hasflag N/A _lib JackLoadFailure N/A property init_failure N/A N/A self N/A N/A N/A Unable to initialize client. N/A N/A N/A self _hasflag N/A _lib JackInitFailure N/A property shm_failure N/A N/A self N/A N/A N/A Unable to access shared memory. N/A N/A N/A self _hasflag N/A _lib JackShmFailure N/A property version_error N/A N/A self N/A N/A N/A Client's protocol version does not match. N/A N/A N/A self _hasflag N/A _lib JackVersionError N/A property backend_error N/A N/A self N/A N/A N/A Backend error. N/A N/A N/A self _hasflag N/A _lib JackBackendError N/A property client_zombie N/A N/A self N/A N/A N/A Client zombified failure. N/A N/A N/A self _hasflag N/A _lib JackClientZombie N/A property _hasflag N/A N/A self flag N/A N/A N/A Helper function for Status properties. N/A N/A bool N/A N/A self _code flag N/A N/A TransportState N/A object N/A N/A Representation of the JACK transport state.

    See Also
    --------
    :attr:`Client.transport_state`, :meth:`Client.transport_query`

     N/A __slots__ _code __init__ N/A N/A self code N/A N/A N/A N/A self _code code N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A self _code other N/A __repr__ N/A N/A self N/A N/A N/A N/A jack. N/A N/A N/A _lib JackTransportStopped N/A _lib JackTransportRolling N/A _lib JackTransportStarting N/A _lib JackTransportNetStarting STOPPED ROLLING STARTING NETSTARTING N/A N/A self _code N/A N/A JackError N/A Exception N/A N/A Exception for all kinds of JACK-related errors. N/A N/A CallbackExit N/A Exception N/A N/A To be raised in a callback function to signal failure.

    See Also
    --------
    :meth:`Client.set_process_callback`
    :meth:`Client.set_blocksize_callback`
    :meth:`Client.set_samplerate_callback`
    :meth:`Client.set_port_rename_callback`
    :meth:`Client.set_graph_order_callback`
    :meth:`Client.set_xrun_callback`

     N/A N/A position2dict N/A N/A pos N/A N/A N/A Convert CFFI position struct to a dict. N/A N/A N/A pos unique_1 N/A pos unique_2 N/A keys N/A usecs frame_rate frame N/A N/A N/A pos valid N/A _lib JackPositionBBT N/A N/A keys N/A bar beat tick bar_start_tick beats_per_bar beat_type ticks_per_beat beats_per_minute N/A N/A N/A pos valid N/A _lib JackPositionTimecode N/A N/A keys N/A frame_time next_time N/A N/A N/A pos valid N/A _lib JackBBTFrameOffset N/A N/A keys N/A bbt_offset N/A N/A N/A pos valid N/A _lib JackAudioVideoRatio N/A N/A keys N/A audio_frames_per_video_frame N/A N/A N/A pos valid N/A _lib JackVideoFrameOffset N/A N/A keys N/A video_offset N/A N/A dict N/A N/A k N/A getattr pos k N/A k keys N/A version N/A N/A N/A N/A N/A Get tuple of major/minor/micro/protocol version. N/A v N/A N/A _ffi new int[4] N/A N/A N/A _lib jack_get_version N/A v 0 N/A v 1 N/A v 2 N/A v 3 N/A N/A tuple v N/A version_string N/A N/A N/A N/A N/A Get human-readable JACK version. N/A N/A N/A N/A N/A _ffi string N/A N/A _lib jack_get_version_string decode N/A client_name_size N/A N/A N/A N/A N/A Return the maximum number of characters in a JACK client name.

    This includes the final NULL character.  This value is a constant.

     N/A N/A N/A _lib jack_client_name_size N/A port_name_size N/A N/A N/A N/A N/A Maximum length of port names.

    The maximum number of characters in a full JACK port name including
    the final NULL character.  This value is a constant.

    A port's full name contains the owning client name concatenated with
    a colon (:) followed by its short name and a NULL character.

     N/A N/A N/A _lib jack_port_name_size N/A set_error_function N/A N/A callback N/A None N/A N/A Set the callback for error message display.

    Set it to ``None`` to restore the default error callback function
    (which prints the error message plus a newline to stderr).
    The `callback` function must have this signature::

        callback(message: str) -> None

     N/A N/A _set_error_or_info_function callback N/A _lib jack_set_error_function N/A set_info_function N/A N/A callback N/A None N/A N/A Set the callback for info message display.

    Set it to ``None`` to restore default info callback function
    (which prints the info message plus a newline to stderr).
    The `callback` function must have this signature::

        callback(message: str) -> None

     N/A N/A _set_error_or_info_function callback N/A _lib jack_set_info_function N/A client_pid N/A N/A name N/A N/A N/A Return PID of a JACK client.

    Parameters
    ----------
    name : str
        Name of the JACK client whose PID shall be returned.

    Returns
    -------
    int
        PID of `name`.  If not available, 0 will be returned.

     N/A N/A N/A _lib jack_get_client_pid N/A N/A name encode N/A _set_error_or_info_function N/A N/A callback setter N/A N/A N/A Helper for set_error_function() and set_info_function(). N/A N/A callback None N/A N/A callback_wrapper N/A _ffi NULL N/A callback_wrapper N/A N/A msg N/A N/A N/A N/A callback N/A N/A N/A N/A _ffi string msg decode N/A N/A N/A _ffi callback void (*)(const char*) N/A N/A _keepalive N/A setter callback_wrapper N/A N/A setter callback_wrapper N/A N/A _keepalive N/A _check N/A N/A error_code msg N/A N/A N/A Check error code and raise JackError if non-zero. N/A error_code N/A N/A N/A JackError N/A N/A {0} ({1}) format msg error_code N/A