diff --git a/js/balloons-and-static-electricity/view/BalloonNode.js b/js/balloons-and-static-electricity/view/BalloonNode.js index 79bced06..94171256 100644 --- a/js/balloons-and-static-electricity/view/BalloonNode.js +++ b/js/balloons-and-static-electricity/view/BalloonNode.js @@ -28,14 +28,8 @@ import Rectangle from '../../../../scenery/js/nodes/Rectangle.js'; import SoundClip from '../../../../tambo/js/sound-generators/SoundClip.js'; import soundManager from '../../../../tambo/js/soundManager.js'; import Utterance from '../../../../utterance-queue/js/Utterance.js'; -import grabBalloonSound from '../../../sounds/balloon-grab-002_mp3.js'; -// import grabBalloonSound from '../../../sounds/balloon-grab-003_mp3.js'; -// import grabBalloonSound from '../../../sounds/balloon-grab-004_mp3.js'; -// import grabBalloonSound from '../../../sounds/balloon-grab-005_mp3.js'; -import releaseBalloonSound from '../../../sounds/balloon-release-002_mp3.js'; -// import releaseBalloonSound from '../../../sounds/balloon-release-003_mp3.js'; -// import releaseBalloonSound from '../../../sounds/balloon-release-004_mp3.js'; -// import releaseBalloonSound from '../../../sounds/balloon-release-005_mp3.js'; +import grabBalloonSound from '../../../sounds/balloon-grab-004_mp3.js'; +import releaseBalloonSound from '../../../sounds/balloon-release-004_mp3.js'; import balloonsAndStaticElectricity from '../../balloonsAndStaticElectricity.js'; import BASEA11yStrings from '../BASEA11yStrings.js'; import BASEQueryParameters from '../BASEQueryParameters.js'; @@ -53,7 +47,7 @@ const X_POSITIONS = PlayAreaMap.X_POSITIONS; // constants const grabBalloonKeyboardHelpString = BASEA11yStrings.grabBalloonKeyboardHelp.value; -const GRAB_RELEASE_SOUND_LEVEL = 0.2; // empirically determined +const GRAB_RELEASE_SOUND_LEVEL = 0.1; // empirically determined class BalloonNode extends Node { diff --git a/sounds/balloon-grab-002.mp3 b/sounds/balloon-grab-002.mp3 deleted file mode 100644 index baec6c8b..00000000 Binary files a/sounds/balloon-grab-002.mp3 and /dev/null differ diff --git a/sounds/balloon-grab-002_mp3.js b/sounds/balloon-grab-002_mp3.js deleted file mode 100644 index 50cc605b..00000000 --- a/sounds/balloon-grab-002_mp3.js +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-disable */ -import asyncLoader from '../../phet-core/js/asyncLoader.js'; -import base64SoundToByteArray from '../../tambo/js/base64SoundToByteArray.js'; -import WrappedAudioBuffer from '../../tambo/js/WrappedAudioBuffer.js'; -import phetAudioContext from '../../tambo/js/phetAudioContext.js'; - -const soundURI = 'data:audio/mpeg;base64,//swxAAABEwXPVQxgBFvk63zHsAAUAEJIkqUB+F1zgcWH4IYIYP8ocWD6g/y5/+nwQ/3/D/5c/ACAAESiQAAAghsBFZ5VLBGRRsUYr4jabL4hAL4xRYl2vXgfPAid9YsonPlaaPpyh66qktJ17t/mlHcdWxqmlziH2zMy7E1MP356DIkaBi1oS0x5QXSAFJ7vX9j1ZYeDvEu2uqs//syxAQACAylXhmFAAEjD+p3HpAAFUABrozdqZNQQVWPwdXhkG0JTS0EIRR5XfECeQhen+mKosiCKFzqfxVc0w0pX/xaQ4hae/UFVuLAAAACMfaIVhoIBEAAADtFPTgh2OXhds+/0C2Yl/EwBESv4WDzRBRF9p5QqruxW//A1N7LONRvP//WsqFgEPdoGBFGg92TiyzUqoawcA0s7f/7MsQDAAhUo1e49AABEBNxtx6wAgYAgGQAAAADkcYlzoEYj7ktmx+IyLXXm5H54eDEnURiQDlh2L3dXb95xk2RHMXO2WiTafaz1SH9G0Z98SBwN2SyCSx6IJBoAAAAf/OR3/3T8ZGZulzkQoL8n4zQKh3frQTDeyG3x5oUGRqOo0NWMqN/Rumy4tv//Xs7RlZzvvWWVW22wi3DaUz/+zLEA4AIYFN/uJSAAKGMJqeEMAagCChKLwAOJOJvEnRCEY9IESwflIXTSZ8oxwNOO7WzlfT00kdOmAiZMndRMcgOH36yoRkXO/La/6t2pBIpaa25LDerUNAgIVLQxMx6lsWzMeq6iS26phQE6DT+JTqMS9bv93X9SkxBTUUzLjk5LjWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq'; -const soundByteArray = base64SoundToByteArray( phetAudioContext, soundURI ); -const unlock = asyncLoader.createLock( soundURI ); -const wrappedAudioBuffer = new WrappedAudioBuffer(); -const onDecodeSuccess = decodedAudio => { - wrappedAudioBuffer.audioBufferProperty.set( decodedAudio ); - unlock(); -}; -const onDecodeError = decodeError => { - console.warn( 'decode of audio data failed, using stubbed sound, error: ' + decodeError ); - wrappedAudioBuffer.audioBufferProperty.set( phetAudioContext.createBuffer( 1, 0, phetAudioContext.sampleRate ) ); - unlock(); -}; -phetAudioContext.decodeAudioData( soundByteArray.buffer, onDecodeSuccess, onDecodeError ); -export default wrappedAudioBuffer; \ No newline at end of file diff --git a/sounds/balloon-grab-003.mp3 b/sounds/balloon-grab-003.mp3 deleted file mode 100644 index f002f56e..00000000 Binary files a/sounds/balloon-grab-003.mp3 and /dev/null differ diff --git a/sounds/balloon-grab-003_mp3.js b/sounds/balloon-grab-003_mp3.js deleted file mode 100644 index 9697842c..00000000 --- a/sounds/balloon-grab-003_mp3.js +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-disable */ -import asyncLoader from '../../phet-core/js/asyncLoader.js'; -import base64SoundToByteArray from '../../tambo/js/base64SoundToByteArray.js'; -import WrappedAudioBuffer from '../../tambo/js/WrappedAudioBuffer.js'; -import phetAudioContext from '../../tambo/js/phetAudioContext.js'; - -const soundURI = 'data:audio/mpeg;base64,//swxAAABCgDE1QRgDF7Dez3O7AC/EVpNi0QADgfzhd5ApLlDhyfBAoNB8ocOf+f/7S//+Uk3FKrhcrpM7oGAAAAAALFcHA8JCDAtyLtmMVQnMfwgiL+tsj4b2RIZsCm7dIHAkXOYbTPTSt1xHkvmJCJkBCYKIVNbsWO4FuTAANGZMvX1uWO4XvTRXwre3WGIty5I+5KWMAiy2yL//syxAOACISLTbj1gAChAOSrsCAGbSQAAAAAAJ3is0b504JfHsvG6CObxjUOVx8mUanUaz7HqNjkM1vDyf4NnQ+9e2slkOl27IC/8wcISoS7dYAApJJlFQBHmXS4CuBpQdqPCmqwOknGP7txK2v/nr5ZR7Zu/cq2NtLKDsktu1F1AgAavWg294qlkBJahCEfp0C0Vz1C2bP//0gJRv/7MsQRAAP0BTejhGAw0ABk9GEIBuSxyNtuAGBwqNTI3JASQbctzBVglmgLNGg4DXit3omj3U+pAFFTIKrpDYM1VC2mPgJNAkwGwG2AAAGae/QKt/ireKdaTEFNRTMuOTkuNaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/+zLEKwPCNAEboARAMAAANIAAAASqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq'; -const soundByteArray = base64SoundToByteArray( phetAudioContext, soundURI ); -const unlock = asyncLoader.createLock( soundURI ); -const wrappedAudioBuffer = new WrappedAudioBuffer(); -const onDecodeSuccess = decodedAudio => { - wrappedAudioBuffer.audioBufferProperty.set( decodedAudio ); - unlock(); -}; -const onDecodeError = decodeError => { - console.warn( 'decode of audio data failed, using stubbed sound, error: ' + decodeError ); - wrappedAudioBuffer.audioBufferProperty.set( phetAudioContext.createBuffer( 1, 0, phetAudioContext.sampleRate ) ); - unlock(); -}; -phetAudioContext.decodeAudioData( soundByteArray.buffer, onDecodeSuccess, onDecodeError ); -export default wrappedAudioBuffer; \ No newline at end of file diff --git a/sounds/balloon-grab-005.mp3 b/sounds/balloon-grab-005.mp3 deleted file mode 100644 index a041805c..00000000 Binary files a/sounds/balloon-grab-005.mp3 and /dev/null differ diff --git a/sounds/balloon-grab-005_mp3.js b/sounds/balloon-grab-005_mp3.js deleted file mode 100644 index ed3055cd..00000000 --- a/sounds/balloon-grab-005_mp3.js +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-disable */ -import asyncLoader from '../../phet-core/js/asyncLoader.js'; -import base64SoundToByteArray from '../../tambo/js/base64SoundToByteArray.js'; -import WrappedAudioBuffer from '../../tambo/js/WrappedAudioBuffer.js'; -import phetAudioContext from '../../tambo/js/phetAudioContext.js'; - -const soundURI = 'data:audio/mpeg;base64,//swxAAABiQxYtTzADE6kCzrNKACIAXUwPIlKa+VOQcNQIYZEVPoeh6jZwggQIEEAQBMHwffTyjonB84IAx+H+j/+/yn9AAH8CEEAYDAYDAADgqY/d7cIQ5h4qsBmEDSxZmZAiX0DtTUCKA24A0Ar4LIrCK/BuIR6S/5EPhWIRV/8VSIfD4FfzoNCU7+oGhK7/1hIGlNAApfi3CB//syxAOABmgpS72zADDYBSf1HGwegDwdLoaXNFmQp6luVQGBE5u3mJNTIS5K1ZM7TvAqNNf69/WmNEo///o///oKIAKe0kjCUAP2rNTLpDgwYFAEY7GgaADbgcaojNNZNAs/N1jrTYXM0Znt2W/+M///cnXFfvoVCZATg0ssYUAy4fGGvvwgmkS2DJ4wBAyR7oRMQEaAkbzR7Xk43v/7MsQSgAaMK0Ol7SMw1wUjCb7pAqvSwcrcxrBehK///1q/pUAAEBl87sqiLchwBEaoaK0GWFJrUCbZuyA1tAcIIaiwpULnRSpd+y78le3fdt/61f0+m2tH9CoABHP6qADkztuIqiUnCCRMsxTJgdbUE0AtchjvUlHsu+n1/p+lOn1/+gQEhFwNhpEQAlfSSspjTAg5ihRWrUz7Kej/+zLEIQAFKB8tJr9ikKED5rR8PJbXe36v7zUVita+Huj9H/6qAIAD00TbIEARe9C61Bh0sONVYKqop7O/fVuT0XK/3aGf//6Ei1IKy2uRMgB67AdWQpMwWtXbSIgwQo6JFmLAPt+t9daP9NUWJJ2WNNoEQOJyijDYDecg2oNseeZvK9HZ6P9yP/9RaxH/8kBWSJLAw0iYHpNiANa0//swxDwABIQbKaUvJCCIAue0EbBOtUtzhnrd/jv+zt/Rt/5D+WUasiwAF6DjqeoWcpb/1M2N9VW7////7/6BgIIAAJKoBOm2rpGAVq+NAis+rKyfuQNX9r/pFQ1ipV1V+497Ni3e3e6qRczoQnKAIAymVElATOwhRTqRE3aV7mv1P/2+RlZb/uu//+TqW+tYhAAQwOUFQQOgrKCB//syxFwABGwZNaCF4nB4gub0EBwGgg4ttN9QqysUFv/WKi2LN/1N1CtMQU1FMy45OS41VVVMQU1FMy45OS41VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7MsR/AAMQFzOAnCYwuI5iKISUwFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/+zLEn4AD6BcZoIBEII6El+QxjFRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//swxLwDwAABpAAAACAAADSAAAAEVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV'; -const soundByteArray = base64SoundToByteArray( phetAudioContext, soundURI ); -const unlock = asyncLoader.createLock( soundURI ); -const wrappedAudioBuffer = new WrappedAudioBuffer(); -const onDecodeSuccess = decodedAudio => { - wrappedAudioBuffer.audioBufferProperty.set( decodedAudio ); - unlock(); -}; -const onDecodeError = decodeError => { - console.warn( 'decode of audio data failed, using stubbed sound, error: ' + decodeError ); - wrappedAudioBuffer.audioBufferProperty.set( phetAudioContext.createBuffer( 1, 0, phetAudioContext.sampleRate ) ); - unlock(); -}; -phetAudioContext.decodeAudioData( soundByteArray.buffer, onDecodeSuccess, onDecodeError ); -export default wrappedAudioBuffer; \ No newline at end of file diff --git a/sounds/balloon-release-002.mp3 b/sounds/balloon-release-002.mp3 deleted file mode 100644 index 5b6cdfa9..00000000 Binary files a/sounds/balloon-release-002.mp3 and /dev/null differ diff --git a/sounds/balloon-release-002_mp3.js b/sounds/balloon-release-002_mp3.js deleted file mode 100644 index 907bba12..00000000 --- a/sounds/balloon-release-002_mp3.js +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-disable */ -import asyncLoader from '../../phet-core/js/asyncLoader.js'; -import base64SoundToByteArray from '../../tambo/js/base64SoundToByteArray.js'; -import WrappedAudioBuffer from '../../tambo/js/WrappedAudioBuffer.js'; -import phetAudioContext from '../../tambo/js/phetAudioContext.js'; - -const soundURI = 'data:audio/mpeg;base64,//swxAAABZwZLPQxgBFKli73GIACACAS07xohUOBi4BizBAEBoIFw/lIPnwf/LvB/5R1YP/EEMco7/QsH3h/l38mwIAiESkAAgEAiIgGAAhEzD/Cw4TICuhmac/C95YWQ8GyFBFz1FygdFR8zb3ixgyRx0Dore7VJa27O7TMdzn1op6R6s+K/OGQdmQxnOx1//rCoHXxyKpJAkAk//syxAOACFyxfbzBgDEUB6q0xhiYwDGSsEwEhkOsJogEpUpSB2Ywf0gzkzfQw9XUlEqsP1q6oKy2q+Td/qrD/aif2RuGFKJfPSWHYl63e7w7It9K2kyE7gEDw5F6COIgjAc0p8FZ4HSoeaSKSWyTbNctRoeIgbYDaDxlZQVHPLNKoSsMpEpkYP6yKVNHiJ/5NSULDfpQjUjcln3VB//7MsQDgAgouWeU8oAxEZfskzCgAHZf2NCE+U5OEZhWRE+h5zi5o+GOExESEQcWTOLClmZSaEz0bXdH9CFownuef78zNrzjjY17VZr3lPoAAAADAkJAnI6sgmQWBBBY3UWfPExwSf7kNSYu3Eycx0CMQiH2J0G5YV7bJi2CAKgsf+IckiLFv/92yQz//MPJ//0BgP0AQBdErwbu0wb/+zLEBIAIxI10OPMAAQoGrnOYkAaAf9y2uaJVhejKLCF6mgEccMTG4o1+BHYcf9PolBAeFHRGpYXAoslMokiNbjv9jWRQFCgBv31sfnzeB6Kla2W2WMbewHkAUmxFYEhKEoCR6hCEDYSo2SSJIaXQupZEieWPQVgq4sHCwNA1LB0qCvLA0d5aVBUNLOxEe/Kgq4q4splaXUkAGCtQ//swxAQDxWg+qSGMZOgAADSAAAAEQOAwQJQwUEDCBxBNZZZQoYKGqiD3f////9NNNINVVErppppqTEFNRTMuOTkuNaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq'; -const soundByteArray = base64SoundToByteArray( phetAudioContext, soundURI ); -const unlock = asyncLoader.createLock( soundURI ); -const wrappedAudioBuffer = new WrappedAudioBuffer(); -const onDecodeSuccess = decodedAudio => { - wrappedAudioBuffer.audioBufferProperty.set( decodedAudio ); - unlock(); -}; -const onDecodeError = decodeError => { - console.warn( 'decode of audio data failed, using stubbed sound, error: ' + decodeError ); - wrappedAudioBuffer.audioBufferProperty.set( phetAudioContext.createBuffer( 1, 0, phetAudioContext.sampleRate ) ); - unlock(); -}; -phetAudioContext.decodeAudioData( soundByteArray.buffer, onDecodeSuccess, onDecodeError ); -export default wrappedAudioBuffer; \ No newline at end of file diff --git a/sounds/balloon-release-003.mp3 b/sounds/balloon-release-003.mp3 deleted file mode 100644 index a1c835ed..00000000 Binary files a/sounds/balloon-release-003.mp3 and /dev/null differ diff --git a/sounds/balloon-release-003_mp3.js b/sounds/balloon-release-003_mp3.js deleted file mode 100644 index f07312a3..00000000 --- a/sounds/balloon-release-003_mp3.js +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-disable */ -import asyncLoader from '../../phet-core/js/asyncLoader.js'; -import base64SoundToByteArray from '../../tambo/js/base64SoundToByteArray.js'; -import WrappedAudioBuffer from '../../tambo/js/WrappedAudioBuffer.js'; -import phetAudioContext from '../../tambo/js/phetAudioContext.js'; - -const soundURI = 'data:audio/mpeg;base64,//swxAAAB3AjZvTBgDEPD20rMnACACW23IAvf9gkAgBwdGRAEQmHixYsWAmD4Pg+bwxlwfB8HwQBAEAQBMHwfB/gh/u/ggCDsHw/ggCBysHwQP4EMGAwGBAAAAGRA0rCG+P6MxrhOFpdwLNZiLDKGvxnGdAKAd4Ph0a/gNHhsNv9TR047/xsCoSPfLQkDX8ShIGip1UkAAOba0OJ//syxAOAB0AtRb3DADDrBKe1zCTOABwVSFSJbMFwQYfHBmePG60aYaAJc4OEQGByYTrZsNdWsNBkupE7N3di7v/o+3SWq2foCAALdskjSUCLODB0cGnoiGMzofBPR9GW7ATWZAOUXIF1AzuTYl71yVFyWvM6kqsR6/6O96rUzp+hX6UEAAp2sSJEwIs1pK8DxocAD1O/YTddcFFSwP/7MsQNAAawITmtYYZwtoPodNzgFm6KOI0uVUJGPRb6T3KAVbUIT/2RXfZJf/QxPpKYSku1sgiUAovZtNdLvCjI/aRIbhperlSmsdTrWR6LLLv7P/NDXKUKP/X6v/WqBQJcloAiREAxtj38WHaCcASsR2BxM6gjgm616nW//U96ZuWt/9dP///kwGZHf9brIwANkXxBFOdUUnRrOTT/+zLEHwAFSB05penisI+DKPQgPAY2B6la6+as+/n+326lqTR01QyGoLbIIwBANqhlGMj2+sZvTQXqR2OZ+qyOzmn/////cKi1bthI2yoFMEiNHlHDxuxLA4wJAE/+QJqaP2f9s1LO1/p/M2+11FwABxEQASuBRr52ArpiQG4iWpS+rruX//6v/f/6Pr92MUScogAHfUmbQ8isvRjG//swxDuABBQZPaEF4HChAmf0ELwOKR1err9a2aLPR//rZMQASVAGc7C0oKmqwXRUysBjPe/4r9aMKd9TEVb/1uRdHFrm6TDGgBFCBluIrkNrqv2/T/6E7H6F9X//Z+tUAEJNpOJAQHeR2bXTu1tnWg9xEe+/6P////0n/n1DJlQunWLaxSiKt/qZ/+tMQU1FMy45OS41qqqqqqqq//syxFqCA/gZHUbgYkBpAiRwcDwEqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpMQU1FMy45OS41qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7MsSBgASgERzjhWBQZABkZCCIBqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/+zLEpoDDbAMpoIRAMEaAHiAQiAaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//swxLwDwAABpAAAACAAADSAAAAEqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq'; -const soundByteArray = base64SoundToByteArray( phetAudioContext, soundURI ); -const unlock = asyncLoader.createLock( soundURI ); -const wrappedAudioBuffer = new WrappedAudioBuffer(); -const onDecodeSuccess = decodedAudio => { - wrappedAudioBuffer.audioBufferProperty.set( decodedAudio ); - unlock(); -}; -const onDecodeError = decodeError => { - console.warn( 'decode of audio data failed, using stubbed sound, error: ' + decodeError ); - wrappedAudioBuffer.audioBufferProperty.set( phetAudioContext.createBuffer( 1, 0, phetAudioContext.sampleRate ) ); - unlock(); -}; -phetAudioContext.decodeAudioData( soundByteArray.buffer, onDecodeSuccess, onDecodeError ); -export default wrappedAudioBuffer; \ No newline at end of file diff --git a/sounds/balloon-release-005.mp3 b/sounds/balloon-release-005.mp3 deleted file mode 100644 index b9bde213..00000000 Binary files a/sounds/balloon-release-005.mp3 and /dev/null differ diff --git a/sounds/balloon-release-005_mp3.js b/sounds/balloon-release-005_mp3.js deleted file mode 100644 index 90f9a8ad..00000000 --- a/sounds/balloon-release-005_mp3.js +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-disable */ -import asyncLoader from '../../phet-core/js/asyncLoader.js'; -import base64SoundToByteArray from '../../tambo/js/base64SoundToByteArray.js'; -import WrappedAudioBuffer from '../../tambo/js/WrappedAudioBuffer.js'; -import phetAudioContext from '../../tambo/js/phetAudioContext.js'; - -const soundURI = 'data:audio/mpeg;base64,//swxAAAA2ADI7QBgDGUlmq3MyADIAAEdwFEgAAneIDgIY4M5yIDn9uTL/5Q5JwfAAAIBRTaicQjCIAAAAlc8t9XDEGryyKGmiYOaXqKEvpAe+W8JnpMV0AsAACZNJpldgAKAiQYPMSkTyZuyYDmACYL0iREmZZvTeDdYPlGaEpCkWoz/4wxmh2jvHs8tbf/NkTcMP4qbjYNlzsh//syxAMACBzTW7zzgDDuD2e0wKGGiAAgKKfGAhSiblc5HMxGkdTNG0nXpIu6Fzppd0NWaJwKl5UiRU5Djr7pdp41FBKy///qLmp0Ru39BqwCSTTcUbKAgJRuB0KVl6PMwkkCIeB8yTNgt+vczTDak0QgXbDUcVGBaf44KZtRUYLHQeJfw6rR/f///TUEyCVatxgNwDjRpGE9xU89VP/7MsQIgAP4BzejGCAwawBldJCIBlFLu7anb///Lfle1Ov+QCkajcDYjSAASCRlCFliF0dfp9n4Yy+7d+3+tQhVoplGA3qixZJJFCmLp7G13CkX2OPcX2Jf7M2/pXd82tqpJu21ABEcSQR0pQEkKMBVwieo9EQNO66g71A0e1qOlhE//sqPYl/Ud8SndWWDigAEWo0VwAG1lljkJYL/+zLELwAEzAcXJ4ggMKgBYFjzBASCFhIb/zAqKirPxZqBgsLC1UxBTUUzLjk5LjVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//swxEqDw6wsf4AAYKAAADSAAAAEVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV'; -const soundByteArray = base64SoundToByteArray( phetAudioContext, soundURI ); -const unlock = asyncLoader.createLock( soundURI ); -const wrappedAudioBuffer = new WrappedAudioBuffer(); -const onDecodeSuccess = decodedAudio => { - wrappedAudioBuffer.audioBufferProperty.set( decodedAudio ); - unlock(); -}; -const onDecodeError = decodeError => { - console.warn( 'decode of audio data failed, using stubbed sound, error: ' + decodeError ); - wrappedAudioBuffer.audioBufferProperty.set( phetAudioContext.createBuffer( 1, 0, phetAudioContext.sampleRate ) ); - unlock(); -}; -phetAudioContext.decodeAudioData( soundByteArray.buffer, onDecodeSuccess, onDecodeError ); -export default wrappedAudioBuffer; \ No newline at end of file diff --git a/sounds/license.json b/sounds/license.json index 00a83b56..46d16dbc 100644 --- a/sounds/license.json +++ b/sounds/license.json @@ -1,20 +1,4 @@ { - "balloon-grab-002.mp3": { - "text": [ - "Copyright 2002-2020 University of Colorado Boulder" - ], - "projectURL": "http://phet.colorado.edu", - "license": "contact phethelp@colorado.edu", - "notes": "created by Ashton Morris (PhET Interactive Simulations)" - }, - "balloon-grab-003.mp3": { - "text": [ - "Copyright 2002-2020 University of Colorado Boulder" - ], - "projectURL": "http://phet.colorado.edu", - "license": "contact phethelp@colorado.edu", - "notes": "created by Ashton Morris (PhET Interactive Simulations)" - }, "balloon-grab-004.mp3": { "text": [ "Copyright 2002-2020 University of Colorado Boulder" @@ -23,30 +7,6 @@ "license": "contact phethelp@colorado.edu", "notes": "created by Ashton Morris (PhET Interactive Simulations)" }, - "balloon-grab-005.mp3": { - "text": [ - "Copyright 2002-2020 University of Colorado Boulder" - ], - "projectURL": "http://phet.colorado.edu", - "license": "contact phethelp@colorado.edu", - "notes": "created by Ashton Morris (PhET Interactive Simulations)" - }, - "balloon-release-002.mp3": { - "text": [ - "Copyright 2002-2020 University of Colorado Boulder" - ], - "projectURL": "http://phet.colorado.edu", - "license": "contact phethelp@colorado.edu", - "notes": "created by Ashton Morris (PhET Interactive Simulations)" - }, - "balloon-release-003.mp3": { - "text": [ - "Copyright 2002-2020 University of Colorado Boulder" - ], - "projectURL": "http://phet.colorado.edu", - "license": "contact phethelp@colorado.edu", - "notes": "created by Ashton Morris (PhET Interactive Simulations)" - }, "balloon-release-004.mp3": { "text": [ "Copyright 2002-2020 University of Colorado Boulder" @@ -55,14 +15,6 @@ "license": "contact phethelp@colorado.edu", "notes": "created by Ashton Morris (PhET Interactive Simulations)" }, - "balloon-release-005.mp3": { - "text": [ - "Copyright 2002-2020 University of Colorado Boulder" - ], - "projectURL": "http://phet.colorado.edu", - "license": "contact phethelp@colorado.edu", - "notes": "created by Ashton Morris (PhET Interactive Simulations)" - }, "carrier-000.wav": { "text": [ "Copyright 2002-2020 University of Colorado Boulder"