@stinkycomputing/sesame-api-client 1.5.4 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/property-types.d.ts +16 -1
- package/dist/generated/property-types.d.ts.map +1 -1
- package/dist/index.browser.mjs +1010 -30
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +1010 -30
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +1010 -30
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +368 -0
- package/dist/proto/api.js +1947 -573
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -471,6 +471,14 @@ var sesame = $root.sesame = (() => {
|
|
|
471
471
|
AudioMixerChannel.prototype.level = 0;
|
|
472
472
|
AudioMixerChannel.prototype.pan = 0;
|
|
473
473
|
AudioMixerChannel.prototype.plugins = $util.emptyArray;
|
|
474
|
+
AudioMixerChannel.prototype.mute = false;
|
|
475
|
+
AudioMixerChannel.prototype.automationLevel = null;
|
|
476
|
+
AudioMixerChannel.prototype.automationMute = false;
|
|
477
|
+
let $oneOfFields;
|
|
478
|
+
Object.defineProperty(AudioMixerChannel.prototype, "_automationLevel", {
|
|
479
|
+
get: $util.oneOfGetter($oneOfFields = ["automationLevel"]),
|
|
480
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
481
|
+
});
|
|
474
482
|
AudioMixerChannel.create = function create(properties) {
|
|
475
483
|
return new AudioMixerChannel(properties);
|
|
476
484
|
};
|
|
@@ -517,6 +525,21 @@ var sesame = $root.sesame = (() => {
|
|
|
517
525
|
/* id 7, wireType 2 =*/
|
|
518
526
|
58
|
|
519
527
|
).fork()).ldelim();
|
|
528
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
529
|
+
writer.uint32(
|
|
530
|
+
/* id 8, wireType 0 =*/
|
|
531
|
+
64
|
|
532
|
+
).bool(message.mute);
|
|
533
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
534
|
+
writer.uint32(
|
|
535
|
+
/* id 9, wireType 5 =*/
|
|
536
|
+
77
|
|
537
|
+
).float(message.automationLevel);
|
|
538
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
539
|
+
writer.uint32(
|
|
540
|
+
/* id 10, wireType 0 =*/
|
|
541
|
+
80
|
|
542
|
+
).bool(message.automationMute);
|
|
520
543
|
return writer;
|
|
521
544
|
};
|
|
522
545
|
AudioMixerChannel.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -568,6 +591,18 @@ var sesame = $root.sesame = (() => {
|
|
|
568
591
|
message.plugins.push($root.sesame.v1.audio.AudioPlugin.decode(reader, reader.uint32()));
|
|
569
592
|
break;
|
|
570
593
|
}
|
|
594
|
+
case 8: {
|
|
595
|
+
message.mute = reader.bool();
|
|
596
|
+
break;
|
|
597
|
+
}
|
|
598
|
+
case 9: {
|
|
599
|
+
message.automationLevel = reader.float();
|
|
600
|
+
break;
|
|
601
|
+
}
|
|
602
|
+
case 10: {
|
|
603
|
+
message.automationMute = reader.bool();
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
571
606
|
default:
|
|
572
607
|
reader.skipType(tag & 7);
|
|
573
608
|
break;
|
|
@@ -583,6 +618,7 @@ var sesame = $root.sesame = (() => {
|
|
|
583
618
|
AudioMixerChannel.verify = function verify(message) {
|
|
584
619
|
if (typeof message !== "object" || message === null)
|
|
585
620
|
return "object expected";
|
|
621
|
+
let properties = {};
|
|
586
622
|
if (message.id != null && message.hasOwnProperty("id")) {
|
|
587
623
|
if (!$util.isString(message.id))
|
|
588
624
|
return "id: string expected";
|
|
@@ -624,6 +660,19 @@ var sesame = $root.sesame = (() => {
|
|
|
624
660
|
return "plugins." + error;
|
|
625
661
|
}
|
|
626
662
|
}
|
|
663
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
664
|
+
if (typeof message.mute !== "boolean")
|
|
665
|
+
return "mute: boolean expected";
|
|
666
|
+
}
|
|
667
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
668
|
+
properties._automationLevel = 1;
|
|
669
|
+
if (typeof message.automationLevel !== "number")
|
|
670
|
+
return "automationLevel: number expected";
|
|
671
|
+
}
|
|
672
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
673
|
+
if (typeof message.automationMute !== "boolean")
|
|
674
|
+
return "automationMute: boolean expected";
|
|
675
|
+
}
|
|
627
676
|
return null;
|
|
628
677
|
};
|
|
629
678
|
AudioMixerChannel.fromObject = function fromObject(object) {
|
|
@@ -675,6 +724,12 @@ var sesame = $root.sesame = (() => {
|
|
|
675
724
|
message.plugins[i] = $root.sesame.v1.audio.AudioPlugin.fromObject(object.plugins[i]);
|
|
676
725
|
}
|
|
677
726
|
}
|
|
727
|
+
if (object.mute != null)
|
|
728
|
+
message.mute = Boolean(object.mute);
|
|
729
|
+
if (object.automationLevel != null)
|
|
730
|
+
message.automationLevel = Number(object.automationLevel);
|
|
731
|
+
if (object.automationMute != null)
|
|
732
|
+
message.automationMute = Boolean(object.automationMute);
|
|
678
733
|
return message;
|
|
679
734
|
};
|
|
680
735
|
AudioMixerChannel.toObject = function toObject(message, options) {
|
|
@@ -691,6 +746,8 @@ var sesame = $root.sesame = (() => {
|
|
|
691
746
|
object.channelType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
692
747
|
object.level = 0;
|
|
693
748
|
object.pan = 0;
|
|
749
|
+
object.mute = false;
|
|
750
|
+
object.automationMute = false;
|
|
694
751
|
}
|
|
695
752
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
696
753
|
object.id = message.id;
|
|
@@ -712,6 +769,15 @@ var sesame = $root.sesame = (() => {
|
|
|
712
769
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
713
770
|
object.plugins[j] = $root.sesame.v1.audio.AudioPlugin.toObject(message.plugins[j], options);
|
|
714
771
|
}
|
|
772
|
+
if (message.mute != null && message.hasOwnProperty("mute"))
|
|
773
|
+
object.mute = message.mute;
|
|
774
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
775
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
776
|
+
if (options.oneofs)
|
|
777
|
+
object._automationLevel = "automationLevel";
|
|
778
|
+
}
|
|
779
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute"))
|
|
780
|
+
object.automationMute = message.automationMute;
|
|
715
781
|
return object;
|
|
716
782
|
};
|
|
717
783
|
AudioMixerChannel.prototype.toJSON = function toJSON() {
|
|
@@ -725,9 +791,162 @@ var sesame = $root.sesame = (() => {
|
|
|
725
791
|
};
|
|
726
792
|
return AudioMixerChannel;
|
|
727
793
|
}();
|
|
794
|
+
audio.AudioMixerOutput = function() {
|
|
795
|
+
function AudioMixerOutput(properties) {
|
|
796
|
+
this.excludedChannelIds = [];
|
|
797
|
+
if (properties) {
|
|
798
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
799
|
+
if (properties[keys[i]] != null)
|
|
800
|
+
this[keys[i]] = properties[keys[i]];
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
AudioMixerOutput.prototype.id = "";
|
|
804
|
+
AudioMixerOutput.prototype.excludedChannelIds = $util.emptyArray;
|
|
805
|
+
AudioMixerOutput.prototype.includeMasterPlugins = null;
|
|
806
|
+
let $oneOfFields;
|
|
807
|
+
Object.defineProperty(AudioMixerOutput.prototype, "_includeMasterPlugins", {
|
|
808
|
+
get: $util.oneOfGetter($oneOfFields = ["includeMasterPlugins"]),
|
|
809
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
810
|
+
});
|
|
811
|
+
AudioMixerOutput.create = function create(properties) {
|
|
812
|
+
return new AudioMixerOutput(properties);
|
|
813
|
+
};
|
|
814
|
+
AudioMixerOutput.encode = function encode(message, writer) {
|
|
815
|
+
if (!writer)
|
|
816
|
+
writer = $Writer.create();
|
|
817
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
818
|
+
writer.uint32(
|
|
819
|
+
/* id 1, wireType 2 =*/
|
|
820
|
+
10
|
|
821
|
+
).string(message.id);
|
|
822
|
+
if (message.excludedChannelIds != null && message.excludedChannelIds.length)
|
|
823
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
824
|
+
writer.uint32(
|
|
825
|
+
/* id 2, wireType 2 =*/
|
|
826
|
+
18
|
|
827
|
+
).string(message.excludedChannelIds[i]);
|
|
828
|
+
if (message.includeMasterPlugins != null && Object.hasOwnProperty.call(message, "includeMasterPlugins"))
|
|
829
|
+
writer.uint32(
|
|
830
|
+
/* id 3, wireType 0 =*/
|
|
831
|
+
24
|
|
832
|
+
).bool(message.includeMasterPlugins);
|
|
833
|
+
return writer;
|
|
834
|
+
};
|
|
835
|
+
AudioMixerOutput.encodeDelimited = function encodeDelimited(message, writer) {
|
|
836
|
+
return this.encode(message, writer).ldelim();
|
|
837
|
+
};
|
|
838
|
+
AudioMixerOutput.decode = function decode(reader, length, error) {
|
|
839
|
+
if (!(reader instanceof $Reader))
|
|
840
|
+
reader = $Reader.create(reader);
|
|
841
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerOutput();
|
|
842
|
+
while (reader.pos < end) {
|
|
843
|
+
let tag = reader.uint32();
|
|
844
|
+
if (tag === error)
|
|
845
|
+
break;
|
|
846
|
+
switch (tag >>> 3) {
|
|
847
|
+
case 1: {
|
|
848
|
+
message.id = reader.string();
|
|
849
|
+
break;
|
|
850
|
+
}
|
|
851
|
+
case 2: {
|
|
852
|
+
if (!(message.excludedChannelIds && message.excludedChannelIds.length))
|
|
853
|
+
message.excludedChannelIds = [];
|
|
854
|
+
message.excludedChannelIds.push(reader.string());
|
|
855
|
+
break;
|
|
856
|
+
}
|
|
857
|
+
case 3: {
|
|
858
|
+
message.includeMasterPlugins = reader.bool();
|
|
859
|
+
break;
|
|
860
|
+
}
|
|
861
|
+
default:
|
|
862
|
+
reader.skipType(tag & 7);
|
|
863
|
+
break;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
return message;
|
|
867
|
+
};
|
|
868
|
+
AudioMixerOutput.decodeDelimited = function decodeDelimited(reader) {
|
|
869
|
+
if (!(reader instanceof $Reader))
|
|
870
|
+
reader = new $Reader(reader);
|
|
871
|
+
return this.decode(reader, reader.uint32());
|
|
872
|
+
};
|
|
873
|
+
AudioMixerOutput.verify = function verify(message) {
|
|
874
|
+
if (typeof message !== "object" || message === null)
|
|
875
|
+
return "object expected";
|
|
876
|
+
let properties = {};
|
|
877
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
878
|
+
if (!$util.isString(message.id))
|
|
879
|
+
return "id: string expected";
|
|
880
|
+
}
|
|
881
|
+
if (message.excludedChannelIds != null && message.hasOwnProperty("excludedChannelIds")) {
|
|
882
|
+
if (!Array.isArray(message.excludedChannelIds))
|
|
883
|
+
return "excludedChannelIds: array expected";
|
|
884
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
885
|
+
if (!$util.isString(message.excludedChannelIds[i]))
|
|
886
|
+
return "excludedChannelIds: string[] expected";
|
|
887
|
+
}
|
|
888
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
889
|
+
properties._includeMasterPlugins = 1;
|
|
890
|
+
if (typeof message.includeMasterPlugins !== "boolean")
|
|
891
|
+
return "includeMasterPlugins: boolean expected";
|
|
892
|
+
}
|
|
893
|
+
return null;
|
|
894
|
+
};
|
|
895
|
+
AudioMixerOutput.fromObject = function fromObject(object) {
|
|
896
|
+
if (object instanceof $root.sesame.v1.audio.AudioMixerOutput)
|
|
897
|
+
return object;
|
|
898
|
+
let message = new $root.sesame.v1.audio.AudioMixerOutput();
|
|
899
|
+
if (object.id != null)
|
|
900
|
+
message.id = String(object.id);
|
|
901
|
+
if (object.excludedChannelIds) {
|
|
902
|
+
if (!Array.isArray(object.excludedChannelIds))
|
|
903
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutput.excludedChannelIds: array expected");
|
|
904
|
+
message.excludedChannelIds = [];
|
|
905
|
+
for (let i = 0; i < object.excludedChannelIds.length; ++i)
|
|
906
|
+
message.excludedChannelIds[i] = String(object.excludedChannelIds[i]);
|
|
907
|
+
}
|
|
908
|
+
if (object.includeMasterPlugins != null)
|
|
909
|
+
message.includeMasterPlugins = Boolean(object.includeMasterPlugins);
|
|
910
|
+
return message;
|
|
911
|
+
};
|
|
912
|
+
AudioMixerOutput.toObject = function toObject(message, options) {
|
|
913
|
+
if (!options)
|
|
914
|
+
options = {};
|
|
915
|
+
let object = {};
|
|
916
|
+
if (options.arrays || options.defaults)
|
|
917
|
+
object.excludedChannelIds = [];
|
|
918
|
+
if (options.defaults)
|
|
919
|
+
object.id = "";
|
|
920
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
921
|
+
object.id = message.id;
|
|
922
|
+
if (message.excludedChannelIds && message.excludedChannelIds.length) {
|
|
923
|
+
object.excludedChannelIds = [];
|
|
924
|
+
for (let j = 0; j < message.excludedChannelIds.length; ++j)
|
|
925
|
+
object.excludedChannelIds[j] = message.excludedChannelIds[j];
|
|
926
|
+
}
|
|
927
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
928
|
+
object.includeMasterPlugins = message.includeMasterPlugins;
|
|
929
|
+
if (options.oneofs)
|
|
930
|
+
object._includeMasterPlugins = "includeMasterPlugins";
|
|
931
|
+
}
|
|
932
|
+
return object;
|
|
933
|
+
};
|
|
934
|
+
AudioMixerOutput.prototype.toJSON = function toJSON() {
|
|
935
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
936
|
+
};
|
|
937
|
+
AudioMixerOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
938
|
+
if (typeUrlPrefix === void 0) {
|
|
939
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
940
|
+
}
|
|
941
|
+
return typeUrlPrefix + "/sesame.v1.audio.AudioMixerOutput";
|
|
942
|
+
};
|
|
943
|
+
return AudioMixerOutput;
|
|
944
|
+
}();
|
|
728
945
|
audio.AudioMixerConfig = function() {
|
|
729
946
|
function AudioMixerConfig(properties) {
|
|
730
947
|
this.channels = [];
|
|
948
|
+
this.outputs = [];
|
|
949
|
+
this.masterPlugins = [];
|
|
731
950
|
if (properties) {
|
|
732
951
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
733
952
|
if (properties[keys[i]] != null)
|
|
@@ -737,6 +956,19 @@ var sesame = $root.sesame = (() => {
|
|
|
737
956
|
AudioMixerConfig.prototype.channels = $util.emptyArray;
|
|
738
957
|
AudioMixerConfig.prototype.outputType = 0;
|
|
739
958
|
AudioMixerConfig.prototype.order = 0;
|
|
959
|
+
AudioMixerConfig.prototype.outputs = $util.emptyArray;
|
|
960
|
+
AudioMixerConfig.prototype.masterLevel = null;
|
|
961
|
+
AudioMixerConfig.prototype.masterAutomationLevel = null;
|
|
962
|
+
AudioMixerConfig.prototype.masterPlugins = $util.emptyArray;
|
|
963
|
+
let $oneOfFields;
|
|
964
|
+
Object.defineProperty(AudioMixerConfig.prototype, "_masterLevel", {
|
|
965
|
+
get: $util.oneOfGetter($oneOfFields = ["masterLevel"]),
|
|
966
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
967
|
+
});
|
|
968
|
+
Object.defineProperty(AudioMixerConfig.prototype, "_masterAutomationLevel", {
|
|
969
|
+
get: $util.oneOfGetter($oneOfFields = ["masterAutomationLevel"]),
|
|
970
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
971
|
+
});
|
|
740
972
|
AudioMixerConfig.create = function create(properties) {
|
|
741
973
|
return new AudioMixerConfig(properties);
|
|
742
974
|
};
|
|
@@ -759,6 +991,28 @@ var sesame = $root.sesame = (() => {
|
|
|
759
991
|
/* id 3, wireType 0 =*/
|
|
760
992
|
24
|
|
761
993
|
).uint32(message.order);
|
|
994
|
+
if (message.outputs != null && message.outputs.length)
|
|
995
|
+
for (let i = 0; i < message.outputs.length; ++i)
|
|
996
|
+
$root.sesame.v1.audio.AudioMixerOutput.encode(message.outputs[i], writer.uint32(
|
|
997
|
+
/* id 4, wireType 2 =*/
|
|
998
|
+
34
|
|
999
|
+
).fork()).ldelim();
|
|
1000
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
1001
|
+
writer.uint32(
|
|
1002
|
+
/* id 5, wireType 5 =*/
|
|
1003
|
+
45
|
|
1004
|
+
).float(message.masterLevel);
|
|
1005
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
1006
|
+
writer.uint32(
|
|
1007
|
+
/* id 6, wireType 5 =*/
|
|
1008
|
+
53
|
|
1009
|
+
).float(message.masterAutomationLevel);
|
|
1010
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
1011
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
1012
|
+
$root.sesame.v1.audio.AudioPlugin.encode(message.masterPlugins[i], writer.uint32(
|
|
1013
|
+
/* id 7, wireType 2 =*/
|
|
1014
|
+
58
|
|
1015
|
+
).fork()).ldelim();
|
|
762
1016
|
return writer;
|
|
763
1017
|
};
|
|
764
1018
|
AudioMixerConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -787,6 +1041,26 @@ var sesame = $root.sesame = (() => {
|
|
|
787
1041
|
message.order = reader.uint32();
|
|
788
1042
|
break;
|
|
789
1043
|
}
|
|
1044
|
+
case 4: {
|
|
1045
|
+
if (!(message.outputs && message.outputs.length))
|
|
1046
|
+
message.outputs = [];
|
|
1047
|
+
message.outputs.push($root.sesame.v1.audio.AudioMixerOutput.decode(reader, reader.uint32()));
|
|
1048
|
+
break;
|
|
1049
|
+
}
|
|
1050
|
+
case 5: {
|
|
1051
|
+
message.masterLevel = reader.float();
|
|
1052
|
+
break;
|
|
1053
|
+
}
|
|
1054
|
+
case 6: {
|
|
1055
|
+
message.masterAutomationLevel = reader.float();
|
|
1056
|
+
break;
|
|
1057
|
+
}
|
|
1058
|
+
case 7: {
|
|
1059
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
1060
|
+
message.masterPlugins = [];
|
|
1061
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioPlugin.decode(reader, reader.uint32()));
|
|
1062
|
+
break;
|
|
1063
|
+
}
|
|
790
1064
|
default:
|
|
791
1065
|
reader.skipType(tag & 7);
|
|
792
1066
|
break;
|
|
@@ -802,6 +1076,7 @@ var sesame = $root.sesame = (() => {
|
|
|
802
1076
|
AudioMixerConfig.verify = function verify(message) {
|
|
803
1077
|
if (typeof message !== "object" || message === null)
|
|
804
1078
|
return "object expected";
|
|
1079
|
+
let properties = {};
|
|
805
1080
|
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
806
1081
|
if (!Array.isArray(message.channels))
|
|
807
1082
|
return "channels: array expected";
|
|
@@ -824,6 +1099,34 @@ var sesame = $root.sesame = (() => {
|
|
|
824
1099
|
if (!$util.isInteger(message.order))
|
|
825
1100
|
return "order: integer expected";
|
|
826
1101
|
}
|
|
1102
|
+
if (message.outputs != null && message.hasOwnProperty("outputs")) {
|
|
1103
|
+
if (!Array.isArray(message.outputs))
|
|
1104
|
+
return "outputs: array expected";
|
|
1105
|
+
for (let i = 0; i < message.outputs.length; ++i) {
|
|
1106
|
+
let error = $root.sesame.v1.audio.AudioMixerOutput.verify(message.outputs[i]);
|
|
1107
|
+
if (error)
|
|
1108
|
+
return "outputs." + error;
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
1112
|
+
properties._masterLevel = 1;
|
|
1113
|
+
if (typeof message.masterLevel !== "number")
|
|
1114
|
+
return "masterLevel: number expected";
|
|
1115
|
+
}
|
|
1116
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
1117
|
+
properties._masterAutomationLevel = 1;
|
|
1118
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
1119
|
+
return "masterAutomationLevel: number expected";
|
|
1120
|
+
}
|
|
1121
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
1122
|
+
if (!Array.isArray(message.masterPlugins))
|
|
1123
|
+
return "masterPlugins: array expected";
|
|
1124
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
1125
|
+
let error = $root.sesame.v1.audio.AudioPlugin.verify(message.masterPlugins[i]);
|
|
1126
|
+
if (error)
|
|
1127
|
+
return "masterPlugins." + error;
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
827
1130
|
return null;
|
|
828
1131
|
};
|
|
829
1132
|
AudioMixerConfig.fromObject = function fromObject(object) {
|
|
@@ -862,14 +1165,41 @@ var sesame = $root.sesame = (() => {
|
|
|
862
1165
|
}
|
|
863
1166
|
if (object.order != null)
|
|
864
1167
|
message.order = object.order >>> 0;
|
|
1168
|
+
if (object.outputs) {
|
|
1169
|
+
if (!Array.isArray(object.outputs))
|
|
1170
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.outputs: array expected");
|
|
1171
|
+
message.outputs = [];
|
|
1172
|
+
for (let i = 0; i < object.outputs.length; ++i) {
|
|
1173
|
+
if (typeof object.outputs[i] !== "object")
|
|
1174
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.outputs: object expected");
|
|
1175
|
+
message.outputs[i] = $root.sesame.v1.audio.AudioMixerOutput.fromObject(object.outputs[i]);
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
if (object.masterLevel != null)
|
|
1179
|
+
message.masterLevel = Number(object.masterLevel);
|
|
1180
|
+
if (object.masterAutomationLevel != null)
|
|
1181
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
1182
|
+
if (object.masterPlugins) {
|
|
1183
|
+
if (!Array.isArray(object.masterPlugins))
|
|
1184
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.masterPlugins: array expected");
|
|
1185
|
+
message.masterPlugins = [];
|
|
1186
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
1187
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
1188
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.masterPlugins: object expected");
|
|
1189
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioPlugin.fromObject(object.masterPlugins[i]);
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
865
1192
|
return message;
|
|
866
1193
|
};
|
|
867
1194
|
AudioMixerConfig.toObject = function toObject(message, options) {
|
|
868
1195
|
if (!options)
|
|
869
1196
|
options = {};
|
|
870
1197
|
let object = {};
|
|
871
|
-
if (options.arrays || options.defaults)
|
|
1198
|
+
if (options.arrays || options.defaults) {
|
|
872
1199
|
object.channels = [];
|
|
1200
|
+
object.outputs = [];
|
|
1201
|
+
object.masterPlugins = [];
|
|
1202
|
+
}
|
|
873
1203
|
if (options.defaults) {
|
|
874
1204
|
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
875
1205
|
object.order = 0;
|
|
@@ -883,6 +1213,26 @@ var sesame = $root.sesame = (() => {
|
|
|
883
1213
|
object.outputType = options.enums === String ? $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] === void 0 ? message.outputType : $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] : message.outputType;
|
|
884
1214
|
if (message.order != null && message.hasOwnProperty("order"))
|
|
885
1215
|
object.order = message.order;
|
|
1216
|
+
if (message.outputs && message.outputs.length) {
|
|
1217
|
+
object.outputs = [];
|
|
1218
|
+
for (let j = 0; j < message.outputs.length; ++j)
|
|
1219
|
+
object.outputs[j] = $root.sesame.v1.audio.AudioMixerOutput.toObject(message.outputs[j], options);
|
|
1220
|
+
}
|
|
1221
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
1222
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
1223
|
+
if (options.oneofs)
|
|
1224
|
+
object._masterLevel = "masterLevel";
|
|
1225
|
+
}
|
|
1226
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
1227
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
1228
|
+
if (options.oneofs)
|
|
1229
|
+
object._masterAutomationLevel = "masterAutomationLevel";
|
|
1230
|
+
}
|
|
1231
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
1232
|
+
object.masterPlugins = [];
|
|
1233
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
1234
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioPlugin.toObject(message.masterPlugins[j], options);
|
|
1235
|
+
}
|
|
886
1236
|
return object;
|
|
887
1237
|
};
|
|
888
1238
|
AudioMixerConfig.prototype.toJSON = function toJSON() {
|
|
@@ -1594,6 +1944,11 @@ var sesame = $root.sesame = (() => {
|
|
|
1594
1944
|
AudioChannelStatus.prototype.hasData = false;
|
|
1595
1945
|
AudioChannelStatus.prototype.readErrors = 0;
|
|
1596
1946
|
AudioChannelStatus.prototype.plugins = $util.emptyArray;
|
|
1947
|
+
AudioChannelStatus.prototype.mute = false;
|
|
1948
|
+
AudioChannelStatus.prototype.automationLevel = 0;
|
|
1949
|
+
AudioChannelStatus.prototype.automationMute = false;
|
|
1950
|
+
AudioChannelStatus.prototype.effectiveLevel = 0;
|
|
1951
|
+
AudioChannelStatus.prototype.effectiveMute = false;
|
|
1597
1952
|
AudioChannelStatus.create = function create(properties) {
|
|
1598
1953
|
return new AudioChannelStatus(properties);
|
|
1599
1954
|
};
|
|
@@ -1645,6 +2000,31 @@ var sesame = $root.sesame = (() => {
|
|
|
1645
2000
|
/* id 8, wireType 2 =*/
|
|
1646
2001
|
66
|
|
1647
2002
|
).fork()).ldelim();
|
|
2003
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
2004
|
+
writer.uint32(
|
|
2005
|
+
/* id 9, wireType 0 =*/
|
|
2006
|
+
72
|
|
2007
|
+
).bool(message.mute);
|
|
2008
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
2009
|
+
writer.uint32(
|
|
2010
|
+
/* id 10, wireType 5 =*/
|
|
2011
|
+
85
|
|
2012
|
+
).float(message.automationLevel);
|
|
2013
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
2014
|
+
writer.uint32(
|
|
2015
|
+
/* id 11, wireType 0 =*/
|
|
2016
|
+
88
|
|
2017
|
+
).bool(message.automationMute);
|
|
2018
|
+
if (message.effectiveLevel != null && Object.hasOwnProperty.call(message, "effectiveLevel"))
|
|
2019
|
+
writer.uint32(
|
|
2020
|
+
/* id 12, wireType 5 =*/
|
|
2021
|
+
101
|
|
2022
|
+
).float(message.effectiveLevel);
|
|
2023
|
+
if (message.effectiveMute != null && Object.hasOwnProperty.call(message, "effectiveMute"))
|
|
2024
|
+
writer.uint32(
|
|
2025
|
+
/* id 13, wireType 0 =*/
|
|
2026
|
+
104
|
|
2027
|
+
).bool(message.effectiveMute);
|
|
1648
2028
|
return writer;
|
|
1649
2029
|
};
|
|
1650
2030
|
AudioChannelStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -1700,6 +2080,26 @@ var sesame = $root.sesame = (() => {
|
|
|
1700
2080
|
message.plugins.push($root.sesame.v1.audio.AudioChannelPluginStatus.decode(reader, reader.uint32()));
|
|
1701
2081
|
break;
|
|
1702
2082
|
}
|
|
2083
|
+
case 9: {
|
|
2084
|
+
message.mute = reader.bool();
|
|
2085
|
+
break;
|
|
2086
|
+
}
|
|
2087
|
+
case 10: {
|
|
2088
|
+
message.automationLevel = reader.float();
|
|
2089
|
+
break;
|
|
2090
|
+
}
|
|
2091
|
+
case 11: {
|
|
2092
|
+
message.automationMute = reader.bool();
|
|
2093
|
+
break;
|
|
2094
|
+
}
|
|
2095
|
+
case 12: {
|
|
2096
|
+
message.effectiveLevel = reader.float();
|
|
2097
|
+
break;
|
|
2098
|
+
}
|
|
2099
|
+
case 13: {
|
|
2100
|
+
message.effectiveMute = reader.bool();
|
|
2101
|
+
break;
|
|
2102
|
+
}
|
|
1703
2103
|
default:
|
|
1704
2104
|
reader.skipType(tag & 7);
|
|
1705
2105
|
break;
|
|
@@ -1760,6 +2160,26 @@ var sesame = $root.sesame = (() => {
|
|
|
1760
2160
|
return "plugins." + error;
|
|
1761
2161
|
}
|
|
1762
2162
|
}
|
|
2163
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
2164
|
+
if (typeof message.mute !== "boolean")
|
|
2165
|
+
return "mute: boolean expected";
|
|
2166
|
+
}
|
|
2167
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
2168
|
+
if (typeof message.automationLevel !== "number")
|
|
2169
|
+
return "automationLevel: number expected";
|
|
2170
|
+
}
|
|
2171
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
2172
|
+
if (typeof message.automationMute !== "boolean")
|
|
2173
|
+
return "automationMute: boolean expected";
|
|
2174
|
+
}
|
|
2175
|
+
if (message.effectiveLevel != null && message.hasOwnProperty("effectiveLevel")) {
|
|
2176
|
+
if (typeof message.effectiveLevel !== "number")
|
|
2177
|
+
return "effectiveLevel: number expected";
|
|
2178
|
+
}
|
|
2179
|
+
if (message.effectiveMute != null && message.hasOwnProperty("effectiveMute")) {
|
|
2180
|
+
if (typeof message.effectiveMute !== "boolean")
|
|
2181
|
+
return "effectiveMute: boolean expected";
|
|
2182
|
+
}
|
|
1763
2183
|
return null;
|
|
1764
2184
|
};
|
|
1765
2185
|
AudioChannelStatus.fromObject = function fromObject(object) {
|
|
@@ -1813,6 +2233,16 @@ var sesame = $root.sesame = (() => {
|
|
|
1813
2233
|
message.plugins[i] = $root.sesame.v1.audio.AudioChannelPluginStatus.fromObject(object.plugins[i]);
|
|
1814
2234
|
}
|
|
1815
2235
|
}
|
|
2236
|
+
if (object.mute != null)
|
|
2237
|
+
message.mute = Boolean(object.mute);
|
|
2238
|
+
if (object.automationLevel != null)
|
|
2239
|
+
message.automationLevel = Number(object.automationLevel);
|
|
2240
|
+
if (object.automationMute != null)
|
|
2241
|
+
message.automationMute = Boolean(object.automationMute);
|
|
2242
|
+
if (object.effectiveLevel != null)
|
|
2243
|
+
message.effectiveLevel = Number(object.effectiveLevel);
|
|
2244
|
+
if (object.effectiveMute != null)
|
|
2245
|
+
message.effectiveMute = Boolean(object.effectiveMute);
|
|
1816
2246
|
return message;
|
|
1817
2247
|
};
|
|
1818
2248
|
AudioChannelStatus.toObject = function toObject(message, options) {
|
|
@@ -1830,6 +2260,11 @@ var sesame = $root.sesame = (() => {
|
|
|
1830
2260
|
object.pan = 0;
|
|
1831
2261
|
object.hasData = false;
|
|
1832
2262
|
object.readErrors = 0;
|
|
2263
|
+
object.mute = false;
|
|
2264
|
+
object.automationLevel = 0;
|
|
2265
|
+
object.automationMute = false;
|
|
2266
|
+
object.effectiveLevel = 0;
|
|
2267
|
+
object.effectiveMute = false;
|
|
1833
2268
|
}
|
|
1834
2269
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
1835
2270
|
object.id = message.id;
|
|
@@ -1853,6 +2288,16 @@ var sesame = $root.sesame = (() => {
|
|
|
1853
2288
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
1854
2289
|
object.plugins[j] = $root.sesame.v1.audio.AudioChannelPluginStatus.toObject(message.plugins[j], options);
|
|
1855
2290
|
}
|
|
2291
|
+
if (message.mute != null && message.hasOwnProperty("mute"))
|
|
2292
|
+
object.mute = message.mute;
|
|
2293
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel"))
|
|
2294
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
2295
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute"))
|
|
2296
|
+
object.automationMute = message.automationMute;
|
|
2297
|
+
if (message.effectiveLevel != null && message.hasOwnProperty("effectiveLevel"))
|
|
2298
|
+
object.effectiveLevel = options.json && !isFinite(message.effectiveLevel) ? String(message.effectiveLevel) : message.effectiveLevel;
|
|
2299
|
+
if (message.effectiveMute != null && message.hasOwnProperty("effectiveMute"))
|
|
2300
|
+
object.effectiveMute = message.effectiveMute;
|
|
1856
2301
|
return object;
|
|
1857
2302
|
};
|
|
1858
2303
|
AudioChannelStatus.prototype.toJSON = function toJSON() {
|
|
@@ -1866,24 +2311,25 @@ var sesame = $root.sesame = (() => {
|
|
|
1866
2311
|
};
|
|
1867
2312
|
return AudioChannelStatus;
|
|
1868
2313
|
}();
|
|
1869
|
-
audio.
|
|
1870
|
-
function
|
|
2314
|
+
audio.AudioMixerOutputStatus = function() {
|
|
2315
|
+
function AudioMixerOutputStatus(properties) {
|
|
1871
2316
|
this.vu = [];
|
|
1872
|
-
this.
|
|
2317
|
+
this.excludedChannelIds = [];
|
|
1873
2318
|
if (properties) {
|
|
1874
2319
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1875
2320
|
if (properties[keys[i]] != null)
|
|
1876
2321
|
this[keys[i]] = properties[keys[i]];
|
|
1877
2322
|
}
|
|
1878
2323
|
}
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
2324
|
+
AudioMixerOutputStatus.prototype.id = "";
|
|
2325
|
+
AudioMixerOutputStatus.prototype.outputType = 0;
|
|
2326
|
+
AudioMixerOutputStatus.prototype.vu = $util.emptyArray;
|
|
2327
|
+
AudioMixerOutputStatus.prototype.excludedChannelIds = $util.emptyArray;
|
|
2328
|
+
AudioMixerOutputStatus.prototype.includeMasterPlugins = false;
|
|
2329
|
+
AudioMixerOutputStatus.create = function create(properties) {
|
|
2330
|
+
return new AudioMixerOutputStatus(properties);
|
|
2331
|
+
};
|
|
2332
|
+
AudioMixerOutputStatus.encode = function encode(message, writer) {
|
|
1887
2333
|
if (!writer)
|
|
1888
2334
|
writer = $Writer.create();
|
|
1889
2335
|
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
@@ -1905,21 +2351,26 @@ var sesame = $root.sesame = (() => {
|
|
|
1905
2351
|
writer.float(message.vu[i]);
|
|
1906
2352
|
writer.ldelim();
|
|
1907
2353
|
}
|
|
1908
|
-
if (message.
|
|
1909
|
-
for (let i = 0; i < message.
|
|
1910
|
-
|
|
2354
|
+
if (message.excludedChannelIds != null && message.excludedChannelIds.length)
|
|
2355
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
2356
|
+
writer.uint32(
|
|
1911
2357
|
/* id 4, wireType 2 =*/
|
|
1912
2358
|
34
|
|
1913
|
-
).
|
|
2359
|
+
).string(message.excludedChannelIds[i]);
|
|
2360
|
+
if (message.includeMasterPlugins != null && Object.hasOwnProperty.call(message, "includeMasterPlugins"))
|
|
2361
|
+
writer.uint32(
|
|
2362
|
+
/* id 5, wireType 0 =*/
|
|
2363
|
+
40
|
|
2364
|
+
).bool(message.includeMasterPlugins);
|
|
1914
2365
|
return writer;
|
|
1915
2366
|
};
|
|
1916
|
-
|
|
2367
|
+
AudioMixerOutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1917
2368
|
return this.encode(message, writer).ldelim();
|
|
1918
2369
|
};
|
|
1919
|
-
|
|
2370
|
+
AudioMixerOutputStatus.decode = function decode(reader, length, error) {
|
|
1920
2371
|
if (!(reader instanceof $Reader))
|
|
1921
2372
|
reader = $Reader.create(reader);
|
|
1922
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.
|
|
2373
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerOutputStatus();
|
|
1923
2374
|
while (reader.pos < end) {
|
|
1924
2375
|
let tag = reader.uint32();
|
|
1925
2376
|
if (tag === error)
|
|
@@ -1945,9 +2396,13 @@ var sesame = $root.sesame = (() => {
|
|
|
1945
2396
|
break;
|
|
1946
2397
|
}
|
|
1947
2398
|
case 4: {
|
|
1948
|
-
if (!(message.
|
|
1949
|
-
message.
|
|
1950
|
-
message.
|
|
2399
|
+
if (!(message.excludedChannelIds && message.excludedChannelIds.length))
|
|
2400
|
+
message.excludedChannelIds = [];
|
|
2401
|
+
message.excludedChannelIds.push(reader.string());
|
|
2402
|
+
break;
|
|
2403
|
+
}
|
|
2404
|
+
case 5: {
|
|
2405
|
+
message.includeMasterPlugins = reader.bool();
|
|
1951
2406
|
break;
|
|
1952
2407
|
}
|
|
1953
2408
|
default:
|
|
@@ -1957,12 +2412,12 @@ var sesame = $root.sesame = (() => {
|
|
|
1957
2412
|
}
|
|
1958
2413
|
return message;
|
|
1959
2414
|
};
|
|
1960
|
-
|
|
2415
|
+
AudioMixerOutputStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
1961
2416
|
if (!(reader instanceof $Reader))
|
|
1962
2417
|
reader = new $Reader(reader);
|
|
1963
2418
|
return this.decode(reader, reader.uint32());
|
|
1964
2419
|
};
|
|
1965
|
-
|
|
2420
|
+
AudioMixerOutputStatus.verify = function verify(message) {
|
|
1966
2421
|
if (typeof message !== "object" || message === null)
|
|
1967
2422
|
return "object expected";
|
|
1968
2423
|
if (message.id != null && message.hasOwnProperty("id")) {
|
|
@@ -1985,15 +2440,321 @@ var sesame = $root.sesame = (() => {
|
|
|
1985
2440
|
if (typeof message.vu[i] !== "number")
|
|
1986
2441
|
return "vu: number[] expected";
|
|
1987
2442
|
}
|
|
1988
|
-
if (message.
|
|
1989
|
-
if (!Array.isArray(message.
|
|
1990
|
-
return "
|
|
1991
|
-
for (let i = 0; i < message.
|
|
1992
|
-
|
|
2443
|
+
if (message.excludedChannelIds != null && message.hasOwnProperty("excludedChannelIds")) {
|
|
2444
|
+
if (!Array.isArray(message.excludedChannelIds))
|
|
2445
|
+
return "excludedChannelIds: array expected";
|
|
2446
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
2447
|
+
if (!$util.isString(message.excludedChannelIds[i]))
|
|
2448
|
+
return "excludedChannelIds: string[] expected";
|
|
2449
|
+
}
|
|
2450
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
2451
|
+
if (typeof message.includeMasterPlugins !== "boolean")
|
|
2452
|
+
return "includeMasterPlugins: boolean expected";
|
|
2453
|
+
}
|
|
2454
|
+
return null;
|
|
2455
|
+
};
|
|
2456
|
+
AudioMixerOutputStatus.fromObject = function fromObject(object) {
|
|
2457
|
+
if (object instanceof $root.sesame.v1.audio.AudioMixerOutputStatus)
|
|
2458
|
+
return object;
|
|
2459
|
+
let message = new $root.sesame.v1.audio.AudioMixerOutputStatus();
|
|
2460
|
+
if (object.id != null)
|
|
2461
|
+
message.id = String(object.id);
|
|
2462
|
+
switch (object.outputType) {
|
|
2463
|
+
default:
|
|
2464
|
+
if (typeof object.outputType === "number") {
|
|
2465
|
+
message.outputType = object.outputType;
|
|
2466
|
+
break;
|
|
2467
|
+
}
|
|
2468
|
+
break;
|
|
2469
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED":
|
|
2470
|
+
case 0:
|
|
2471
|
+
message.outputType = 0;
|
|
2472
|
+
break;
|
|
2473
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_MONO":
|
|
2474
|
+
case 1:
|
|
2475
|
+
message.outputType = 1;
|
|
2476
|
+
break;
|
|
2477
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_STEREO":
|
|
2478
|
+
case 2:
|
|
2479
|
+
message.outputType = 2;
|
|
2480
|
+
break;
|
|
2481
|
+
}
|
|
2482
|
+
if (object.vu) {
|
|
2483
|
+
if (!Array.isArray(object.vu))
|
|
2484
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutputStatus.vu: array expected");
|
|
2485
|
+
message.vu = [];
|
|
2486
|
+
for (let i = 0; i < object.vu.length; ++i)
|
|
2487
|
+
message.vu[i] = Number(object.vu[i]);
|
|
2488
|
+
}
|
|
2489
|
+
if (object.excludedChannelIds) {
|
|
2490
|
+
if (!Array.isArray(object.excludedChannelIds))
|
|
2491
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutputStatus.excludedChannelIds: array expected");
|
|
2492
|
+
message.excludedChannelIds = [];
|
|
2493
|
+
for (let i = 0; i < object.excludedChannelIds.length; ++i)
|
|
2494
|
+
message.excludedChannelIds[i] = String(object.excludedChannelIds[i]);
|
|
2495
|
+
}
|
|
2496
|
+
if (object.includeMasterPlugins != null)
|
|
2497
|
+
message.includeMasterPlugins = Boolean(object.includeMasterPlugins);
|
|
2498
|
+
return message;
|
|
2499
|
+
};
|
|
2500
|
+
AudioMixerOutputStatus.toObject = function toObject(message, options) {
|
|
2501
|
+
if (!options)
|
|
2502
|
+
options = {};
|
|
2503
|
+
let object = {};
|
|
2504
|
+
if (options.arrays || options.defaults) {
|
|
2505
|
+
object.vu = [];
|
|
2506
|
+
object.excludedChannelIds = [];
|
|
2507
|
+
}
|
|
2508
|
+
if (options.defaults) {
|
|
2509
|
+
object.id = "";
|
|
2510
|
+
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
2511
|
+
object.includeMasterPlugins = false;
|
|
2512
|
+
}
|
|
2513
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2514
|
+
object.id = message.id;
|
|
2515
|
+
if (message.outputType != null && message.hasOwnProperty("outputType"))
|
|
2516
|
+
object.outputType = options.enums === String ? $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] === void 0 ? message.outputType : $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] : message.outputType;
|
|
2517
|
+
if (message.vu && message.vu.length) {
|
|
2518
|
+
object.vu = [];
|
|
2519
|
+
for (let j = 0; j < message.vu.length; ++j)
|
|
2520
|
+
object.vu[j] = options.json && !isFinite(message.vu[j]) ? String(message.vu[j]) : message.vu[j];
|
|
2521
|
+
}
|
|
2522
|
+
if (message.excludedChannelIds && message.excludedChannelIds.length) {
|
|
2523
|
+
object.excludedChannelIds = [];
|
|
2524
|
+
for (let j = 0; j < message.excludedChannelIds.length; ++j)
|
|
2525
|
+
object.excludedChannelIds[j] = message.excludedChannelIds[j];
|
|
2526
|
+
}
|
|
2527
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins"))
|
|
2528
|
+
object.includeMasterPlugins = message.includeMasterPlugins;
|
|
2529
|
+
return object;
|
|
2530
|
+
};
|
|
2531
|
+
AudioMixerOutputStatus.prototype.toJSON = function toJSON() {
|
|
2532
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2533
|
+
};
|
|
2534
|
+
AudioMixerOutputStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2535
|
+
if (typeUrlPrefix === void 0) {
|
|
2536
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2537
|
+
}
|
|
2538
|
+
return typeUrlPrefix + "/sesame.v1.audio.AudioMixerOutputStatus";
|
|
2539
|
+
};
|
|
2540
|
+
return AudioMixerOutputStatus;
|
|
2541
|
+
}();
|
|
2542
|
+
audio.AudioMixerStatus = function() {
|
|
2543
|
+
function AudioMixerStatus(properties) {
|
|
2544
|
+
this.vu = [];
|
|
2545
|
+
this.channels = [];
|
|
2546
|
+
this.masterPlugins = [];
|
|
2547
|
+
this.outputs = [];
|
|
2548
|
+
if (properties) {
|
|
2549
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2550
|
+
if (properties[keys[i]] != null)
|
|
2551
|
+
this[keys[i]] = properties[keys[i]];
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
AudioMixerStatus.prototype.id = "";
|
|
2555
|
+
AudioMixerStatus.prototype.outputType = 0;
|
|
2556
|
+
AudioMixerStatus.prototype.vu = $util.emptyArray;
|
|
2557
|
+
AudioMixerStatus.prototype.channels = $util.emptyArray;
|
|
2558
|
+
AudioMixerStatus.prototype.masterLevel = 0;
|
|
2559
|
+
AudioMixerStatus.prototype.masterAutomationLevel = 0;
|
|
2560
|
+
AudioMixerStatus.prototype.masterEffectiveLevel = 0;
|
|
2561
|
+
AudioMixerStatus.prototype.masterPlugins = $util.emptyArray;
|
|
2562
|
+
AudioMixerStatus.prototype.outputs = $util.emptyArray;
|
|
2563
|
+
AudioMixerStatus.create = function create(properties) {
|
|
2564
|
+
return new AudioMixerStatus(properties);
|
|
2565
|
+
};
|
|
2566
|
+
AudioMixerStatus.encode = function encode(message, writer) {
|
|
2567
|
+
if (!writer)
|
|
2568
|
+
writer = $Writer.create();
|
|
2569
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
2570
|
+
writer.uint32(
|
|
2571
|
+
/* id 1, wireType 2 =*/
|
|
2572
|
+
10
|
|
2573
|
+
).string(message.id);
|
|
2574
|
+
if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType"))
|
|
2575
|
+
writer.uint32(
|
|
2576
|
+
/* id 2, wireType 0 =*/
|
|
2577
|
+
16
|
|
2578
|
+
).int32(message.outputType);
|
|
2579
|
+
if (message.vu != null && message.vu.length) {
|
|
2580
|
+
writer.uint32(
|
|
2581
|
+
/* id 3, wireType 2 =*/
|
|
2582
|
+
26
|
|
2583
|
+
).fork();
|
|
2584
|
+
for (let i = 0; i < message.vu.length; ++i)
|
|
2585
|
+
writer.float(message.vu[i]);
|
|
2586
|
+
writer.ldelim();
|
|
2587
|
+
}
|
|
2588
|
+
if (message.channels != null && message.channels.length)
|
|
2589
|
+
for (let i = 0; i < message.channels.length; ++i)
|
|
2590
|
+
$root.sesame.v1.audio.AudioChannelStatus.encode(message.channels[i], writer.uint32(
|
|
2591
|
+
/* id 4, wireType 2 =*/
|
|
2592
|
+
34
|
|
2593
|
+
).fork()).ldelim();
|
|
2594
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
2595
|
+
writer.uint32(
|
|
2596
|
+
/* id 5, wireType 5 =*/
|
|
2597
|
+
45
|
|
2598
|
+
).float(message.masterLevel);
|
|
2599
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
2600
|
+
writer.uint32(
|
|
2601
|
+
/* id 6, wireType 5 =*/
|
|
2602
|
+
53
|
|
2603
|
+
).float(message.masterAutomationLevel);
|
|
2604
|
+
if (message.masterEffectiveLevel != null && Object.hasOwnProperty.call(message, "masterEffectiveLevel"))
|
|
2605
|
+
writer.uint32(
|
|
2606
|
+
/* id 7, wireType 5 =*/
|
|
2607
|
+
61
|
|
2608
|
+
).float(message.masterEffectiveLevel);
|
|
2609
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
2610
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
2611
|
+
$root.sesame.v1.audio.AudioChannelPluginStatus.encode(message.masterPlugins[i], writer.uint32(
|
|
2612
|
+
/* id 8, wireType 2 =*/
|
|
2613
|
+
66
|
|
2614
|
+
).fork()).ldelim();
|
|
2615
|
+
if (message.outputs != null && message.outputs.length)
|
|
2616
|
+
for (let i = 0; i < message.outputs.length; ++i)
|
|
2617
|
+
$root.sesame.v1.audio.AudioMixerOutputStatus.encode(message.outputs[i], writer.uint32(
|
|
2618
|
+
/* id 9, wireType 2 =*/
|
|
2619
|
+
74
|
|
2620
|
+
).fork()).ldelim();
|
|
2621
|
+
return writer;
|
|
2622
|
+
};
|
|
2623
|
+
AudioMixerStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2624
|
+
return this.encode(message, writer).ldelim();
|
|
2625
|
+
};
|
|
2626
|
+
AudioMixerStatus.decode = function decode(reader, length, error) {
|
|
2627
|
+
if (!(reader instanceof $Reader))
|
|
2628
|
+
reader = $Reader.create(reader);
|
|
2629
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerStatus();
|
|
2630
|
+
while (reader.pos < end) {
|
|
2631
|
+
let tag = reader.uint32();
|
|
2632
|
+
if (tag === error)
|
|
2633
|
+
break;
|
|
2634
|
+
switch (tag >>> 3) {
|
|
2635
|
+
case 1: {
|
|
2636
|
+
message.id = reader.string();
|
|
2637
|
+
break;
|
|
2638
|
+
}
|
|
2639
|
+
case 2: {
|
|
2640
|
+
message.outputType = reader.int32();
|
|
2641
|
+
break;
|
|
2642
|
+
}
|
|
2643
|
+
case 3: {
|
|
2644
|
+
if (!(message.vu && message.vu.length))
|
|
2645
|
+
message.vu = [];
|
|
2646
|
+
if ((tag & 7) === 2) {
|
|
2647
|
+
let end2 = reader.uint32() + reader.pos;
|
|
2648
|
+
while (reader.pos < end2)
|
|
2649
|
+
message.vu.push(reader.float());
|
|
2650
|
+
} else
|
|
2651
|
+
message.vu.push(reader.float());
|
|
2652
|
+
break;
|
|
2653
|
+
}
|
|
2654
|
+
case 4: {
|
|
2655
|
+
if (!(message.channels && message.channels.length))
|
|
2656
|
+
message.channels = [];
|
|
2657
|
+
message.channels.push($root.sesame.v1.audio.AudioChannelStatus.decode(reader, reader.uint32()));
|
|
2658
|
+
break;
|
|
2659
|
+
}
|
|
2660
|
+
case 5: {
|
|
2661
|
+
message.masterLevel = reader.float();
|
|
2662
|
+
break;
|
|
2663
|
+
}
|
|
2664
|
+
case 6: {
|
|
2665
|
+
message.masterAutomationLevel = reader.float();
|
|
2666
|
+
break;
|
|
2667
|
+
}
|
|
2668
|
+
case 7: {
|
|
2669
|
+
message.masterEffectiveLevel = reader.float();
|
|
2670
|
+
break;
|
|
2671
|
+
}
|
|
2672
|
+
case 8: {
|
|
2673
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
2674
|
+
message.masterPlugins = [];
|
|
2675
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioChannelPluginStatus.decode(reader, reader.uint32()));
|
|
2676
|
+
break;
|
|
2677
|
+
}
|
|
2678
|
+
case 9: {
|
|
2679
|
+
if (!(message.outputs && message.outputs.length))
|
|
2680
|
+
message.outputs = [];
|
|
2681
|
+
message.outputs.push($root.sesame.v1.audio.AudioMixerOutputStatus.decode(reader, reader.uint32()));
|
|
2682
|
+
break;
|
|
2683
|
+
}
|
|
2684
|
+
default:
|
|
2685
|
+
reader.skipType(tag & 7);
|
|
2686
|
+
break;
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
return message;
|
|
2690
|
+
};
|
|
2691
|
+
AudioMixerStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
2692
|
+
if (!(reader instanceof $Reader))
|
|
2693
|
+
reader = new $Reader(reader);
|
|
2694
|
+
return this.decode(reader, reader.uint32());
|
|
2695
|
+
};
|
|
2696
|
+
AudioMixerStatus.verify = function verify(message) {
|
|
2697
|
+
if (typeof message !== "object" || message === null)
|
|
2698
|
+
return "object expected";
|
|
2699
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
2700
|
+
if (!$util.isString(message.id))
|
|
2701
|
+
return "id: string expected";
|
|
2702
|
+
}
|
|
2703
|
+
if (message.outputType != null && message.hasOwnProperty("outputType"))
|
|
2704
|
+
switch (message.outputType) {
|
|
2705
|
+
default:
|
|
2706
|
+
return "outputType: enum value expected";
|
|
2707
|
+
case 0:
|
|
2708
|
+
case 1:
|
|
2709
|
+
case 2:
|
|
2710
|
+
break;
|
|
2711
|
+
}
|
|
2712
|
+
if (message.vu != null && message.hasOwnProperty("vu")) {
|
|
2713
|
+
if (!Array.isArray(message.vu))
|
|
2714
|
+
return "vu: array expected";
|
|
2715
|
+
for (let i = 0; i < message.vu.length; ++i)
|
|
2716
|
+
if (typeof message.vu[i] !== "number")
|
|
2717
|
+
return "vu: number[] expected";
|
|
2718
|
+
}
|
|
2719
|
+
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
2720
|
+
if (!Array.isArray(message.channels))
|
|
2721
|
+
return "channels: array expected";
|
|
2722
|
+
for (let i = 0; i < message.channels.length; ++i) {
|
|
2723
|
+
let error = $root.sesame.v1.audio.AudioChannelStatus.verify(message.channels[i]);
|
|
1993
2724
|
if (error)
|
|
1994
2725
|
return "channels." + error;
|
|
1995
2726
|
}
|
|
1996
2727
|
}
|
|
2728
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
2729
|
+
if (typeof message.masterLevel !== "number")
|
|
2730
|
+
return "masterLevel: number expected";
|
|
2731
|
+
}
|
|
2732
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
2733
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
2734
|
+
return "masterAutomationLevel: number expected";
|
|
2735
|
+
}
|
|
2736
|
+
if (message.masterEffectiveLevel != null && message.hasOwnProperty("masterEffectiveLevel")) {
|
|
2737
|
+
if (typeof message.masterEffectiveLevel !== "number")
|
|
2738
|
+
return "masterEffectiveLevel: number expected";
|
|
2739
|
+
}
|
|
2740
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
2741
|
+
if (!Array.isArray(message.masterPlugins))
|
|
2742
|
+
return "masterPlugins: array expected";
|
|
2743
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
2744
|
+
let error = $root.sesame.v1.audio.AudioChannelPluginStatus.verify(message.masterPlugins[i]);
|
|
2745
|
+
if (error)
|
|
2746
|
+
return "masterPlugins." + error;
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
if (message.outputs != null && message.hasOwnProperty("outputs")) {
|
|
2750
|
+
if (!Array.isArray(message.outputs))
|
|
2751
|
+
return "outputs: array expected";
|
|
2752
|
+
for (let i = 0; i < message.outputs.length; ++i) {
|
|
2753
|
+
let error = $root.sesame.v1.audio.AudioMixerOutputStatus.verify(message.outputs[i]);
|
|
2754
|
+
if (error)
|
|
2755
|
+
return "outputs." + error;
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
1997
2758
|
return null;
|
|
1998
2759
|
};
|
|
1999
2760
|
AudioMixerStatus.fromObject = function fromObject(object) {
|
|
@@ -2039,6 +2800,32 @@ var sesame = $root.sesame = (() => {
|
|
|
2039
2800
|
message.channels[i] = $root.sesame.v1.audio.AudioChannelStatus.fromObject(object.channels[i]);
|
|
2040
2801
|
}
|
|
2041
2802
|
}
|
|
2803
|
+
if (object.masterLevel != null)
|
|
2804
|
+
message.masterLevel = Number(object.masterLevel);
|
|
2805
|
+
if (object.masterAutomationLevel != null)
|
|
2806
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
2807
|
+
if (object.masterEffectiveLevel != null)
|
|
2808
|
+
message.masterEffectiveLevel = Number(object.masterEffectiveLevel);
|
|
2809
|
+
if (object.masterPlugins) {
|
|
2810
|
+
if (!Array.isArray(object.masterPlugins))
|
|
2811
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.masterPlugins: array expected");
|
|
2812
|
+
message.masterPlugins = [];
|
|
2813
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
2814
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
2815
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.masterPlugins: object expected");
|
|
2816
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioChannelPluginStatus.fromObject(object.masterPlugins[i]);
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2819
|
+
if (object.outputs) {
|
|
2820
|
+
if (!Array.isArray(object.outputs))
|
|
2821
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.outputs: array expected");
|
|
2822
|
+
message.outputs = [];
|
|
2823
|
+
for (let i = 0; i < object.outputs.length; ++i) {
|
|
2824
|
+
if (typeof object.outputs[i] !== "object")
|
|
2825
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.outputs: object expected");
|
|
2826
|
+
message.outputs[i] = $root.sesame.v1.audio.AudioMixerOutputStatus.fromObject(object.outputs[i]);
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2042
2829
|
return message;
|
|
2043
2830
|
};
|
|
2044
2831
|
AudioMixerStatus.toObject = function toObject(message, options) {
|
|
@@ -2048,10 +2835,15 @@ var sesame = $root.sesame = (() => {
|
|
|
2048
2835
|
if (options.arrays || options.defaults) {
|
|
2049
2836
|
object.vu = [];
|
|
2050
2837
|
object.channels = [];
|
|
2838
|
+
object.masterPlugins = [];
|
|
2839
|
+
object.outputs = [];
|
|
2051
2840
|
}
|
|
2052
2841
|
if (options.defaults) {
|
|
2053
2842
|
object.id = "";
|
|
2054
2843
|
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
2844
|
+
object.masterLevel = 0;
|
|
2845
|
+
object.masterAutomationLevel = 0;
|
|
2846
|
+
object.masterEffectiveLevel = 0;
|
|
2055
2847
|
}
|
|
2056
2848
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
2057
2849
|
object.id = message.id;
|
|
@@ -2067,6 +2859,22 @@ var sesame = $root.sesame = (() => {
|
|
|
2067
2859
|
for (let j = 0; j < message.channels.length; ++j)
|
|
2068
2860
|
object.channels[j] = $root.sesame.v1.audio.AudioChannelStatus.toObject(message.channels[j], options);
|
|
2069
2861
|
}
|
|
2862
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel"))
|
|
2863
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
2864
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel"))
|
|
2865
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
2866
|
+
if (message.masterEffectiveLevel != null && message.hasOwnProperty("masterEffectiveLevel"))
|
|
2867
|
+
object.masterEffectiveLevel = options.json && !isFinite(message.masterEffectiveLevel) ? String(message.masterEffectiveLevel) : message.masterEffectiveLevel;
|
|
2868
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
2869
|
+
object.masterPlugins = [];
|
|
2870
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
2871
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioChannelPluginStatus.toObject(message.masterPlugins[j], options);
|
|
2872
|
+
}
|
|
2873
|
+
if (message.outputs && message.outputs.length) {
|
|
2874
|
+
object.outputs = [];
|
|
2875
|
+
for (let j = 0; j < message.outputs.length; ++j)
|
|
2876
|
+
object.outputs[j] = $root.sesame.v1.audio.AudioMixerOutputStatus.toObject(message.outputs[j], options);
|
|
2877
|
+
}
|
|
2070
2878
|
return object;
|
|
2071
2879
|
};
|
|
2072
2880
|
AudioMixerStatus.prototype.toJSON = function toJSON() {
|
|
@@ -2221,6 +3029,9 @@ var sesame = $root.sesame = (() => {
|
|
|
2221
3029
|
AudioChannelControlRequest.prototype.level = null;
|
|
2222
3030
|
AudioChannelControlRequest.prototype.pan = null;
|
|
2223
3031
|
AudioChannelControlRequest.prototype.plugins = $util.emptyArray;
|
|
3032
|
+
AudioChannelControlRequest.prototype.mute = null;
|
|
3033
|
+
AudioChannelControlRequest.prototype.automationLevel = null;
|
|
3034
|
+
AudioChannelControlRequest.prototype.automationMute = null;
|
|
2224
3035
|
let $oneOfFields;
|
|
2225
3036
|
Object.defineProperty(AudioChannelControlRequest.prototype, "_level", {
|
|
2226
3037
|
get: $util.oneOfGetter($oneOfFields = ["level"]),
|
|
@@ -2230,6 +3041,18 @@ var sesame = $root.sesame = (() => {
|
|
|
2230
3041
|
get: $util.oneOfGetter($oneOfFields = ["pan"]),
|
|
2231
3042
|
set: $util.oneOfSetter($oneOfFields)
|
|
2232
3043
|
});
|
|
3044
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_mute", {
|
|
3045
|
+
get: $util.oneOfGetter($oneOfFields = ["mute"]),
|
|
3046
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3047
|
+
});
|
|
3048
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_automationLevel", {
|
|
3049
|
+
get: $util.oneOfGetter($oneOfFields = ["automationLevel"]),
|
|
3050
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3051
|
+
});
|
|
3052
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_automationMute", {
|
|
3053
|
+
get: $util.oneOfGetter($oneOfFields = ["automationMute"]),
|
|
3054
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3055
|
+
});
|
|
2233
3056
|
AudioChannelControlRequest.create = function create(properties) {
|
|
2234
3057
|
return new AudioChannelControlRequest(properties);
|
|
2235
3058
|
};
|
|
@@ -2257,6 +3080,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2257
3080
|
/* id 4, wireType 2 =*/
|
|
2258
3081
|
34
|
|
2259
3082
|
).fork()).ldelim();
|
|
3083
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
3084
|
+
writer.uint32(
|
|
3085
|
+
/* id 5, wireType 0 =*/
|
|
3086
|
+
40
|
|
3087
|
+
).bool(message.mute);
|
|
3088
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
3089
|
+
writer.uint32(
|
|
3090
|
+
/* id 6, wireType 5 =*/
|
|
3091
|
+
53
|
|
3092
|
+
).float(message.automationLevel);
|
|
3093
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
3094
|
+
writer.uint32(
|
|
3095
|
+
/* id 7, wireType 0 =*/
|
|
3096
|
+
56
|
|
3097
|
+
).bool(message.automationMute);
|
|
2260
3098
|
return writer;
|
|
2261
3099
|
};
|
|
2262
3100
|
AudioChannelControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -2289,6 +3127,18 @@ var sesame = $root.sesame = (() => {
|
|
|
2289
3127
|
message.plugins.push($root.sesame.v1.audio.AudioPluginControlRequest.decode(reader, reader.uint32()));
|
|
2290
3128
|
break;
|
|
2291
3129
|
}
|
|
3130
|
+
case 5: {
|
|
3131
|
+
message.mute = reader.bool();
|
|
3132
|
+
break;
|
|
3133
|
+
}
|
|
3134
|
+
case 6: {
|
|
3135
|
+
message.automationLevel = reader.float();
|
|
3136
|
+
break;
|
|
3137
|
+
}
|
|
3138
|
+
case 7: {
|
|
3139
|
+
message.automationMute = reader.bool();
|
|
3140
|
+
break;
|
|
3141
|
+
}
|
|
2292
3142
|
default:
|
|
2293
3143
|
reader.skipType(tag & 7);
|
|
2294
3144
|
break;
|
|
@@ -2328,6 +3178,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2328
3178
|
return "plugins." + error;
|
|
2329
3179
|
}
|
|
2330
3180
|
}
|
|
3181
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
3182
|
+
properties._mute = 1;
|
|
3183
|
+
if (typeof message.mute !== "boolean")
|
|
3184
|
+
return "mute: boolean expected";
|
|
3185
|
+
}
|
|
3186
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
3187
|
+
properties._automationLevel = 1;
|
|
3188
|
+
if (typeof message.automationLevel !== "number")
|
|
3189
|
+
return "automationLevel: number expected";
|
|
3190
|
+
}
|
|
3191
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
3192
|
+
properties._automationMute = 1;
|
|
3193
|
+
if (typeof message.automationMute !== "boolean")
|
|
3194
|
+
return "automationMute: boolean expected";
|
|
3195
|
+
}
|
|
2331
3196
|
return null;
|
|
2332
3197
|
};
|
|
2333
3198
|
AudioChannelControlRequest.fromObject = function fromObject(object) {
|
|
@@ -2350,6 +3215,12 @@ var sesame = $root.sesame = (() => {
|
|
|
2350
3215
|
message.plugins[i] = $root.sesame.v1.audio.AudioPluginControlRequest.fromObject(object.plugins[i]);
|
|
2351
3216
|
}
|
|
2352
3217
|
}
|
|
3218
|
+
if (object.mute != null)
|
|
3219
|
+
message.mute = Boolean(object.mute);
|
|
3220
|
+
if (object.automationLevel != null)
|
|
3221
|
+
message.automationLevel = Number(object.automationLevel);
|
|
3222
|
+
if (object.automationMute != null)
|
|
3223
|
+
message.automationMute = Boolean(object.automationMute);
|
|
2353
3224
|
return message;
|
|
2354
3225
|
};
|
|
2355
3226
|
AudioChannelControlRequest.toObject = function toObject(message, options) {
|
|
@@ -2377,6 +3248,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2377
3248
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
2378
3249
|
object.plugins[j] = $root.sesame.v1.audio.AudioPluginControlRequest.toObject(message.plugins[j], options);
|
|
2379
3250
|
}
|
|
3251
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
3252
|
+
object.mute = message.mute;
|
|
3253
|
+
if (options.oneofs)
|
|
3254
|
+
object._mute = "mute";
|
|
3255
|
+
}
|
|
3256
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
3257
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
3258
|
+
if (options.oneofs)
|
|
3259
|
+
object._automationLevel = "automationLevel";
|
|
3260
|
+
}
|
|
3261
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
3262
|
+
object.automationMute = message.automationMute;
|
|
3263
|
+
if (options.oneofs)
|
|
3264
|
+
object._automationMute = "automationMute";
|
|
3265
|
+
}
|
|
2380
3266
|
return object;
|
|
2381
3267
|
};
|
|
2382
3268
|
AudioChannelControlRequest.prototype.toJSON = function toJSON() {
|
|
@@ -2393,6 +3279,7 @@ var sesame = $root.sesame = (() => {
|
|
|
2393
3279
|
audio.AudioControlRequest = function() {
|
|
2394
3280
|
function AudioControlRequest(properties) {
|
|
2395
3281
|
this.channels = [];
|
|
3282
|
+
this.masterPlugins = [];
|
|
2396
3283
|
if (properties) {
|
|
2397
3284
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2398
3285
|
if (properties[keys[i]] != null)
|
|
@@ -2400,6 +3287,18 @@ var sesame = $root.sesame = (() => {
|
|
|
2400
3287
|
}
|
|
2401
3288
|
}
|
|
2402
3289
|
AudioControlRequest.prototype.channels = $util.emptyArray;
|
|
3290
|
+
AudioControlRequest.prototype.masterLevel = null;
|
|
3291
|
+
AudioControlRequest.prototype.masterAutomationLevel = null;
|
|
3292
|
+
AudioControlRequest.prototype.masterPlugins = $util.emptyArray;
|
|
3293
|
+
let $oneOfFields;
|
|
3294
|
+
Object.defineProperty(AudioControlRequest.prototype, "_masterLevel", {
|
|
3295
|
+
get: $util.oneOfGetter($oneOfFields = ["masterLevel"]),
|
|
3296
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3297
|
+
});
|
|
3298
|
+
Object.defineProperty(AudioControlRequest.prototype, "_masterAutomationLevel", {
|
|
3299
|
+
get: $util.oneOfGetter($oneOfFields = ["masterAutomationLevel"]),
|
|
3300
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3301
|
+
});
|
|
2403
3302
|
AudioControlRequest.create = function create(properties) {
|
|
2404
3303
|
return new AudioControlRequest(properties);
|
|
2405
3304
|
};
|
|
@@ -2412,6 +3311,22 @@ var sesame = $root.sesame = (() => {
|
|
|
2412
3311
|
/* id 1, wireType 2 =*/
|
|
2413
3312
|
10
|
|
2414
3313
|
).fork()).ldelim();
|
|
3314
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
3315
|
+
writer.uint32(
|
|
3316
|
+
/* id 2, wireType 5 =*/
|
|
3317
|
+
21
|
|
3318
|
+
).float(message.masterLevel);
|
|
3319
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
3320
|
+
writer.uint32(
|
|
3321
|
+
/* id 3, wireType 5 =*/
|
|
3322
|
+
29
|
|
3323
|
+
).float(message.masterAutomationLevel);
|
|
3324
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
3325
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
3326
|
+
$root.sesame.v1.audio.AudioPluginControlRequest.encode(message.masterPlugins[i], writer.uint32(
|
|
3327
|
+
/* id 4, wireType 2 =*/
|
|
3328
|
+
34
|
|
3329
|
+
).fork()).ldelim();
|
|
2415
3330
|
return writer;
|
|
2416
3331
|
};
|
|
2417
3332
|
AudioControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -2432,6 +3347,20 @@ var sesame = $root.sesame = (() => {
|
|
|
2432
3347
|
message.channels.push($root.sesame.v1.audio.AudioChannelControlRequest.decode(reader, reader.uint32()));
|
|
2433
3348
|
break;
|
|
2434
3349
|
}
|
|
3350
|
+
case 2: {
|
|
3351
|
+
message.masterLevel = reader.float();
|
|
3352
|
+
break;
|
|
3353
|
+
}
|
|
3354
|
+
case 3: {
|
|
3355
|
+
message.masterAutomationLevel = reader.float();
|
|
3356
|
+
break;
|
|
3357
|
+
}
|
|
3358
|
+
case 4: {
|
|
3359
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
3360
|
+
message.masterPlugins = [];
|
|
3361
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioPluginControlRequest.decode(reader, reader.uint32()));
|
|
3362
|
+
break;
|
|
3363
|
+
}
|
|
2435
3364
|
default:
|
|
2436
3365
|
reader.skipType(tag & 7);
|
|
2437
3366
|
break;
|
|
@@ -2447,6 +3376,7 @@ var sesame = $root.sesame = (() => {
|
|
|
2447
3376
|
AudioControlRequest.verify = function verify(message) {
|
|
2448
3377
|
if (typeof message !== "object" || message === null)
|
|
2449
3378
|
return "object expected";
|
|
3379
|
+
let properties = {};
|
|
2450
3380
|
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
2451
3381
|
if (!Array.isArray(message.channels))
|
|
2452
3382
|
return "channels: array expected";
|
|
@@ -2456,6 +3386,25 @@ var sesame = $root.sesame = (() => {
|
|
|
2456
3386
|
return "channels." + error;
|
|
2457
3387
|
}
|
|
2458
3388
|
}
|
|
3389
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
3390
|
+
properties._masterLevel = 1;
|
|
3391
|
+
if (typeof message.masterLevel !== "number")
|
|
3392
|
+
return "masterLevel: number expected";
|
|
3393
|
+
}
|
|
3394
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
3395
|
+
properties._masterAutomationLevel = 1;
|
|
3396
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
3397
|
+
return "masterAutomationLevel: number expected";
|
|
3398
|
+
}
|
|
3399
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
3400
|
+
if (!Array.isArray(message.masterPlugins))
|
|
3401
|
+
return "masterPlugins: array expected";
|
|
3402
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
3403
|
+
let error = $root.sesame.v1.audio.AudioPluginControlRequest.verify(message.masterPlugins[i]);
|
|
3404
|
+
if (error)
|
|
3405
|
+
return "masterPlugins." + error;
|
|
3406
|
+
}
|
|
3407
|
+
}
|
|
2459
3408
|
return null;
|
|
2460
3409
|
};
|
|
2461
3410
|
AudioControlRequest.fromObject = function fromObject(object) {
|
|
@@ -2472,19 +3421,50 @@ var sesame = $root.sesame = (() => {
|
|
|
2472
3421
|
message.channels[i] = $root.sesame.v1.audio.AudioChannelControlRequest.fromObject(object.channels[i]);
|
|
2473
3422
|
}
|
|
2474
3423
|
}
|
|
3424
|
+
if (object.masterLevel != null)
|
|
3425
|
+
message.masterLevel = Number(object.masterLevel);
|
|
3426
|
+
if (object.masterAutomationLevel != null)
|
|
3427
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
3428
|
+
if (object.masterPlugins) {
|
|
3429
|
+
if (!Array.isArray(object.masterPlugins))
|
|
3430
|
+
throw TypeError(".sesame.v1.audio.AudioControlRequest.masterPlugins: array expected");
|
|
3431
|
+
message.masterPlugins = [];
|
|
3432
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
3433
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
3434
|
+
throw TypeError(".sesame.v1.audio.AudioControlRequest.masterPlugins: object expected");
|
|
3435
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioPluginControlRequest.fromObject(object.masterPlugins[i]);
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
2475
3438
|
return message;
|
|
2476
3439
|
};
|
|
2477
3440
|
AudioControlRequest.toObject = function toObject(message, options) {
|
|
2478
3441
|
if (!options)
|
|
2479
3442
|
options = {};
|
|
2480
3443
|
let object = {};
|
|
2481
|
-
if (options.arrays || options.defaults)
|
|
3444
|
+
if (options.arrays || options.defaults) {
|
|
2482
3445
|
object.channels = [];
|
|
3446
|
+
object.masterPlugins = [];
|
|
3447
|
+
}
|
|
2483
3448
|
if (message.channels && message.channels.length) {
|
|
2484
3449
|
object.channels = [];
|
|
2485
3450
|
for (let j = 0; j < message.channels.length; ++j)
|
|
2486
3451
|
object.channels[j] = $root.sesame.v1.audio.AudioChannelControlRequest.toObject(message.channels[j], options);
|
|
2487
3452
|
}
|
|
3453
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
3454
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
3455
|
+
if (options.oneofs)
|
|
3456
|
+
object._masterLevel = "masterLevel";
|
|
3457
|
+
}
|
|
3458
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
3459
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
3460
|
+
if (options.oneofs)
|
|
3461
|
+
object._masterAutomationLevel = "masterAutomationLevel";
|
|
3462
|
+
}
|
|
3463
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
3464
|
+
object.masterPlugins = [];
|
|
3465
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
3466
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioPluginControlRequest.toObject(message.masterPlugins[j], options);
|
|
3467
|
+
}
|
|
2488
3468
|
return object;
|
|
2489
3469
|
};
|
|
2490
3470
|
AudioControlRequest.prototype.toJSON = function toJSON() {
|