Progress
This commit is contained in:
1 parent
2d81be3b24
commit
cb648019bb
3 files changed
+8
-3
No files matched your search
@@ -168,10 +168,13 @@ void playTone(int frequency, int ms) {
|
||||
*/
|
||||
//% help=music/stop-sound
|
||||
//% blockId=music_stop_sounds block="stop all sounds"
|
||||
//% parts="headphone" async
|
||||
//% parts="headphone"
|
||||
//% blockNamespace=music
|
||||
//% weight=76 blockGap=8
|
||||
void stopSounds() {
|
||||
if (currentSample) {
|
||||
samplePtr = currentSample->length;
|
||||
}
|
||||
_stopSound();
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -30,7 +30,7 @@ declare namespace music {
|
||||
*/
|
||||
//% help=music/stop-sound
|
||||
//% blockId=music_stop_sounds block="stop all sounds"
|
||||
//% parts="headphone" async
|
||||
//% parts="headphone"
|
||||
//% blockNamespace=music
|
||||
//% weight=76 blockGap=8 shim=music::stopSounds
|
||||
function stopSounds(): void;
|
||||
|
||||
Reference in new issue
Block a user