stop background before foreground (#2174)
This commit is contained in:
1 parent
3b4c5a2fcb
commit
8389e735fa
1 file changed
+2
-2
+2
-2
@@ -371,10 +371,10 @@ namespace music {
|
||||
//% blockId=device_stop_melody block="stop melody $options"
|
||||
//% parts="headphone"
|
||||
export function stopMelody(options: MelodyStopOptions) {
|
||||
if (options & MelodyStopOptions.Foreground)
|
||||
beginMelody([], MelodyOptions.Once);
|
||||
if (options & MelodyStopOptions.Background)
|
||||
beginMelody([], MelodyOptions.OnceInBackground);
|
||||
if (options & MelodyStopOptions.Foreground)
|
||||
beginMelody([], MelodyOptions.Once);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user