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.
|
* Play a tone through the speaker for some amount of time.
|
||||||
*/
|
*/
|
||||||
//% help=music/stop-sound
|
//% help=music/stop-all-sounds
|
||||||
//% blockId=music_stop_sounds block="stop all sounds"
|
//% blockId=music_stop_all_sounds block="stop all sounds"
|
||||||
//% parts="headphone"
|
//% parts="headphone"
|
||||||
//% blockNamespace=music
|
//% blockNamespace=music
|
||||||
//% weight=76 blockGap=8
|
//% weight=76 blockGap=8
|
||||||
void stopSounds() {
|
void stopAllSounds() {
|
||||||
if (currentSample) {
|
if (currentSample) {
|
||||||
samplePtr = currentSample->length;
|
samplePtr = currentSample->length;
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ namespace pxsim.music {
|
|||||||
return incr(buf)
|
return incr(buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function stopSounds() {
|
export function stopAllSounds() {
|
||||||
SoundMethods.stop()
|
SoundMethods.stop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user