Python Mojo Interop
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 that are not associated with a Struct)
fn PyInit_MMMAudioBridge¶
Documentation generated with mojo doc from Mojo version 0.25.6.1