Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions shared-bindings/audiodelays/Chorus.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(audiodelays_chorus_get_playing_obj, audiodelays_chorus
MP_PROPERTY_GETTER(audiodelays_chorus_playing_obj,
(mp_obj_t)&audiodelays_chorus_get_playing_obj);

//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> None:
//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> Chorus:
//| """Plays the sample once when loop=False and continuously when loop=True.
//| Does not block. Use `playing` to block.
//|
Expand All @@ -228,7 +228,7 @@ static mp_obj_t audiodelays_chorus_obj_play(size_t n_args, const mp_obj_t *pos_a
mp_obj_t sample = args[ARG_sample].u_obj;
common_hal_audiodelays_chorus_play(self, sample, args[ARG_loop].u_bool);

return mp_const_none;
return pos_args[0];
}
MP_DEFINE_CONST_FUN_OBJ_KW(audiodelays_chorus_play_obj, 1, audiodelays_chorus_obj_play);

Expand Down
4 changes: 2 additions & 2 deletions shared-bindings/audiodelays/Echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(audiodelays_echo_get_playing_obj, audiodelays_echo_obj
MP_PROPERTY_GETTER(audiodelays_echo_playing_obj,
(mp_obj_t)&audiodelays_echo_get_playing_obj);

//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> None:
//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> Echo:
//| """Plays the sample once when loop=False and continuously when loop=True.
//| Does not block. Use `playing` to block.
//|
Expand All @@ -252,7 +252,7 @@ static mp_obj_t audiodelays_echo_obj_play(size_t n_args, const mp_obj_t *pos_arg
mp_obj_t sample = args[ARG_sample].u_obj;
common_hal_audiodelays_echo_play(self, sample, args[ARG_loop].u_bool);

return mp_const_none;
return pos_args[0];
}
MP_DEFINE_CONST_FUN_OBJ_KW(audiodelays_echo_play_obj, 1, audiodelays_echo_obj_play);

Expand Down
4 changes: 2 additions & 2 deletions shared-bindings/audiodelays/MultiTapDelay.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(audiodelays_multi_tap_delay_get_playing_obj, audiodela
MP_PROPERTY_GETTER(audiodelays_multi_tap_delay_playing_obj,
(mp_obj_t)&audiodelays_multi_tap_delay_get_playing_obj);

//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> None:
//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> MultiTapDelay:
//| """Plays the sample once when loop=False and continuously when loop=True.
//| Does not block. Use `playing` to block.
//|
Expand All @@ -255,7 +255,7 @@ static mp_obj_t audiodelays_multi_tap_delay_obj_play(size_t n_args, const mp_obj
mp_obj_t sample = args[ARG_sample].u_obj;
common_hal_audiodelays_multi_tap_delay_play(self, sample, args[ARG_loop].u_bool);

return mp_const_none;
return pos_args[0];
}
MP_DEFINE_CONST_FUN_OBJ_KW(audiodelays_multi_tap_delay_play_obj, 1, audiodelays_multi_tap_delay_obj_play);

Expand Down
4 changes: 2 additions & 2 deletions shared-bindings/audiodelays/PitchShift.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ MP_PROPERTY_GETTER(audiodelays_pitch_shift_playing_obj,
(mp_obj_t)&audiodelays_pitch_shift_get_playing_obj);


//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> None:
//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> PitchShift:
//| """Plays the sample once when loop=False and continuously when loop=True.
//| Does not block. Use `playing` to block.
//|
Expand All @@ -211,7 +211,7 @@ static mp_obj_t audiodelays_pitch_shift_obj_play(size_t n_args, const mp_obj_t *
mp_obj_t sample = args[ARG_sample].u_obj;
common_hal_audiodelays_pitch_shift_play(self, sample, args[ARG_loop].u_bool);

return mp_const_none;
return pos_args[0];
}
MP_DEFINE_CONST_FUN_OBJ_KW(audiodelays_pitch_shift_play_obj, 1, audiodelays_pitch_shift_obj_play);

Expand Down
4 changes: 2 additions & 2 deletions shared-bindings/audiofilters/Distortion.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(audiofilters_distortion_get_playing_obj, audiofilters_
MP_PROPERTY_GETTER(audiofilters_distortion_playing_obj,
(mp_obj_t)&audiofilters_distortion_get_playing_obj);

//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> None:
//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> Distortion:
//| """Plays the sample once when loop=False and continuously when loop=True.
//| Does not block. Use `playing` to block.
//|
Expand All @@ -331,7 +331,7 @@ static mp_obj_t audiofilters_distortion_obj_play(size_t n_args, const mp_obj_t *
mp_obj_t sample = args[ARG_sample].u_obj;
common_hal_audiofilters_distortion_play(self, sample, args[ARG_loop].u_bool);

return mp_const_none;
return pos_args[0];
}
MP_DEFINE_CONST_FUN_OBJ_KW(audiofilters_distortion_play_obj, 1, audiofilters_distortion_obj_play);

Expand Down
4 changes: 2 additions & 2 deletions shared-bindings/audiofilters/Filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(audiofilters_filter_get_playing_obj, audiofilters_filt
MP_PROPERTY_GETTER(audiofilters_filter_playing_obj,
(mp_obj_t)&audiofilters_filter_get_playing_obj);

//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> None:
//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> Filter:
//| """Plays the sample once when loop=False and continuously when loop=True.
//| Does not block. Use `playing` to block.
//|
Expand All @@ -201,7 +201,7 @@ static mp_obj_t audiofilters_filter_obj_play(size_t n_args, const mp_obj_t *pos_
mp_obj_t sample = args[ARG_sample].u_obj;
common_hal_audiofilters_filter_play(self, sample, args[ARG_loop].u_bool);

return mp_const_none;
return pos_args[0];
}
MP_DEFINE_CONST_FUN_OBJ_KW(audiofilters_filter_play_obj, 1, audiofilters_filter_obj_play);

Expand Down
4 changes: 2 additions & 2 deletions shared-bindings/audiofilters/Phaser.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(audiofilters_phaser_get_playing_obj, audiofilters_phas
MP_PROPERTY_GETTER(audiofilters_phaser_playing_obj,
(mp_obj_t)&audiofilters_phaser_get_playing_obj);

//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> None:
//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> Phaser:
//| """Plays the sample once when loop=False and continuously when loop=True.
//| Does not block. Use `playing` to block.
//|
Expand All @@ -236,7 +236,7 @@ static mp_obj_t audiofilters_phaser_obj_play(size_t n_args, const mp_obj_t *pos_
mp_obj_t sample = args[ARG_sample].u_obj;
common_hal_audiofilters_phaser_play(self, sample, args[ARG_loop].u_bool);

return mp_const_none;
return pos_args[0];
}
MP_DEFINE_CONST_FUN_OBJ_KW(audiofilters_phaser_play_obj, 1, audiofilters_phaser_obj_play);

Expand Down
4 changes: 2 additions & 2 deletions shared-bindings/audiofreeverb/Freeverb.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(audiofreeverb_freeverb_get_playing_obj, audiofreeverb_
MP_PROPERTY_GETTER(audiofreeverb_freeverb_playing_obj,
(mp_obj_t)&audiofreeverb_freeverb_get_playing_obj);

//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> None:
//| def play(self, sample: circuitpython_typing.AudioSample, *, loop: bool = False) -> Freeverb:
//| """Plays the sample once when loop=False and continuously when loop=True.
//| Does not block. Use `playing` to block.
//|
Expand All @@ -218,7 +218,7 @@ static mp_obj_t audiofreeverb_freeverb_obj_play(size_t n_args, const mp_obj_t *p
mp_obj_t sample = args[ARG_sample].u_obj;
common_hal_audiofreeverb_freeverb_play(self, sample, args[ARG_loop].u_bool);

return mp_const_none;
return pos_args[0];
}
MP_DEFINE_CONST_FUN_OBJ_KW(audiofreeverb_freeverb_play_obj, 1, audiofreeverb_freeverb_obj_play);

Expand Down
4 changes: 2 additions & 2 deletions shared-bindings/audiomixer/Mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ MP_PROPERTY_GETTER(audiomixer_mixer_voice_obj,

//| def play(
//| self, sample: circuitpython_typing.AudioSample, *, voice: int = 0, loop: bool = False
//| ) -> None:
//| ) -> Mixer:
//| """Plays the sample once when loop=False and continuously when loop=True.
//| Does not block. Use `playing` to block.
//|
Expand Down Expand Up @@ -189,7 +189,7 @@ static mp_obj_t audiomixer_mixer_obj_play(size_t n_args, const mp_obj_t *pos_arg
mp_obj_t sample = args[ARG_sample].u_obj;
common_hal_audiomixer_mixervoice_play(voice, sample, args[ARG_loop].u_bool);

return mp_const_none;
return pos_args[0];
}
MP_DEFINE_CONST_FUN_OBJ_KW(audiomixer_mixer_play_obj, 1, audiomixer_mixer_obj_play);

Expand Down