[breaking] fix typos
This commit is contained in:
parent
8fe0c9f46b
commit
611e58090b
15 changed files with 113 additions and 115 deletions
|
@ -42,13 +42,13 @@ class Voice{
|
|||
this.updateWave();
|
||||
}
|
||||
updateWave():void{
|
||||
const func=this.waveFucnion();
|
||||
const func=this.waveFunction();
|
||||
for (let i = 0; i < this.buffer.length; i++) {
|
||||
this.buffer[i]=func(i/this.audioCtx.sampleRate,this.freq);
|
||||
}
|
||||
|
||||
}
|
||||
waveFucnion():Function{
|
||||
waveFunction():Function{
|
||||
if(typeof this.wave === 'function'){
|
||||
return this.wave;
|
||||
}
|
||||
|
@ -134,12 +134,12 @@ class Voice{
|
|||
}
|
||||
static setNotificationSound(sound:string){
|
||||
let userinfos=getBulkInfo();
|
||||
userinfos.preferances.notisound=sound;
|
||||
userinfos.preferences.notisound=sound;
|
||||
localStorage.setItem("userinfos",JSON.stringify(userinfos));
|
||||
}
|
||||
static getNotificationSound(){
|
||||
let userinfos=getBulkInfo();
|
||||
return userinfos.preferances.notisound;
|
||||
return userinfos.preferences.notisound;
|
||||
}
|
||||
}
|
||||
export {Voice as Voice};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue