dd-audio-engine
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -11,3 +11,3 @@ import { AnyModule, IChildParams, ICreateParams, ModuleType } from './modules'; | ||
private static instance; | ||
private _context; | ||
context: IAnyAudioContext; | ||
isStarted: boolean; | ||
@@ -19,3 +19,2 @@ modules: { | ||
constructor(); | ||
get context(): IAnyAudioContext; | ||
addModule<T extends ModuleType>(params: ICreateParams): IModule<T>; | ||
@@ -22,0 +21,0 @@ updateModule<T extends ModuleType>(params: IUpdateModule<T>): IModule<T>; |
{ | ||
"name": "dd-audio-engine", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
@@ -21,3 +21,3 @@ import { pick } from "lodash"; | ||
private static instance: Engine; | ||
private _context!: IAnyAudioContext; | ||
context: IAnyAudioContext; | ||
isStarted: boolean = false; | ||
@@ -38,13 +38,6 @@ | ||
constructor() { | ||
this.context = getContext(); | ||
this.modules = {}; | ||
} | ||
get context() { | ||
if (this._context) return this._context; | ||
this._context = getContext(); | ||
return this._context; | ||
} | ||
addModule<T extends ModuleType>(params: ICreateParams) { | ||
@@ -51,0 +44,0 @@ const module = createModule(params); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
482779
8377