Update function names for consistency
This commit is contained in:
parent
d436bd1227
commit
a02f364a4c
@ -166,12 +166,12 @@ void playTone(int frequency, int ms) {
|
||||
/**
|
||||
* Play a tone through the speaker for some amount of time.
|
||||
*/
|
||||
//% help=music/stop-sound
|
||||
//% blockId=music_stop_sounds block="stop all sounds"
|
||||
//% help=music/stop-all-sounds
|
||||
//% blockId=music_stop_all_sounds block="stop all sounds"
|
||||
//% parts="headphone"
|
||||
//% blockNamespace=music
|
||||
//% weight=76 blockGap=8
|
||||
void stopSounds() {
|
||||
void stopAllSounds() {
|
||||
if (currentSample) {
|
||||
samplePtr = currentSample->length;
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ namespace pxsim.music {
|
||||
return incr(buf)
|
||||
}
|
||||
|
||||
export function stopSounds() {
|
||||
export function stopAllSounds() {
|
||||
SoundMethods.stop()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user