Skip to content

Python Mojo Interop

Structs

struct MMMAudioBridge

Traits: AnyType, ImplicitlyDestructible, Movable, Representable


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: Int = 512, num_in_chans: Int = 12, num_out_chans: Int = 12)

fn init Arguments

Name Type Default Description
sample_rate Float64 44100
block_size Int 512
num_in_chans Int 12
num_out_chans Int 12

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_selfA: PythonObject, args: PythonObject) -> PythonObject

fn set_channel_count Arguments

Name Type Default Description
py_selfA PythonObject
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_selfA: PythonObject, dims: PythonObject) -> PythonObject

fn set_screen_dims Arguments

Name Type Default Description
py_selfA PythonObject
dims PythonObject

fn set_screen_dims 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_selfA: PythonObject, pos: PythonObject) -> PythonObject

fn update_mouse_pos Arguments

Name Type Default Description
py_selfA PythonObject
pos PythonObject

fn update_mouse_pos Returns : PythonObject

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn to_float64

fn to_float64 Signature

to_float64(py_float: PythonObject) -> Float64

fn to_float64 Arguments

Name Type Default Description
py_float PythonObject

fn to_float64 Returns : Float64

Raises

Static Method

This is a static method.

struct MMMAudioBridge . fn update_bool_msg

fn update_bool_msg Signature

update_bool_msg(py_selfA: PythonObject, key_vals: PythonObject) -> PythonObject

fn update_bool_msg Arguments

Name Type Default Description
py_selfA PythonObject
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_selfA: PythonObject, key_vals: PythonObject) -> PythonObject

fn update_bools_msg Arguments

Name Type Default Description
py_selfA PythonObject
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_selfA: PythonObject, key_vals: PythonObject) -> PythonObject

fn update_float_msg Arguments

Name Type Default Description
py_selfA PythonObject
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_selfA: PythonObject, key_vals: PythonObject) -> PythonObject

fn update_floats_msg Arguments

Name Type Default Description
py_selfA PythonObject
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_selfA: PythonObject, key_vals: PythonObject) -> PythonObject

fn update_int_msg Arguments

Name Type Default Description
py_selfA PythonObject
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_selfA: PythonObject, key_vals: PythonObject) -> PythonObject

fn update_ints_msg Arguments

Name Type Default Description
py_selfA PythonObject
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_selfA: PythonObject, key_vals: PythonObject) -> PythonObject

fn update_trig_msg Arguments

Name Type Default Description
py_selfA PythonObject
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_selfA: PythonObject, key_vals: PythonObject) -> PythonObject

fn update_trigs_msg Arguments

Name Type Default Description
py_selfA PythonObject
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_selfA: PythonObject, key_vals: PythonObject) -> PythonObject

fn update_string_msg Arguments

Name Type Default Description
py_selfA PythonObject
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_selfA: PythonObject, key_vals: PythonObject) -> PythonObject

fn update_strings_msg Arguments

Name Type Default Description
py_selfA PythonObject
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, origin], mut loc_out_buffer: UnsafePointer[Float64, origin])

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_selfA: PythonObject, in_buffer: PythonObject, out_buffer: PythonObject) -> PythonObject

fn next Arguments

Name Type Default Description
py_selfA PythonObject
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.26.1.0