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