added list type assertion for samples to "new sound" primitive

pull/89/head
jmoenig 2019-10-20 20:14:26 +02:00
rodzic 5ff93118fb
commit d56b8de386
2 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -18,6 +18,8 @@
* objects, threads: added "new sound" from list of samples primitive reporter to "sound" category
* objects, threads: added sampling rate input to "new sound" primitive
* threads: changed default name for new costumes created with STRETCH etc. to localized 'costume'
* threads: generate stereo sounds
* threads: added list type assertion for samples to "new sound" primitive
### 2019-10-18
* objects, blocks, threads: added dimension getters for the stage

Wyświetl plik

@ -2826,6 +2826,7 @@ Process.prototype.reportNewSoundFromSamples = function (samples, rate) {
myself = this;
if (isNil(this.context.accumulator)) {
this.assertType(samples, 'list'); // check only the first time
this.context.accumulator = {
audio: null
};