Update function names for consistency

This commit is contained in:
Caitlin Hennessy 2017-12-15 10:42:44 -08:00
parent d436bd1227
commit a02f364a4c
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -4,7 +4,7 @@ namespace pxsim.music {
return incr(buf)
}
export function stopSounds() {
export function stopAllSounds() {
SoundMethods.stop()
}
}