File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -736,14 +736,23 @@ type EffectDescriptor<
736
736
? PatchDescriptor < Name , Nodes >
737
737
: PatchlessDescriptor < Name > ;
738
738
739
- export class AudioEffectMap {
739
+ type Effects = {
740
+ [ x in EffectName ] : number ;
741
+ } ;
742
+
743
+ export class AudioEffectMap implements Effects {
740
744
// This class provides a simple interface for setting and getting audio
741
745
// effects stored on an EffectChain, similar to EffectMap (that class being
742
746
// for graphic effects). It takes an EffectChain and automatically generates
743
747
// properties according to the names of the effect descriptors, acting with
744
748
// the EffectChain's API when accessed.
745
749
private effectChain : EffectChain ;
746
750
751
+ // TypeScript can't infer these
752
+ public pan ! : number ;
753
+ public pitch ! : number ;
754
+ public volume ! : number ;
755
+
747
756
public constructor ( effectChain : EffectChain ) {
748
757
this . effectChain = effectChain ;
749
758
You can’t perform that action at this time.
0 commit comments