scratch-audio
Advanced tools
Comparing version
{ | ||
"name": "scratch-audio", | ||
"version": "0.1.0-prerelease.20180625194343", | ||
"version": "0.1.0-prerelease.20180625202813", | ||
"description": "audio engine for scratch 3.0", | ||
@@ -5,0 +5,0 @@ "main": "dist.js", |
@@ -211,32 +211,2 @@ const StartAudioContext = require('./StartAudioContext'); | ||
/** | ||
* Retrieve the audio buffer as held in memory for a given sound id. | ||
* @todo remove this | ||
*/ | ||
getSoundBuffer () { | ||
// todo: Deprecate audioBuffers. If something wants to hold onto the | ||
// buffer, it should. Otherwise buffers need to be able to release their | ||
// decoded memory to avoid running out of memory which is possible with | ||
// enough large audio buffers as they are full 16bit pcm waveforms for | ||
// each audio channel. | ||
log.warn('The getSoundBuffer function is no longer available. Use soundBank.getSoundPlayer().buffer.'); | ||
} | ||
/** | ||
* Add or update the in-memory audio buffer to a new one by soundId. | ||
* @todo remove this | ||
*/ | ||
updateSoundBuffer () { | ||
log.warn('The updateSoundBuffer function is no longer available. Use soundBank.getSoundPlayer().buffer.'); | ||
} | ||
/** | ||
* An older version of the AudioEngine had this function to load all sounds | ||
* This is a stub to provide a warning when it is called | ||
* @todo remove this | ||
*/ | ||
loadSounds () { | ||
log.warn('The loadSounds function is no longer available. Please use Scratch Storage.'); | ||
} | ||
/** | ||
* Get the current loudness of sound received by the microphone. | ||
@@ -256,10 +226,2 @@ * Sound is measured in RMS and smoothed. | ||
/** | ||
* Deprecated way to create an AudioPlayer | ||
* @todo remove this | ||
*/ | ||
createPlayer () { | ||
log.warn('the createPlayer method is no longer available, please use createBank'); | ||
} | ||
/** | ||
* Create an effect chain. | ||
@@ -266,0 +228,0 @@ * @returns {EffectChain} chain of effects defined by this AudioEngine |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
575206
-0.81%4337
-1.72%