File tree Expand file tree Collapse file tree 9 files changed +45
-9
lines changed Expand file tree Collapse file tree 9 files changed +45
-9
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,11 @@ MP_PROPERTY_GETTER(audiodelays_chorus_playing_obj,
210
210
//| """Plays the sample once when loop=False and continuously when loop=True.
211
211
//| Does not block. Use `playing` to block.
212
212
//|
213
- //| The sample must match the encoding settings given in the constructor."""
213
+ //| The sample must match the encoding settings given in the constructor.
214
+ //|
215
+ //| :return: The effect object itself. Can be used for chaining, ie:
216
+ //| ``audio.play(effect.play(sample))``.
217
+ //| :rtype: Chorus"""
214
218
//| ...
215
219
//|
216
220
static mp_obj_t audiodelays_chorus_obj_play (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
Original file line number Diff line number Diff line change @@ -234,7 +234,11 @@ MP_PROPERTY_GETTER(audiodelays_echo_playing_obj,
234
234
//| """Plays the sample once when loop=False and continuously when loop=True.
235
235
//| Does not block. Use `playing` to block.
236
236
//|
237
- //| The sample must match the encoding settings given in the constructor."""
237
+ //| The sample must match the encoding settings given in the constructor.
238
+ //|
239
+ //| :return: The effect object itself. Can be used for chaining, ie:
240
+ //| ``audio.play(effect.play(sample))``.
241
+ //| :rtype: Echo"""
238
242
//| ...
239
243
//|
240
244
static mp_obj_t audiodelays_echo_obj_play (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
Original file line number Diff line number Diff line change @@ -237,7 +237,11 @@ MP_PROPERTY_GETTER(audiodelays_multi_tap_delay_playing_obj,
237
237
//| """Plays the sample once when loop=False and continuously when loop=True.
238
238
//| Does not block. Use `playing` to block.
239
239
//|
240
- //| The sample must match the encoding settings given in the constructor."""
240
+ //| The sample must match the encoding settings given in the constructor.
241
+ //|
242
+ //| :return: The effect object itself. Can be used for chaining, ie:
243
+ //| ``audio.play(effect.play(sample))``.
244
+ //| :rtype: MultiTapDelay"""
241
245
//| ...
242
246
//|
243
247
static mp_obj_t audiodelays_multi_tap_delay_obj_play (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
Original file line number Diff line number Diff line change @@ -194,7 +194,11 @@ MP_PROPERTY_GETTER(audiodelays_pitch_shift_playing_obj,
194
194
//| """Plays the sample once when loop=False and continuously when loop=True.
195
195
//| Does not block. Use `playing` to block.
196
196
//|
197
- //| The sample must match the encoding settings given in the constructor."""
197
+ //| The sample must match the encoding settings given in the constructor.
198
+ //|
199
+ //| :return: The effect object itself. Can be used for chaining, ie:
200
+ //| ``audio.play(effect.play(sample))``.
201
+ //| :rtype: PitchShift"""
198
202
//| ...
199
203
//|
200
204
static mp_obj_t audiodelays_pitch_shift_obj_play (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
Original file line number Diff line number Diff line change @@ -313,7 +313,11 @@ MP_PROPERTY_GETTER(audiofilters_distortion_playing_obj,
313
313
//| """Plays the sample once when loop=False and continuously when loop=True.
314
314
//| Does not block. Use `playing` to block.
315
315
//|
316
- //| The sample must match the encoding settings given in the constructor."""
316
+ //| The sample must match the encoding settings given in the constructor.
317
+ //|
318
+ //| :return: The effect object itself. Can be used for chaining, ie:
319
+ //| ``audio.play(effect.play(sample))``.
320
+ //| :rtype: Distortion"""
317
321
//| ...
318
322
//|
319
323
static mp_obj_t audiofilters_distortion_obj_play (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
Original file line number Diff line number Diff line change @@ -183,7 +183,11 @@ MP_PROPERTY_GETTER(audiofilters_filter_playing_obj,
183
183
//| """Plays the sample once when loop=False and continuously when loop=True.
184
184
//| Does not block. Use `playing` to block.
185
185
//|
186
- //| The sample must match the encoding settings given in the constructor."""
186
+ //| The sample must match the encoding settings given in the constructor.
187
+ //|
188
+ //| :return: The effect object itself. Can be used for chaining, ie:
189
+ //| ``audio.play(effect.play(sample))``.
190
+ //| :rtype: Filter"""
187
191
//| ...
188
192
//|
189
193
static mp_obj_t audiofilters_filter_obj_play (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
Original file line number Diff line number Diff line change @@ -218,7 +218,11 @@ MP_PROPERTY_GETTER(audiofilters_phaser_playing_obj,
218
218
//| """Plays the sample once when loop=False and continuously when loop=True.
219
219
//| Does not block. Use `playing` to block.
220
220
//|
221
- //| The sample must match the encoding settings given in the constructor."""
221
+ //| The sample must match the encoding settings given in the constructor.
222
+ //|
223
+ //| :return: The effect object itself. Can be used for chaining, ie:
224
+ //| ``audio.play(effect.play(sample))``.
225
+ //| :rtype: Phaser"""
222
226
//| ...
223
227
//|
224
228
static mp_obj_t audiofilters_phaser_obj_play (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
Original file line number Diff line number Diff line change @@ -200,7 +200,11 @@ MP_PROPERTY_GETTER(audiofreeverb_freeverb_playing_obj,
200
200
//| """Plays the sample once when loop=False and continuously when loop=True.
201
201
//| Does not block. Use `playing` to block.
202
202
//|
203
- //| The sample must match the encoding settings given in the constructor."""
203
+ //| The sample must match the encoding settings given in the constructor.
204
+ //|
205
+ //| :return: The effect object itself. Can be used for chaining, ie:
206
+ //| ``audio.play(effect.play(sample))``.
207
+ //| :rtype: Freeverb"""
204
208
//| ...
205
209
//|
206
210
static mp_obj_t audiofreeverb_freeverb_obj_play (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
Original file line number Diff line number Diff line change @@ -166,7 +166,11 @@ MP_PROPERTY_GETTER(audiomixer_mixer_voice_obj,
166
166
//|
167
167
//| Sample must be an `audiocore.WaveFile`, `audiocore.RawSample`, `audiomixer.Mixer` or `audiomp3.MP3Decoder`.
168
168
//|
169
- //| The sample must match the Mixer's encoding settings given in the constructor."""
169
+ //| The sample must match the Mixer's encoding settings given in the constructor.
170
+ //|
171
+ //| :return: The mixer object itself. Can be used for chaining, ie:
172
+ //| ``audio.play(mixer.play(sample))``.
173
+ //| :rtype: Chorus"""
170
174
//| ...
171
175
//|
172
176
static mp_obj_t audiomixer_mixer_obj_play (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
You can’t perform that action at this time.
0 commit comments