File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ export class Audio {
59
59
) ;
60
60
}
61
61
62
- playSoundExpression ( expression : string ) {
63
- const soundEffects = parseSoundEffects ( replaceBuiltinSound ( expression ) ) ;
62
+ playSoundExpression ( expr : string ) {
63
+ const soundEffects = parseSoundEffects ( replaceBuiltinSound ( expr ) ) ;
64
64
const onDone = ( ) => {
65
65
this . stopSoundExpression ( ) ;
66
66
} ;
Original file line number Diff line number Diff line change @@ -216,8 +216,8 @@ mergeInto(LibraryManager.library, {
216
216
return board . microphone . soundLevel . value ;
217
217
} ,
218
218
219
- mp_js_hal_audio_play_expression : function ( data ) {
220
- return board . audio . playSoundExpression ( UTF8ToString ( data ) ) ;
219
+ mp_js_hal_audio_play_expression : function ( expr ) {
220
+ return board . audio . playSoundExpression ( UTF8ToString ( expr ) ) ;
221
221
} ,
222
222
223
223
mp_js_hal_audio_stop_expression : function ( ) {
Original file line number Diff line number Diff line change @@ -451,8 +451,8 @@ bool microbit_hal_audio_is_expression_active(void) {
451
451
return mp_js_hal_audio_is_expression_active ();
452
452
}
453
453
454
- void microbit_hal_audio_play_expression (const char * name ) {
455
- mp_js_hal_audio_play_expression (name );
454
+ void microbit_hal_audio_play_expression (const char * expr ) {
455
+ mp_js_hal_audio_play_expression (expr );
456
456
}
457
457
458
458
void microbit_hal_audio_stop_expression (void ) {
You can’t perform that action at this time.
0 commit comments