Skip to content

Python Mojo Interop

Structs

struct MMMAudioBridge

Traits: AnyType, Movable, Representable, UnknownDestructibility


MMMAudioBridge Functions

struct MMMAudioBridge . fn init

Initialize the audio engine with sample rate, block size, and number of channels.

fn init Signature

__init__(out self, sample_rate: Float64 = 44100, block_size: Int64 = 512, num_in_chans: Int64 = 12, num_out_chans: Int64 = 12, graphs: List[Int64] = List[Int64](0, Tuple[]()))

fn init Arguments

Name Type Default Description
sample_rate Float64 44100
block_size Int64 512
num_in_chans Int64 12
num_out_chans Int64 12
graphs List List[Int64](0, Tuple[]())

fn init Returns : Self

Static Method

This is a static method.

struct MMMAudioBridge . fn py_init

fn py_init Signature

py_init(args: PythonObject, kwargs: PythonObject, out self: Self)

fn py_init Arguments

Name Type Default Description
args PythonObject
kwargs PythonObject

fn py_init Returns : Self

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn set_channel_count

fn set_channel_count Signature

set_channel_count(py_self: UnsafePointer[MMMAudioBridge], args: PythonObject) -> PythonObject

fn set_channel_count Arguments

Name Type Default Description
py_self UnsafePointer
args PythonObject

fn set_channel_count Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn set_screen_dims

fn set_screen_dims Signature

set_screen_dims(py_self: UnsafePointer[MMMAudioBridge], dims: PythonObject) -> PythonObject

fn set_screen_dims Arguments

Name Type Default Description
py_self UnsafePointer
dims PythonObject

fn set_screen_dims Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn send_raw_hid

fn send_raw_hid Signature

send_raw_hid(py_self: UnsafePointer[MMMAudioBridge], info: PythonObject) -> PythonObject

fn send_raw_hid Arguments

Name Type Default Description
py_self UnsafePointer
info PythonObject

fn send_raw_hid Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_mouse_pos

fn update_mouse_pos Signature

update_mouse_pos(py_self: UnsafePointer[MMMAudioBridge], pos: PythonObject) -> PythonObject

fn update_mouse_pos Arguments

Name Type Default Description
py_self UnsafePointer
pos PythonObject

fn update_mouse_pos Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_bool_msg

fn update_bool_msg Signature

update_bool_msg(py_self: UnsafePointer[MMMAudioBridge], key_vals: PythonObject) -> PythonObject

fn update_bool_msg Arguments

Name Type Default Description
py_self UnsafePointer
key_vals PythonObject

fn update_bool_msg Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_bools_msg

fn update_bools_msg Signature

update_bools_msg(py_self: UnsafePointer[MMMAudioBridge], key_vals: PythonObject) -> PythonObject

fn update_bools_msg Arguments

Name Type Default Description
py_self UnsafePointer
key_vals PythonObject

fn update_bools_msg Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_float_msg

fn update_float_msg Signature

update_float_msg(py_self: UnsafePointer[MMMAudioBridge], key_vals: PythonObject) -> PythonObject

fn update_float_msg Arguments

Name Type Default Description
py_self UnsafePointer
key_vals PythonObject

fn update_float_msg Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_floats_msg

fn update_floats_msg Signature

update_floats_msg(py_self: UnsafePointer[MMMAudioBridge], key_vals: PythonObject) -> PythonObject

fn update_floats_msg Arguments

Name Type Default Description
py_self UnsafePointer
key_vals PythonObject

fn update_floats_msg Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_int_msg

fn update_int_msg Signature

update_int_msg(py_self: UnsafePointer[MMMAudioBridge], key_vals: PythonObject) -> PythonObject

fn update_int_msg Arguments

Name Type Default Description
py_self UnsafePointer
key_vals PythonObject

fn update_int_msg Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_ints_msg

fn update_ints_msg Signature

update_ints_msg(py_self: UnsafePointer[MMMAudioBridge], key_vals: PythonObject) -> PythonObject

fn update_ints_msg Arguments

Name Type Default Description
py_self UnsafePointer
key_vals PythonObject

fn update_ints_msg Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_trig_msg

fn update_trig_msg Signature

update_trig_msg(py_self: UnsafePointer[MMMAudioBridge], key_vals: PythonObject) -> PythonObject

fn update_trig_msg Arguments

Name Type Default Description
py_self UnsafePointer
key_vals PythonObject

fn update_trig_msg Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_trigs_msg

fn update_trigs_msg Signature

update_trigs_msg(py_self: UnsafePointer[MMMAudioBridge], key_vals: PythonObject) -> PythonObject

fn update_trigs_msg Arguments

Name Type Default Description
py_self UnsafePointer
key_vals PythonObject

fn update_trigs_msg Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_string_msg

fn update_string_msg Signature

update_string_msg(py_self: UnsafePointer[MMMAudioBridge], key_vals: PythonObject) -> PythonObject

fn update_string_msg Arguments

Name Type Default Description
py_self UnsafePointer
key_vals PythonObject

fn update_string_msg Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_strings_msg

fn update_strings_msg Signature

update_strings_msg(py_self: UnsafePointer[MMMAudioBridge], key_vals: PythonObject) -> PythonObject

fn update_strings_msg Arguments

Name Type Default Description
py_self UnsafePointer
key_vals PythonObject

fn update_strings_msg Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn get_audio_samples

fn get_audio_samples Signature

get_audio_samples(mut self, loc_in_buffer: UnsafePointer[Float32], loc_out_buffer: UnsafePointer[Float64])

fn get_audio_samples Arguments

Name Type Default Description
loc_in_buffer UnsafePointer
loc_out_buffer UnsafePointer

Raises

struct MMMAudioBridge . fn next

fn next Signature

next(py_self: UnsafePointer[MMMAudioBridge], in_buffer: PythonObject, out_buffer: PythonObject) -> PythonObject

fn next Arguments

Name Type Default Description
py_self UnsafePointer
in_buffer PythonObject
out_buffer PythonObject

fn next Returns : PythonObject

Raises

Static Method

This is a static method.

Functions

(Functions that are not associated with a Struct)

fn PyInit_MMMAudioBridge

Signature

PyInit_MMMAudioBridge() -> PythonObject

Returns

Type: PythonObject


Documentation generated with mojo doc from Mojo version 0.25.6.1