pxt-ev3/libs/music/sounds.ts

303 lines
15 KiB
TypeScript
Raw Permalink Normal View History

2017-10-30 18:25:58 +01:00
namespace sounds {
//% fixedInstance jres block="animals cat purr"
2017-10-30 18:25:58 +01:00
export const animalsCatPurr = music.fromWAV(hex``);
//% fixedInstance jres block="animals dog bark 1"
2017-10-30 18:25:58 +01:00
export const animalsDogBark1 = music.fromWAV(hex``);
//% fixedInstance jres block="animals dog bark 2"
2017-10-30 18:25:58 +01:00
export const animalsDogBark2 = music.fromWAV(hex``);
//% fixedInstance jres block="animals dog growl"
2017-10-30 18:25:58 +01:00
export const animalsDogGrowl = music.fromWAV(hex``);
//% fixedInstance jres block="animals dog sniff"
2017-10-30 18:25:58 +01:00
export const animalsDogSniff = music.fromWAV(hex``);
//% fixedInstance jres block="animals dog whine"
2017-10-30 18:25:58 +01:00
export const animalsDogWhine = music.fromWAV(hex``);
//% fixedInstance jres block="animals elephant call"
2017-10-30 18:25:58 +01:00
export const animalsElephantCall = music.fromWAV(hex``);
//% fixedInstance jres block="animals insect buzz1"
2017-10-30 18:25:58 +01:00
export const animalsInsectBuzz1 = music.fromWAV(hex``);
//% fixedInstance jres block="animals insect buzz2"
2017-10-30 18:25:58 +01:00
export const animalsInsectBuzz2 = music.fromWAV(hex``);
//% fixedInstance jres block="animals insect chirp"
2017-10-30 18:25:58 +01:00
export const animalsInsectChirp = music.fromWAV(hex``);
//% fixedInstance jres block="animals snake hiss"
2017-10-30 18:25:58 +01:00
export const animalsSnakeHiss = music.fromWAV(hex``);
//% fixedInstance jres block="animals snake rattle"
2017-10-30 18:25:58 +01:00
export const animalsSnakeRattle = music.fromWAV(hex``);
//% fixedInstance jres block="animals trex roar"
2017-10-30 18:25:58 +01:00
export const animalsTRexRoar = music.fromWAV(hex``);
//% fixedInstance jres block="colors black"
2017-10-30 18:25:58 +01:00
export const colorsBlack = music.fromWAV(hex``);
//% fixedInstance jres block="colors blue"
2017-10-30 18:25:58 +01:00
export const colorsBlue = music.fromWAV(hex``);
//% fixedInstance jres block="colors brown"
2017-10-30 18:25:58 +01:00
export const colorsBrown = music.fromWAV(hex``);
//% fixedInstance jres block="colors green"
2017-10-30 18:25:58 +01:00
export const colorsGreen = music.fromWAV(hex``);
//% fixedInstance jres block="colors red"
2017-10-30 18:25:58 +01:00
export const colorsRed = music.fromWAV(hex``);
//% fixedInstance jres block="colors white"
2017-10-30 18:25:58 +01:00
export const colorsWhite = music.fromWAV(hex``);
//% fixedInstance jres block="colors yellow"
2017-10-30 18:25:58 +01:00
export const colorsYellow = music.fromWAV(hex``);
//% fixedInstance jres block="communication bravo"
2017-10-30 18:25:58 +01:00
export const communicationBravo = music.fromWAV(hex``);
//% fixedInstance jres block="communication ev3"
2017-10-30 18:25:58 +01:00
export const communicationEv3 = music.fromWAV(hex``);
//% fixedInstance jres block="communication fantastic"
2017-10-30 18:25:58 +01:00
export const communicationFantastic = music.fromWAV(hex``);
//% fixedInstance jres block="communication game over"
2017-10-30 18:25:58 +01:00
export const communicationGameOver = music.fromWAV(hex``);
//% fixedInstance jres block="communication go"
2017-10-30 18:25:58 +01:00
export const communicationGo = music.fromWAV(hex``);
//% fixedInstance jres block="communication good job"
2017-10-30 18:25:58 +01:00
export const communicationGoodJob = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication good"
2017-10-30 18:25:58 +01:00
export const communicationGood = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication goodbye"
2017-10-30 18:25:58 +01:00
export const communicationGoodbye = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication hello"
2017-10-30 18:25:58 +01:00
export const communicationHello = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication hi"
2017-10-30 18:25:58 +01:00
export const communicationHi = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication lego"
2017-10-30 18:25:58 +01:00
export const communicationLego = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication mindstorms"
2017-10-30 18:25:58 +01:00
export const communicationMindstorms = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication morning"
2017-10-30 18:25:58 +01:00
export const communicationMorning = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication no"
2017-10-30 18:25:58 +01:00
export const communicationNo = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication okay"
2017-10-30 18:25:58 +01:00
export const communicationOkay = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication okey dokey"
2017-10-30 18:25:58 +01:00
export const communicationOkeyDokey = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication sorry"
2017-10-30 18:25:58 +01:00
export const communicationSorry = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication thank you"
2017-10-30 18:25:58 +01:00
export const communicationThankYou = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="communication yes"
2017-10-30 18:25:58 +01:00
export const communicationYes = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions boing"
2017-10-30 18:25:58 +01:00
export const expressionsBoing = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions boo"
2017-10-30 18:25:58 +01:00
export const expressionsBoo = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions cheering"
2017-10-30 18:25:58 +01:00
export const expressionsCheering = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions crunching"
2017-10-30 18:25:58 +01:00
export const expressionsCrunching = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions crying"
2017-10-30 18:25:58 +01:00
export const expressionsCrying = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions fanfare"
2017-10-30 18:25:58 +01:00
export const expressionsFanfare = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions kung fu"
2017-10-30 18:25:58 +01:00
export const expressionsKungFu = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions laughing1"
2017-10-30 18:25:58 +01:00
export const expressionsLaughing1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions laughing2"
2017-10-30 18:25:58 +01:00
export const expressionsLaughing2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions magic wand"
2017-10-30 18:25:58 +01:00
export const expressionsMagicWand = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions ouch"
2017-10-30 18:25:58 +01:00
export const expressionsOuch = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions shouting"
2017-10-30 18:25:58 +01:00
export const expressionsShouting = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions smack"
2017-10-30 18:25:58 +01:00
export const expressionsSmack = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions sneezing"
2017-10-30 18:25:58 +01:00
export const expressionsSneezing = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions snoring"
2017-10-30 18:25:58 +01:00
export const expressionsSnoring = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="expressions uh oh"
2017-10-30 18:25:58 +01:00
export const expressionsUhOh = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information activate"
2017-10-30 18:25:58 +01:00
export const informationActivate = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information analyze"
2017-10-30 18:25:58 +01:00
export const informationAnalyze = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information backwards"
2017-10-30 18:25:58 +01:00
export const informationBackwards = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information color"
2017-10-30 18:25:58 +01:00
export const informationColor = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information detected"
2017-10-30 18:25:58 +01:00
export const informationDetected = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information down"
2017-10-30 18:25:58 +01:00
export const informationDown = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information error alarm"
2017-10-30 18:25:58 +01:00
export const informationErrorAlarm = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information error"
2017-10-30 18:25:58 +01:00
export const informationError = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information flashing"
2017-10-30 18:25:58 +01:00
export const informationFlashing = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information forward"
2017-10-30 18:25:58 +01:00
export const informationForward = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information left"
2017-10-30 18:25:58 +01:00
export const informationLeft = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information object"
2017-10-30 18:25:58 +01:00
export const informationObject = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information right"
2017-10-30 18:25:58 +01:00
export const informationRight = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information searching"
2017-10-30 18:25:58 +01:00
export const informationSearching = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information start"
2017-10-30 18:25:58 +01:00
export const informationStart = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information stop"
2017-10-30 18:25:58 +01:00
export const informationStop = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information touch"
2017-10-30 18:25:58 +01:00
export const informationTouch = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information turn"
2017-10-30 18:25:58 +01:00
export const informationTurn = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="information up"
2017-10-30 18:25:58 +01:00
export const informationUp = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical air release"
2017-10-30 18:25:58 +01:00
export const mechanicalAirRelease = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical airbrake"
2017-10-30 18:25:58 +01:00
export const mechanicalAirbrake = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical backing alert"
2017-10-30 18:25:58 +01:00
export const mechanicalBackingAlert = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical blip1"
2017-10-30 18:25:58 +01:00
export const mechanicalBlip1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical blip2"
2017-10-30 18:25:58 +01:00
export const mechanicalBlip2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical blip3"
2017-10-30 18:25:58 +01:00
export const mechanicalBlip3 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical blip4"
2017-10-30 18:25:58 +01:00
export const mechanicalBlip4 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical horn1"
2017-10-30 18:25:58 +01:00
export const mechanicalHorn1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical horn2"
2017-10-30 18:25:58 +01:00
export const mechanicalHorn2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical laser"
2017-10-30 18:25:58 +01:00
export const mechanicalLaser = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical motor idle"
2017-10-30 18:25:58 +01:00
export const mechanicalMotorIdle = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical motor start"
2017-10-30 18:25:58 +01:00
export const mechanicalMotorStart = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical motor stop"
2017-10-30 18:25:58 +01:00
export const mechanicalMotorStop = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical ratchet"
2017-10-30 18:25:58 +01:00
export const mechanicalRatchet = music.fromWAV(hex``);
2018-01-15 04:49:40 +01:00
//% fixedInstance jres block="mechanical sonar"
2017-10-30 18:25:58 +01:00
export const mechanicalSonar = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical tick tack"
2017-10-30 18:25:58 +01:00
export const mechanicalTickTack = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="mechanical walk"
2017-10-30 18:25:58 +01:00
export const mechanicalWalk = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements arm1"
2017-10-30 18:25:58 +01:00
export const movementsArm1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements arm2"
2017-10-30 18:25:58 +01:00
export const movementsArm2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements arm3"
2017-10-30 18:25:58 +01:00
export const movementsArm3 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements arm4"
2017-10-30 18:25:58 +01:00
export const movementsArm4 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements drop load"
2017-10-30 18:25:58 +01:00
export const movementsDropLoad = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements lift load"
2017-10-30 18:25:58 +01:00
export const movementsLiftLoad = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements servo1"
2017-10-30 18:25:58 +01:00
export const movementsServo1 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements servo2"
2017-10-30 18:25:58 +01:00
export const movementsServo2 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements servo3"
2017-10-30 18:25:58 +01:00
export const movementsServo3 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements servo4"
2017-10-30 18:25:58 +01:00
export const movementsServo4 = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements slide load"
2017-10-30 18:25:58 +01:00
export const movementsSlideLoad = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements snap"
2017-10-30 18:25:58 +01:00
export const movementsSnap = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements speed down"
2017-10-30 18:25:58 +01:00
export const movementsSpeedDown = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements speed idle"
2017-10-30 18:25:58 +01:00
export const movementsSpeedIdle = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements speed up"
2017-10-30 18:25:58 +01:00
export const movementsSpeedUp = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="movements speeding"
2017-10-30 18:25:58 +01:00
export const movementsSpeeding = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers eight"
2017-10-30 18:25:58 +01:00
export const numbersEight = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers five"
2017-10-30 18:25:58 +01:00
export const numbersFive = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers four"
2017-10-30 18:25:58 +01:00
export const numbersFour = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers nine"
2017-10-30 18:25:58 +01:00
export const numbersNine = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers one"
2017-10-30 18:25:58 +01:00
export const numbersOne = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers seven"
2017-10-30 18:25:58 +01:00
export const numbersSeven = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers six"
2017-10-30 18:25:58 +01:00
export const numbersSix = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers ten"
2017-10-30 18:25:58 +01:00
export const numbersTen = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers three"
2017-10-30 18:25:58 +01:00
export const numbersThree = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers two"
2017-10-30 18:25:58 +01:00
export const numbersTwo = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="numbers zero"
2017-10-30 18:25:58 +01:00
export const numbersZero = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system click"
2017-10-30 18:25:58 +01:00
export const systemClick = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system confirm"
2017-10-30 18:25:58 +01:00
export const systemConfirm = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system connect"
2017-10-30 18:25:58 +01:00
export const systemConnect = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system download"
2017-10-30 18:25:58 +01:00
export const systemDownload = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system general alert"
2017-10-30 18:25:58 +01:00
export const systemGeneralAlert = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system overpower"
2017-10-30 18:25:58 +01:00
export const systemOverpower = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system power down"
2017-10-30 18:25:58 +01:00
export const systemPowerDown = music.fromWAV(hex``);
2017-11-17 08:28:44 +01:00
//% fixedInstance jres block="system ready"
2017-10-30 18:25:58 +01:00
export const systemReady = music.fromWAV(hex``);
//% fixedInstance jres block="system start up"
2017-10-30 18:25:58 +01:00
export const systemStartUp = music.fromWAV(hex``);
}
2017-11-17 08:28:44 +01:00
namespace music {
2017-12-07 20:27:29 +01:00
let numSoundsPlaying = 0;
2017-12-08 01:27:28 +01:00
const soundsLimit = 1;
2017-12-07 20:27:29 +01:00
2017-11-17 08:28:44 +01:00
/**
* Play a sound and wait until it finishes
2017-11-17 08:28:44 +01:00
* @param sound the sound to play
*/
//% blockId=music_play_sound_effect_until_done block="play sound effect %sound=music_sound_picker|until done"
//% weight=98 blockGap=8
//% help=music/play-sound-effect-until-done
2017-12-01 18:59:59 +01:00
export function playSoundEffectUntilDone(sound: Sound) {
2018-01-04 21:20:31 +01:00
if (!sound || numSoundsPlaying >= soundsLimit) return;
numSoundsPlaying++;
2017-11-17 08:28:44 +01:00
sound.play();
2018-01-04 21:20:31 +01:00
numSoundsPlaying--;
2017-11-17 08:28:44 +01:00
}
/**
* A sound
* @param sound the sound
*/
//% blockId=music_sound_picker block="%sound" shim=TD_ID
//% sound.fieldEditor="music"
2017-11-17 08:28:44 +01:00
//% weight=0 blockHidden=1
export function __soundPicker(sound: Sound): Sound {
2017-11-17 08:28:44 +01:00
return sound;
}
/**
* Start playing a sound and don't wait for it to finish.
* @param sound the sound to play
*/
//% blockId=music_play_sound_effect block="play sound effect %sound=music_sound_picker"
//% weight=99 blockGap=8
//% help=music/play-sound-effect
2017-12-01 18:59:59 +01:00
export function playSoundEffect(sound: Sound) {
2017-12-07 20:27:29 +01:00
if (!sound || numSoundsPlaying >= soundsLimit) return;
numSoundsPlaying++;
2018-01-23 23:52:41 +01:00
control.runInParallel(() => {
sound.play();
numSoundsPlaying--;
});
}
2017-11-17 08:28:44 +01:00
}