Skip to content

Commit 70c57d7

Browse files
Use the current HAL parameter name consistently.
1 parent fde093a commit 70c57d7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/board/audio/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export class Audio {
5959
);
6060
}
6161

62-
playSoundExpression(expression: string) {
63-
const soundEffects = parseSoundEffects(replaceBuiltinSound(expression));
62+
playSoundExpression(expr: string) {
63+
const soundEffects = parseSoundEffects(replaceBuiltinSound(expr));
6464
const onDone = () => {
6565
this.stopSoundExpression();
6666
};

src/jshal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ mergeInto(LibraryManager.library, {
216216
return board.microphone.soundLevel.value;
217217
},
218218

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));
221221
},
222222

223223
mp_js_hal_audio_stop_expression: function () {

src/microbithal_js.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ bool microbit_hal_audio_is_expression_active(void) {
451451
return mp_js_hal_audio_is_expression_active();
452452
}
453453

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);
456456
}
457457

458458
void microbit_hal_audio_stop_expression(void) {

0 commit comments

Comments
 (0)