@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.cjs
CHANGED
|
@@ -533,6 +533,14 @@ var sesame = $root.sesame = (() => {
|
|
|
533
533
|
AudioMixerChannel.prototype.level = 0;
|
|
534
534
|
AudioMixerChannel.prototype.pan = 0;
|
|
535
535
|
AudioMixerChannel.prototype.plugins = $util.emptyArray;
|
|
536
|
+
AudioMixerChannel.prototype.mute = false;
|
|
537
|
+
AudioMixerChannel.prototype.automationLevel = null;
|
|
538
|
+
AudioMixerChannel.prototype.automationMute = false;
|
|
539
|
+
let $oneOfFields;
|
|
540
|
+
Object.defineProperty(AudioMixerChannel.prototype, "_automationLevel", {
|
|
541
|
+
get: $util.oneOfGetter($oneOfFields = ["automationLevel"]),
|
|
542
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
543
|
+
});
|
|
536
544
|
AudioMixerChannel.create = function create(properties) {
|
|
537
545
|
return new AudioMixerChannel(properties);
|
|
538
546
|
};
|
|
@@ -579,6 +587,21 @@ var sesame = $root.sesame = (() => {
|
|
|
579
587
|
/* id 7, wireType 2 =*/
|
|
580
588
|
58
|
|
581
589
|
).fork()).ldelim();
|
|
590
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
591
|
+
writer.uint32(
|
|
592
|
+
/* id 8, wireType 0 =*/
|
|
593
|
+
64
|
|
594
|
+
).bool(message.mute);
|
|
595
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
596
|
+
writer.uint32(
|
|
597
|
+
/* id 9, wireType 5 =*/
|
|
598
|
+
77
|
|
599
|
+
).float(message.automationLevel);
|
|
600
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
601
|
+
writer.uint32(
|
|
602
|
+
/* id 10, wireType 0 =*/
|
|
603
|
+
80
|
|
604
|
+
).bool(message.automationMute);
|
|
582
605
|
return writer;
|
|
583
606
|
};
|
|
584
607
|
AudioMixerChannel.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -630,6 +653,18 @@ var sesame = $root.sesame = (() => {
|
|
|
630
653
|
message.plugins.push($root.sesame.v1.audio.AudioPlugin.decode(reader, reader.uint32()));
|
|
631
654
|
break;
|
|
632
655
|
}
|
|
656
|
+
case 8: {
|
|
657
|
+
message.mute = reader.bool();
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
case 9: {
|
|
661
|
+
message.automationLevel = reader.float();
|
|
662
|
+
break;
|
|
663
|
+
}
|
|
664
|
+
case 10: {
|
|
665
|
+
message.automationMute = reader.bool();
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
633
668
|
default:
|
|
634
669
|
reader.skipType(tag & 7);
|
|
635
670
|
break;
|
|
@@ -645,6 +680,7 @@ var sesame = $root.sesame = (() => {
|
|
|
645
680
|
AudioMixerChannel.verify = function verify(message) {
|
|
646
681
|
if (typeof message !== "object" || message === null)
|
|
647
682
|
return "object expected";
|
|
683
|
+
let properties = {};
|
|
648
684
|
if (message.id != null && message.hasOwnProperty("id")) {
|
|
649
685
|
if (!$util.isString(message.id))
|
|
650
686
|
return "id: string expected";
|
|
@@ -686,6 +722,19 @@ var sesame = $root.sesame = (() => {
|
|
|
686
722
|
return "plugins." + error;
|
|
687
723
|
}
|
|
688
724
|
}
|
|
725
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
726
|
+
if (typeof message.mute !== "boolean")
|
|
727
|
+
return "mute: boolean expected";
|
|
728
|
+
}
|
|
729
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
730
|
+
properties._automationLevel = 1;
|
|
731
|
+
if (typeof message.automationLevel !== "number")
|
|
732
|
+
return "automationLevel: number expected";
|
|
733
|
+
}
|
|
734
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
735
|
+
if (typeof message.automationMute !== "boolean")
|
|
736
|
+
return "automationMute: boolean expected";
|
|
737
|
+
}
|
|
689
738
|
return null;
|
|
690
739
|
};
|
|
691
740
|
AudioMixerChannel.fromObject = function fromObject(object) {
|
|
@@ -737,6 +786,12 @@ var sesame = $root.sesame = (() => {
|
|
|
737
786
|
message.plugins[i] = $root.sesame.v1.audio.AudioPlugin.fromObject(object.plugins[i]);
|
|
738
787
|
}
|
|
739
788
|
}
|
|
789
|
+
if (object.mute != null)
|
|
790
|
+
message.mute = Boolean(object.mute);
|
|
791
|
+
if (object.automationLevel != null)
|
|
792
|
+
message.automationLevel = Number(object.automationLevel);
|
|
793
|
+
if (object.automationMute != null)
|
|
794
|
+
message.automationMute = Boolean(object.automationMute);
|
|
740
795
|
return message;
|
|
741
796
|
};
|
|
742
797
|
AudioMixerChannel.toObject = function toObject(message, options) {
|
|
@@ -753,6 +808,8 @@ var sesame = $root.sesame = (() => {
|
|
|
753
808
|
object.channelType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
754
809
|
object.level = 0;
|
|
755
810
|
object.pan = 0;
|
|
811
|
+
object.mute = false;
|
|
812
|
+
object.automationMute = false;
|
|
756
813
|
}
|
|
757
814
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
758
815
|
object.id = message.id;
|
|
@@ -774,6 +831,15 @@ var sesame = $root.sesame = (() => {
|
|
|
774
831
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
775
832
|
object.plugins[j] = $root.sesame.v1.audio.AudioPlugin.toObject(message.plugins[j], options);
|
|
776
833
|
}
|
|
834
|
+
if (message.mute != null && message.hasOwnProperty("mute"))
|
|
835
|
+
object.mute = message.mute;
|
|
836
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
837
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
838
|
+
if (options.oneofs)
|
|
839
|
+
object._automationLevel = "automationLevel";
|
|
840
|
+
}
|
|
841
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute"))
|
|
842
|
+
object.automationMute = message.automationMute;
|
|
777
843
|
return object;
|
|
778
844
|
};
|
|
779
845
|
AudioMixerChannel.prototype.toJSON = function toJSON() {
|
|
@@ -787,9 +853,162 @@ var sesame = $root.sesame = (() => {
|
|
|
787
853
|
};
|
|
788
854
|
return AudioMixerChannel;
|
|
789
855
|
}();
|
|
856
|
+
audio.AudioMixerOutput = function() {
|
|
857
|
+
function AudioMixerOutput(properties) {
|
|
858
|
+
this.excludedChannelIds = [];
|
|
859
|
+
if (properties) {
|
|
860
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
861
|
+
if (properties[keys[i]] != null)
|
|
862
|
+
this[keys[i]] = properties[keys[i]];
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
AudioMixerOutput.prototype.id = "";
|
|
866
|
+
AudioMixerOutput.prototype.excludedChannelIds = $util.emptyArray;
|
|
867
|
+
AudioMixerOutput.prototype.includeMasterPlugins = null;
|
|
868
|
+
let $oneOfFields;
|
|
869
|
+
Object.defineProperty(AudioMixerOutput.prototype, "_includeMasterPlugins", {
|
|
870
|
+
get: $util.oneOfGetter($oneOfFields = ["includeMasterPlugins"]),
|
|
871
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
872
|
+
});
|
|
873
|
+
AudioMixerOutput.create = function create(properties) {
|
|
874
|
+
return new AudioMixerOutput(properties);
|
|
875
|
+
};
|
|
876
|
+
AudioMixerOutput.encode = function encode(message, writer) {
|
|
877
|
+
if (!writer)
|
|
878
|
+
writer = $Writer.create();
|
|
879
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
880
|
+
writer.uint32(
|
|
881
|
+
/* id 1, wireType 2 =*/
|
|
882
|
+
10
|
|
883
|
+
).string(message.id);
|
|
884
|
+
if (message.excludedChannelIds != null && message.excludedChannelIds.length)
|
|
885
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
886
|
+
writer.uint32(
|
|
887
|
+
/* id 2, wireType 2 =*/
|
|
888
|
+
18
|
|
889
|
+
).string(message.excludedChannelIds[i]);
|
|
890
|
+
if (message.includeMasterPlugins != null && Object.hasOwnProperty.call(message, "includeMasterPlugins"))
|
|
891
|
+
writer.uint32(
|
|
892
|
+
/* id 3, wireType 0 =*/
|
|
893
|
+
24
|
|
894
|
+
).bool(message.includeMasterPlugins);
|
|
895
|
+
return writer;
|
|
896
|
+
};
|
|
897
|
+
AudioMixerOutput.encodeDelimited = function encodeDelimited(message, writer) {
|
|
898
|
+
return this.encode(message, writer).ldelim();
|
|
899
|
+
};
|
|
900
|
+
AudioMixerOutput.decode = function decode(reader, length, error) {
|
|
901
|
+
if (!(reader instanceof $Reader))
|
|
902
|
+
reader = $Reader.create(reader);
|
|
903
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerOutput();
|
|
904
|
+
while (reader.pos < end) {
|
|
905
|
+
let tag = reader.uint32();
|
|
906
|
+
if (tag === error)
|
|
907
|
+
break;
|
|
908
|
+
switch (tag >>> 3) {
|
|
909
|
+
case 1: {
|
|
910
|
+
message.id = reader.string();
|
|
911
|
+
break;
|
|
912
|
+
}
|
|
913
|
+
case 2: {
|
|
914
|
+
if (!(message.excludedChannelIds && message.excludedChannelIds.length))
|
|
915
|
+
message.excludedChannelIds = [];
|
|
916
|
+
message.excludedChannelIds.push(reader.string());
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
919
|
+
case 3: {
|
|
920
|
+
message.includeMasterPlugins = reader.bool();
|
|
921
|
+
break;
|
|
922
|
+
}
|
|
923
|
+
default:
|
|
924
|
+
reader.skipType(tag & 7);
|
|
925
|
+
break;
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
return message;
|
|
929
|
+
};
|
|
930
|
+
AudioMixerOutput.decodeDelimited = function decodeDelimited(reader) {
|
|
931
|
+
if (!(reader instanceof $Reader))
|
|
932
|
+
reader = new $Reader(reader);
|
|
933
|
+
return this.decode(reader, reader.uint32());
|
|
934
|
+
};
|
|
935
|
+
AudioMixerOutput.verify = function verify(message) {
|
|
936
|
+
if (typeof message !== "object" || message === null)
|
|
937
|
+
return "object expected";
|
|
938
|
+
let properties = {};
|
|
939
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
940
|
+
if (!$util.isString(message.id))
|
|
941
|
+
return "id: string expected";
|
|
942
|
+
}
|
|
943
|
+
if (message.excludedChannelIds != null && message.hasOwnProperty("excludedChannelIds")) {
|
|
944
|
+
if (!Array.isArray(message.excludedChannelIds))
|
|
945
|
+
return "excludedChannelIds: array expected";
|
|
946
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
947
|
+
if (!$util.isString(message.excludedChannelIds[i]))
|
|
948
|
+
return "excludedChannelIds: string[] expected";
|
|
949
|
+
}
|
|
950
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
951
|
+
properties._includeMasterPlugins = 1;
|
|
952
|
+
if (typeof message.includeMasterPlugins !== "boolean")
|
|
953
|
+
return "includeMasterPlugins: boolean expected";
|
|
954
|
+
}
|
|
955
|
+
return null;
|
|
956
|
+
};
|
|
957
|
+
AudioMixerOutput.fromObject = function fromObject(object) {
|
|
958
|
+
if (object instanceof $root.sesame.v1.audio.AudioMixerOutput)
|
|
959
|
+
return object;
|
|
960
|
+
let message = new $root.sesame.v1.audio.AudioMixerOutput();
|
|
961
|
+
if (object.id != null)
|
|
962
|
+
message.id = String(object.id);
|
|
963
|
+
if (object.excludedChannelIds) {
|
|
964
|
+
if (!Array.isArray(object.excludedChannelIds))
|
|
965
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutput.excludedChannelIds: array expected");
|
|
966
|
+
message.excludedChannelIds = [];
|
|
967
|
+
for (let i = 0; i < object.excludedChannelIds.length; ++i)
|
|
968
|
+
message.excludedChannelIds[i] = String(object.excludedChannelIds[i]);
|
|
969
|
+
}
|
|
970
|
+
if (object.includeMasterPlugins != null)
|
|
971
|
+
message.includeMasterPlugins = Boolean(object.includeMasterPlugins);
|
|
972
|
+
return message;
|
|
973
|
+
};
|
|
974
|
+
AudioMixerOutput.toObject = function toObject(message, options) {
|
|
975
|
+
if (!options)
|
|
976
|
+
options = {};
|
|
977
|
+
let object = {};
|
|
978
|
+
if (options.arrays || options.defaults)
|
|
979
|
+
object.excludedChannelIds = [];
|
|
980
|
+
if (options.defaults)
|
|
981
|
+
object.id = "";
|
|
982
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
983
|
+
object.id = message.id;
|
|
984
|
+
if (message.excludedChannelIds && message.excludedChannelIds.length) {
|
|
985
|
+
object.excludedChannelIds = [];
|
|
986
|
+
for (let j = 0; j < message.excludedChannelIds.length; ++j)
|
|
987
|
+
object.excludedChannelIds[j] = message.excludedChannelIds[j];
|
|
988
|
+
}
|
|
989
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
990
|
+
object.includeMasterPlugins = message.includeMasterPlugins;
|
|
991
|
+
if (options.oneofs)
|
|
992
|
+
object._includeMasterPlugins = "includeMasterPlugins";
|
|
993
|
+
}
|
|
994
|
+
return object;
|
|
995
|
+
};
|
|
996
|
+
AudioMixerOutput.prototype.toJSON = function toJSON() {
|
|
997
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
998
|
+
};
|
|
999
|
+
AudioMixerOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1000
|
+
if (typeUrlPrefix === void 0) {
|
|
1001
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1002
|
+
}
|
|
1003
|
+
return typeUrlPrefix + "/sesame.v1.audio.AudioMixerOutput";
|
|
1004
|
+
};
|
|
1005
|
+
return AudioMixerOutput;
|
|
1006
|
+
}();
|
|
790
1007
|
audio.AudioMixerConfig = function() {
|
|
791
1008
|
function AudioMixerConfig(properties) {
|
|
792
1009
|
this.channels = [];
|
|
1010
|
+
this.outputs = [];
|
|
1011
|
+
this.masterPlugins = [];
|
|
793
1012
|
if (properties) {
|
|
794
1013
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
795
1014
|
if (properties[keys[i]] != null)
|
|
@@ -799,6 +1018,19 @@ var sesame = $root.sesame = (() => {
|
|
|
799
1018
|
AudioMixerConfig.prototype.channels = $util.emptyArray;
|
|
800
1019
|
AudioMixerConfig.prototype.outputType = 0;
|
|
801
1020
|
AudioMixerConfig.prototype.order = 0;
|
|
1021
|
+
AudioMixerConfig.prototype.outputs = $util.emptyArray;
|
|
1022
|
+
AudioMixerConfig.prototype.masterLevel = null;
|
|
1023
|
+
AudioMixerConfig.prototype.masterAutomationLevel = null;
|
|
1024
|
+
AudioMixerConfig.prototype.masterPlugins = $util.emptyArray;
|
|
1025
|
+
let $oneOfFields;
|
|
1026
|
+
Object.defineProperty(AudioMixerConfig.prototype, "_masterLevel", {
|
|
1027
|
+
get: $util.oneOfGetter($oneOfFields = ["masterLevel"]),
|
|
1028
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1029
|
+
});
|
|
1030
|
+
Object.defineProperty(AudioMixerConfig.prototype, "_masterAutomationLevel", {
|
|
1031
|
+
get: $util.oneOfGetter($oneOfFields = ["masterAutomationLevel"]),
|
|
1032
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1033
|
+
});
|
|
802
1034
|
AudioMixerConfig.create = function create(properties) {
|
|
803
1035
|
return new AudioMixerConfig(properties);
|
|
804
1036
|
};
|
|
@@ -821,6 +1053,28 @@ var sesame = $root.sesame = (() => {
|
|
|
821
1053
|
/* id 3, wireType 0 =*/
|
|
822
1054
|
24
|
|
823
1055
|
).uint32(message.order);
|
|
1056
|
+
if (message.outputs != null && message.outputs.length)
|
|
1057
|
+
for (let i = 0; i < message.outputs.length; ++i)
|
|
1058
|
+
$root.sesame.v1.audio.AudioMixerOutput.encode(message.outputs[i], writer.uint32(
|
|
1059
|
+
/* id 4, wireType 2 =*/
|
|
1060
|
+
34
|
|
1061
|
+
).fork()).ldelim();
|
|
1062
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
1063
|
+
writer.uint32(
|
|
1064
|
+
/* id 5, wireType 5 =*/
|
|
1065
|
+
45
|
|
1066
|
+
).float(message.masterLevel);
|
|
1067
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
1068
|
+
writer.uint32(
|
|
1069
|
+
/* id 6, wireType 5 =*/
|
|
1070
|
+
53
|
|
1071
|
+
).float(message.masterAutomationLevel);
|
|
1072
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
1073
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
1074
|
+
$root.sesame.v1.audio.AudioPlugin.encode(message.masterPlugins[i], writer.uint32(
|
|
1075
|
+
/* id 7, wireType 2 =*/
|
|
1076
|
+
58
|
|
1077
|
+
).fork()).ldelim();
|
|
824
1078
|
return writer;
|
|
825
1079
|
};
|
|
826
1080
|
AudioMixerConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -849,6 +1103,26 @@ var sesame = $root.sesame = (() => {
|
|
|
849
1103
|
message.order = reader.uint32();
|
|
850
1104
|
break;
|
|
851
1105
|
}
|
|
1106
|
+
case 4: {
|
|
1107
|
+
if (!(message.outputs && message.outputs.length))
|
|
1108
|
+
message.outputs = [];
|
|
1109
|
+
message.outputs.push($root.sesame.v1.audio.AudioMixerOutput.decode(reader, reader.uint32()));
|
|
1110
|
+
break;
|
|
1111
|
+
}
|
|
1112
|
+
case 5: {
|
|
1113
|
+
message.masterLevel = reader.float();
|
|
1114
|
+
break;
|
|
1115
|
+
}
|
|
1116
|
+
case 6: {
|
|
1117
|
+
message.masterAutomationLevel = reader.float();
|
|
1118
|
+
break;
|
|
1119
|
+
}
|
|
1120
|
+
case 7: {
|
|
1121
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
1122
|
+
message.masterPlugins = [];
|
|
1123
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioPlugin.decode(reader, reader.uint32()));
|
|
1124
|
+
break;
|
|
1125
|
+
}
|
|
852
1126
|
default:
|
|
853
1127
|
reader.skipType(tag & 7);
|
|
854
1128
|
break;
|
|
@@ -864,6 +1138,7 @@ var sesame = $root.sesame = (() => {
|
|
|
864
1138
|
AudioMixerConfig.verify = function verify(message) {
|
|
865
1139
|
if (typeof message !== "object" || message === null)
|
|
866
1140
|
return "object expected";
|
|
1141
|
+
let properties = {};
|
|
867
1142
|
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
868
1143
|
if (!Array.isArray(message.channels))
|
|
869
1144
|
return "channels: array expected";
|
|
@@ -886,6 +1161,34 @@ var sesame = $root.sesame = (() => {
|
|
|
886
1161
|
if (!$util.isInteger(message.order))
|
|
887
1162
|
return "order: integer expected";
|
|
888
1163
|
}
|
|
1164
|
+
if (message.outputs != null && message.hasOwnProperty("outputs")) {
|
|
1165
|
+
if (!Array.isArray(message.outputs))
|
|
1166
|
+
return "outputs: array expected";
|
|
1167
|
+
for (let i = 0; i < message.outputs.length; ++i) {
|
|
1168
|
+
let error = $root.sesame.v1.audio.AudioMixerOutput.verify(message.outputs[i]);
|
|
1169
|
+
if (error)
|
|
1170
|
+
return "outputs." + error;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
1174
|
+
properties._masterLevel = 1;
|
|
1175
|
+
if (typeof message.masterLevel !== "number")
|
|
1176
|
+
return "masterLevel: number expected";
|
|
1177
|
+
}
|
|
1178
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
1179
|
+
properties._masterAutomationLevel = 1;
|
|
1180
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
1181
|
+
return "masterAutomationLevel: number expected";
|
|
1182
|
+
}
|
|
1183
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
1184
|
+
if (!Array.isArray(message.masterPlugins))
|
|
1185
|
+
return "masterPlugins: array expected";
|
|
1186
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
1187
|
+
let error = $root.sesame.v1.audio.AudioPlugin.verify(message.masterPlugins[i]);
|
|
1188
|
+
if (error)
|
|
1189
|
+
return "masterPlugins." + error;
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
889
1192
|
return null;
|
|
890
1193
|
};
|
|
891
1194
|
AudioMixerConfig.fromObject = function fromObject(object) {
|
|
@@ -924,14 +1227,41 @@ var sesame = $root.sesame = (() => {
|
|
|
924
1227
|
}
|
|
925
1228
|
if (object.order != null)
|
|
926
1229
|
message.order = object.order >>> 0;
|
|
1230
|
+
if (object.outputs) {
|
|
1231
|
+
if (!Array.isArray(object.outputs))
|
|
1232
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.outputs: array expected");
|
|
1233
|
+
message.outputs = [];
|
|
1234
|
+
for (let i = 0; i < object.outputs.length; ++i) {
|
|
1235
|
+
if (typeof object.outputs[i] !== "object")
|
|
1236
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.outputs: object expected");
|
|
1237
|
+
message.outputs[i] = $root.sesame.v1.audio.AudioMixerOutput.fromObject(object.outputs[i]);
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
if (object.masterLevel != null)
|
|
1241
|
+
message.masterLevel = Number(object.masterLevel);
|
|
1242
|
+
if (object.masterAutomationLevel != null)
|
|
1243
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
1244
|
+
if (object.masterPlugins) {
|
|
1245
|
+
if (!Array.isArray(object.masterPlugins))
|
|
1246
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.masterPlugins: array expected");
|
|
1247
|
+
message.masterPlugins = [];
|
|
1248
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
1249
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
1250
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.masterPlugins: object expected");
|
|
1251
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioPlugin.fromObject(object.masterPlugins[i]);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
927
1254
|
return message;
|
|
928
1255
|
};
|
|
929
1256
|
AudioMixerConfig.toObject = function toObject(message, options) {
|
|
930
1257
|
if (!options)
|
|
931
1258
|
options = {};
|
|
932
1259
|
let object = {};
|
|
933
|
-
if (options.arrays || options.defaults)
|
|
1260
|
+
if (options.arrays || options.defaults) {
|
|
934
1261
|
object.channels = [];
|
|
1262
|
+
object.outputs = [];
|
|
1263
|
+
object.masterPlugins = [];
|
|
1264
|
+
}
|
|
935
1265
|
if (options.defaults) {
|
|
936
1266
|
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
937
1267
|
object.order = 0;
|
|
@@ -945,6 +1275,26 @@ var sesame = $root.sesame = (() => {
|
|
|
945
1275
|
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;
|
|
946
1276
|
if (message.order != null && message.hasOwnProperty("order"))
|
|
947
1277
|
object.order = message.order;
|
|
1278
|
+
if (message.outputs && message.outputs.length) {
|
|
1279
|
+
object.outputs = [];
|
|
1280
|
+
for (let j = 0; j < message.outputs.length; ++j)
|
|
1281
|
+
object.outputs[j] = $root.sesame.v1.audio.AudioMixerOutput.toObject(message.outputs[j], options);
|
|
1282
|
+
}
|
|
1283
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
1284
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
1285
|
+
if (options.oneofs)
|
|
1286
|
+
object._masterLevel = "masterLevel";
|
|
1287
|
+
}
|
|
1288
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
1289
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
1290
|
+
if (options.oneofs)
|
|
1291
|
+
object._masterAutomationLevel = "masterAutomationLevel";
|
|
1292
|
+
}
|
|
1293
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
1294
|
+
object.masterPlugins = [];
|
|
1295
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
1296
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioPlugin.toObject(message.masterPlugins[j], options);
|
|
1297
|
+
}
|
|
948
1298
|
return object;
|
|
949
1299
|
};
|
|
950
1300
|
AudioMixerConfig.prototype.toJSON = function toJSON() {
|
|
@@ -1656,6 +2006,11 @@ var sesame = $root.sesame = (() => {
|
|
|
1656
2006
|
AudioChannelStatus.prototype.hasData = false;
|
|
1657
2007
|
AudioChannelStatus.prototype.readErrors = 0;
|
|
1658
2008
|
AudioChannelStatus.prototype.plugins = $util.emptyArray;
|
|
2009
|
+
AudioChannelStatus.prototype.mute = false;
|
|
2010
|
+
AudioChannelStatus.prototype.automationLevel = 0;
|
|
2011
|
+
AudioChannelStatus.prototype.automationMute = false;
|
|
2012
|
+
AudioChannelStatus.prototype.effectiveLevel = 0;
|
|
2013
|
+
AudioChannelStatus.prototype.effectiveMute = false;
|
|
1659
2014
|
AudioChannelStatus.create = function create(properties) {
|
|
1660
2015
|
return new AudioChannelStatus(properties);
|
|
1661
2016
|
};
|
|
@@ -1707,6 +2062,31 @@ var sesame = $root.sesame = (() => {
|
|
|
1707
2062
|
/* id 8, wireType 2 =*/
|
|
1708
2063
|
66
|
|
1709
2064
|
).fork()).ldelim();
|
|
2065
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
2066
|
+
writer.uint32(
|
|
2067
|
+
/* id 9, wireType 0 =*/
|
|
2068
|
+
72
|
|
2069
|
+
).bool(message.mute);
|
|
2070
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
2071
|
+
writer.uint32(
|
|
2072
|
+
/* id 10, wireType 5 =*/
|
|
2073
|
+
85
|
|
2074
|
+
).float(message.automationLevel);
|
|
2075
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
2076
|
+
writer.uint32(
|
|
2077
|
+
/* id 11, wireType 0 =*/
|
|
2078
|
+
88
|
|
2079
|
+
).bool(message.automationMute);
|
|
2080
|
+
if (message.effectiveLevel != null && Object.hasOwnProperty.call(message, "effectiveLevel"))
|
|
2081
|
+
writer.uint32(
|
|
2082
|
+
/* id 12, wireType 5 =*/
|
|
2083
|
+
101
|
|
2084
|
+
).float(message.effectiveLevel);
|
|
2085
|
+
if (message.effectiveMute != null && Object.hasOwnProperty.call(message, "effectiveMute"))
|
|
2086
|
+
writer.uint32(
|
|
2087
|
+
/* id 13, wireType 0 =*/
|
|
2088
|
+
104
|
|
2089
|
+
).bool(message.effectiveMute);
|
|
1710
2090
|
return writer;
|
|
1711
2091
|
};
|
|
1712
2092
|
AudioChannelStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -1762,6 +2142,26 @@ var sesame = $root.sesame = (() => {
|
|
|
1762
2142
|
message.plugins.push($root.sesame.v1.audio.AudioChannelPluginStatus.decode(reader, reader.uint32()));
|
|
1763
2143
|
break;
|
|
1764
2144
|
}
|
|
2145
|
+
case 9: {
|
|
2146
|
+
message.mute = reader.bool();
|
|
2147
|
+
break;
|
|
2148
|
+
}
|
|
2149
|
+
case 10: {
|
|
2150
|
+
message.automationLevel = reader.float();
|
|
2151
|
+
break;
|
|
2152
|
+
}
|
|
2153
|
+
case 11: {
|
|
2154
|
+
message.automationMute = reader.bool();
|
|
2155
|
+
break;
|
|
2156
|
+
}
|
|
2157
|
+
case 12: {
|
|
2158
|
+
message.effectiveLevel = reader.float();
|
|
2159
|
+
break;
|
|
2160
|
+
}
|
|
2161
|
+
case 13: {
|
|
2162
|
+
message.effectiveMute = reader.bool();
|
|
2163
|
+
break;
|
|
2164
|
+
}
|
|
1765
2165
|
default:
|
|
1766
2166
|
reader.skipType(tag & 7);
|
|
1767
2167
|
break;
|
|
@@ -1822,6 +2222,26 @@ var sesame = $root.sesame = (() => {
|
|
|
1822
2222
|
return "plugins." + error;
|
|
1823
2223
|
}
|
|
1824
2224
|
}
|
|
2225
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
2226
|
+
if (typeof message.mute !== "boolean")
|
|
2227
|
+
return "mute: boolean expected";
|
|
2228
|
+
}
|
|
2229
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
2230
|
+
if (typeof message.automationLevel !== "number")
|
|
2231
|
+
return "automationLevel: number expected";
|
|
2232
|
+
}
|
|
2233
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
2234
|
+
if (typeof message.automationMute !== "boolean")
|
|
2235
|
+
return "automationMute: boolean expected";
|
|
2236
|
+
}
|
|
2237
|
+
if (message.effectiveLevel != null && message.hasOwnProperty("effectiveLevel")) {
|
|
2238
|
+
if (typeof message.effectiveLevel !== "number")
|
|
2239
|
+
return "effectiveLevel: number expected";
|
|
2240
|
+
}
|
|
2241
|
+
if (message.effectiveMute != null && message.hasOwnProperty("effectiveMute")) {
|
|
2242
|
+
if (typeof message.effectiveMute !== "boolean")
|
|
2243
|
+
return "effectiveMute: boolean expected";
|
|
2244
|
+
}
|
|
1825
2245
|
return null;
|
|
1826
2246
|
};
|
|
1827
2247
|
AudioChannelStatus.fromObject = function fromObject(object) {
|
|
@@ -1875,6 +2295,16 @@ var sesame = $root.sesame = (() => {
|
|
|
1875
2295
|
message.plugins[i] = $root.sesame.v1.audio.AudioChannelPluginStatus.fromObject(object.plugins[i]);
|
|
1876
2296
|
}
|
|
1877
2297
|
}
|
|
2298
|
+
if (object.mute != null)
|
|
2299
|
+
message.mute = Boolean(object.mute);
|
|
2300
|
+
if (object.automationLevel != null)
|
|
2301
|
+
message.automationLevel = Number(object.automationLevel);
|
|
2302
|
+
if (object.automationMute != null)
|
|
2303
|
+
message.automationMute = Boolean(object.automationMute);
|
|
2304
|
+
if (object.effectiveLevel != null)
|
|
2305
|
+
message.effectiveLevel = Number(object.effectiveLevel);
|
|
2306
|
+
if (object.effectiveMute != null)
|
|
2307
|
+
message.effectiveMute = Boolean(object.effectiveMute);
|
|
1878
2308
|
return message;
|
|
1879
2309
|
};
|
|
1880
2310
|
AudioChannelStatus.toObject = function toObject(message, options) {
|
|
@@ -1892,6 +2322,11 @@ var sesame = $root.sesame = (() => {
|
|
|
1892
2322
|
object.pan = 0;
|
|
1893
2323
|
object.hasData = false;
|
|
1894
2324
|
object.readErrors = 0;
|
|
2325
|
+
object.mute = false;
|
|
2326
|
+
object.automationLevel = 0;
|
|
2327
|
+
object.automationMute = false;
|
|
2328
|
+
object.effectiveLevel = 0;
|
|
2329
|
+
object.effectiveMute = false;
|
|
1895
2330
|
}
|
|
1896
2331
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
1897
2332
|
object.id = message.id;
|
|
@@ -1915,6 +2350,16 @@ var sesame = $root.sesame = (() => {
|
|
|
1915
2350
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
1916
2351
|
object.plugins[j] = $root.sesame.v1.audio.AudioChannelPluginStatus.toObject(message.plugins[j], options);
|
|
1917
2352
|
}
|
|
2353
|
+
if (message.mute != null && message.hasOwnProperty("mute"))
|
|
2354
|
+
object.mute = message.mute;
|
|
2355
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel"))
|
|
2356
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
2357
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute"))
|
|
2358
|
+
object.automationMute = message.automationMute;
|
|
2359
|
+
if (message.effectiveLevel != null && message.hasOwnProperty("effectiveLevel"))
|
|
2360
|
+
object.effectiveLevel = options.json && !isFinite(message.effectiveLevel) ? String(message.effectiveLevel) : message.effectiveLevel;
|
|
2361
|
+
if (message.effectiveMute != null && message.hasOwnProperty("effectiveMute"))
|
|
2362
|
+
object.effectiveMute = message.effectiveMute;
|
|
1918
2363
|
return object;
|
|
1919
2364
|
};
|
|
1920
2365
|
AudioChannelStatus.prototype.toJSON = function toJSON() {
|
|
@@ -1928,24 +2373,25 @@ var sesame = $root.sesame = (() => {
|
|
|
1928
2373
|
};
|
|
1929
2374
|
return AudioChannelStatus;
|
|
1930
2375
|
}();
|
|
1931
|
-
audio.
|
|
1932
|
-
function
|
|
2376
|
+
audio.AudioMixerOutputStatus = function() {
|
|
2377
|
+
function AudioMixerOutputStatus(properties) {
|
|
1933
2378
|
this.vu = [];
|
|
1934
|
-
this.
|
|
2379
|
+
this.excludedChannelIds = [];
|
|
1935
2380
|
if (properties) {
|
|
1936
2381
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1937
2382
|
if (properties[keys[i]] != null)
|
|
1938
2383
|
this[keys[i]] = properties[keys[i]];
|
|
1939
2384
|
}
|
|
1940
2385
|
}
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
2386
|
+
AudioMixerOutputStatus.prototype.id = "";
|
|
2387
|
+
AudioMixerOutputStatus.prototype.outputType = 0;
|
|
2388
|
+
AudioMixerOutputStatus.prototype.vu = $util.emptyArray;
|
|
2389
|
+
AudioMixerOutputStatus.prototype.excludedChannelIds = $util.emptyArray;
|
|
2390
|
+
AudioMixerOutputStatus.prototype.includeMasterPlugins = false;
|
|
2391
|
+
AudioMixerOutputStatus.create = function create(properties) {
|
|
2392
|
+
return new AudioMixerOutputStatus(properties);
|
|
2393
|
+
};
|
|
2394
|
+
AudioMixerOutputStatus.encode = function encode(message, writer) {
|
|
1949
2395
|
if (!writer)
|
|
1950
2396
|
writer = $Writer.create();
|
|
1951
2397
|
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
@@ -1967,21 +2413,26 @@ var sesame = $root.sesame = (() => {
|
|
|
1967
2413
|
writer.float(message.vu[i]);
|
|
1968
2414
|
writer.ldelim();
|
|
1969
2415
|
}
|
|
1970
|
-
if (message.
|
|
1971
|
-
for (let i = 0; i < message.
|
|
1972
|
-
|
|
2416
|
+
if (message.excludedChannelIds != null && message.excludedChannelIds.length)
|
|
2417
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
2418
|
+
writer.uint32(
|
|
1973
2419
|
/* id 4, wireType 2 =*/
|
|
1974
2420
|
34
|
|
1975
|
-
).
|
|
2421
|
+
).string(message.excludedChannelIds[i]);
|
|
2422
|
+
if (message.includeMasterPlugins != null && Object.hasOwnProperty.call(message, "includeMasterPlugins"))
|
|
2423
|
+
writer.uint32(
|
|
2424
|
+
/* id 5, wireType 0 =*/
|
|
2425
|
+
40
|
|
2426
|
+
).bool(message.includeMasterPlugins);
|
|
1976
2427
|
return writer;
|
|
1977
2428
|
};
|
|
1978
|
-
|
|
2429
|
+
AudioMixerOutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1979
2430
|
return this.encode(message, writer).ldelim();
|
|
1980
2431
|
};
|
|
1981
|
-
|
|
2432
|
+
AudioMixerOutputStatus.decode = function decode(reader, length, error) {
|
|
1982
2433
|
if (!(reader instanceof $Reader))
|
|
1983
2434
|
reader = $Reader.create(reader);
|
|
1984
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.
|
|
2435
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerOutputStatus();
|
|
1985
2436
|
while (reader.pos < end) {
|
|
1986
2437
|
let tag = reader.uint32();
|
|
1987
2438
|
if (tag === error)
|
|
@@ -2007,9 +2458,13 @@ var sesame = $root.sesame = (() => {
|
|
|
2007
2458
|
break;
|
|
2008
2459
|
}
|
|
2009
2460
|
case 4: {
|
|
2010
|
-
if (!(message.
|
|
2011
|
-
message.
|
|
2012
|
-
message.
|
|
2461
|
+
if (!(message.excludedChannelIds && message.excludedChannelIds.length))
|
|
2462
|
+
message.excludedChannelIds = [];
|
|
2463
|
+
message.excludedChannelIds.push(reader.string());
|
|
2464
|
+
break;
|
|
2465
|
+
}
|
|
2466
|
+
case 5: {
|
|
2467
|
+
message.includeMasterPlugins = reader.bool();
|
|
2013
2468
|
break;
|
|
2014
2469
|
}
|
|
2015
2470
|
default:
|
|
@@ -2019,12 +2474,12 @@ var sesame = $root.sesame = (() => {
|
|
|
2019
2474
|
}
|
|
2020
2475
|
return message;
|
|
2021
2476
|
};
|
|
2022
|
-
|
|
2477
|
+
AudioMixerOutputStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
2023
2478
|
if (!(reader instanceof $Reader))
|
|
2024
2479
|
reader = new $Reader(reader);
|
|
2025
2480
|
return this.decode(reader, reader.uint32());
|
|
2026
2481
|
};
|
|
2027
|
-
|
|
2482
|
+
AudioMixerOutputStatus.verify = function verify(message) {
|
|
2028
2483
|
if (typeof message !== "object" || message === null)
|
|
2029
2484
|
return "object expected";
|
|
2030
2485
|
if (message.id != null && message.hasOwnProperty("id")) {
|
|
@@ -2047,15 +2502,321 @@ var sesame = $root.sesame = (() => {
|
|
|
2047
2502
|
if (typeof message.vu[i] !== "number")
|
|
2048
2503
|
return "vu: number[] expected";
|
|
2049
2504
|
}
|
|
2050
|
-
if (message.
|
|
2051
|
-
if (!Array.isArray(message.
|
|
2052
|
-
return "
|
|
2053
|
-
for (let i = 0; i < message.
|
|
2054
|
-
|
|
2505
|
+
if (message.excludedChannelIds != null && message.hasOwnProperty("excludedChannelIds")) {
|
|
2506
|
+
if (!Array.isArray(message.excludedChannelIds))
|
|
2507
|
+
return "excludedChannelIds: array expected";
|
|
2508
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
2509
|
+
if (!$util.isString(message.excludedChannelIds[i]))
|
|
2510
|
+
return "excludedChannelIds: string[] expected";
|
|
2511
|
+
}
|
|
2512
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
2513
|
+
if (typeof message.includeMasterPlugins !== "boolean")
|
|
2514
|
+
return "includeMasterPlugins: boolean expected";
|
|
2515
|
+
}
|
|
2516
|
+
return null;
|
|
2517
|
+
};
|
|
2518
|
+
AudioMixerOutputStatus.fromObject = function fromObject(object) {
|
|
2519
|
+
if (object instanceof $root.sesame.v1.audio.AudioMixerOutputStatus)
|
|
2520
|
+
return object;
|
|
2521
|
+
let message = new $root.sesame.v1.audio.AudioMixerOutputStatus();
|
|
2522
|
+
if (object.id != null)
|
|
2523
|
+
message.id = String(object.id);
|
|
2524
|
+
switch (object.outputType) {
|
|
2525
|
+
default:
|
|
2526
|
+
if (typeof object.outputType === "number") {
|
|
2527
|
+
message.outputType = object.outputType;
|
|
2528
|
+
break;
|
|
2529
|
+
}
|
|
2530
|
+
break;
|
|
2531
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED":
|
|
2532
|
+
case 0:
|
|
2533
|
+
message.outputType = 0;
|
|
2534
|
+
break;
|
|
2535
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_MONO":
|
|
2536
|
+
case 1:
|
|
2537
|
+
message.outputType = 1;
|
|
2538
|
+
break;
|
|
2539
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_STEREO":
|
|
2540
|
+
case 2:
|
|
2541
|
+
message.outputType = 2;
|
|
2542
|
+
break;
|
|
2543
|
+
}
|
|
2544
|
+
if (object.vu) {
|
|
2545
|
+
if (!Array.isArray(object.vu))
|
|
2546
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutputStatus.vu: array expected");
|
|
2547
|
+
message.vu = [];
|
|
2548
|
+
for (let i = 0; i < object.vu.length; ++i)
|
|
2549
|
+
message.vu[i] = Number(object.vu[i]);
|
|
2550
|
+
}
|
|
2551
|
+
if (object.excludedChannelIds) {
|
|
2552
|
+
if (!Array.isArray(object.excludedChannelIds))
|
|
2553
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutputStatus.excludedChannelIds: array expected");
|
|
2554
|
+
message.excludedChannelIds = [];
|
|
2555
|
+
for (let i = 0; i < object.excludedChannelIds.length; ++i)
|
|
2556
|
+
message.excludedChannelIds[i] = String(object.excludedChannelIds[i]);
|
|
2557
|
+
}
|
|
2558
|
+
if (object.includeMasterPlugins != null)
|
|
2559
|
+
message.includeMasterPlugins = Boolean(object.includeMasterPlugins);
|
|
2560
|
+
return message;
|
|
2561
|
+
};
|
|
2562
|
+
AudioMixerOutputStatus.toObject = function toObject(message, options) {
|
|
2563
|
+
if (!options)
|
|
2564
|
+
options = {};
|
|
2565
|
+
let object = {};
|
|
2566
|
+
if (options.arrays || options.defaults) {
|
|
2567
|
+
object.vu = [];
|
|
2568
|
+
object.excludedChannelIds = [];
|
|
2569
|
+
}
|
|
2570
|
+
if (options.defaults) {
|
|
2571
|
+
object.id = "";
|
|
2572
|
+
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
2573
|
+
object.includeMasterPlugins = false;
|
|
2574
|
+
}
|
|
2575
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2576
|
+
object.id = message.id;
|
|
2577
|
+
if (message.outputType != null && message.hasOwnProperty("outputType"))
|
|
2578
|
+
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;
|
|
2579
|
+
if (message.vu && message.vu.length) {
|
|
2580
|
+
object.vu = [];
|
|
2581
|
+
for (let j = 0; j < message.vu.length; ++j)
|
|
2582
|
+
object.vu[j] = options.json && !isFinite(message.vu[j]) ? String(message.vu[j]) : message.vu[j];
|
|
2583
|
+
}
|
|
2584
|
+
if (message.excludedChannelIds && message.excludedChannelIds.length) {
|
|
2585
|
+
object.excludedChannelIds = [];
|
|
2586
|
+
for (let j = 0; j < message.excludedChannelIds.length; ++j)
|
|
2587
|
+
object.excludedChannelIds[j] = message.excludedChannelIds[j];
|
|
2588
|
+
}
|
|
2589
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins"))
|
|
2590
|
+
object.includeMasterPlugins = message.includeMasterPlugins;
|
|
2591
|
+
return object;
|
|
2592
|
+
};
|
|
2593
|
+
AudioMixerOutputStatus.prototype.toJSON = function toJSON() {
|
|
2594
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
2595
|
+
};
|
|
2596
|
+
AudioMixerOutputStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2597
|
+
if (typeUrlPrefix === void 0) {
|
|
2598
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2599
|
+
}
|
|
2600
|
+
return typeUrlPrefix + "/sesame.v1.audio.AudioMixerOutputStatus";
|
|
2601
|
+
};
|
|
2602
|
+
return AudioMixerOutputStatus;
|
|
2603
|
+
}();
|
|
2604
|
+
audio.AudioMixerStatus = function() {
|
|
2605
|
+
function AudioMixerStatus(properties) {
|
|
2606
|
+
this.vu = [];
|
|
2607
|
+
this.channels = [];
|
|
2608
|
+
this.masterPlugins = [];
|
|
2609
|
+
this.outputs = [];
|
|
2610
|
+
if (properties) {
|
|
2611
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2612
|
+
if (properties[keys[i]] != null)
|
|
2613
|
+
this[keys[i]] = properties[keys[i]];
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
AudioMixerStatus.prototype.id = "";
|
|
2617
|
+
AudioMixerStatus.prototype.outputType = 0;
|
|
2618
|
+
AudioMixerStatus.prototype.vu = $util.emptyArray;
|
|
2619
|
+
AudioMixerStatus.prototype.channels = $util.emptyArray;
|
|
2620
|
+
AudioMixerStatus.prototype.masterLevel = 0;
|
|
2621
|
+
AudioMixerStatus.prototype.masterAutomationLevel = 0;
|
|
2622
|
+
AudioMixerStatus.prototype.masterEffectiveLevel = 0;
|
|
2623
|
+
AudioMixerStatus.prototype.masterPlugins = $util.emptyArray;
|
|
2624
|
+
AudioMixerStatus.prototype.outputs = $util.emptyArray;
|
|
2625
|
+
AudioMixerStatus.create = function create(properties) {
|
|
2626
|
+
return new AudioMixerStatus(properties);
|
|
2627
|
+
};
|
|
2628
|
+
AudioMixerStatus.encode = function encode(message, writer) {
|
|
2629
|
+
if (!writer)
|
|
2630
|
+
writer = $Writer.create();
|
|
2631
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
2632
|
+
writer.uint32(
|
|
2633
|
+
/* id 1, wireType 2 =*/
|
|
2634
|
+
10
|
|
2635
|
+
).string(message.id);
|
|
2636
|
+
if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType"))
|
|
2637
|
+
writer.uint32(
|
|
2638
|
+
/* id 2, wireType 0 =*/
|
|
2639
|
+
16
|
|
2640
|
+
).int32(message.outputType);
|
|
2641
|
+
if (message.vu != null && message.vu.length) {
|
|
2642
|
+
writer.uint32(
|
|
2643
|
+
/* id 3, wireType 2 =*/
|
|
2644
|
+
26
|
|
2645
|
+
).fork();
|
|
2646
|
+
for (let i = 0; i < message.vu.length; ++i)
|
|
2647
|
+
writer.float(message.vu[i]);
|
|
2648
|
+
writer.ldelim();
|
|
2649
|
+
}
|
|
2650
|
+
if (message.channels != null && message.channels.length)
|
|
2651
|
+
for (let i = 0; i < message.channels.length; ++i)
|
|
2652
|
+
$root.sesame.v1.audio.AudioChannelStatus.encode(message.channels[i], writer.uint32(
|
|
2653
|
+
/* id 4, wireType 2 =*/
|
|
2654
|
+
34
|
|
2655
|
+
).fork()).ldelim();
|
|
2656
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
2657
|
+
writer.uint32(
|
|
2658
|
+
/* id 5, wireType 5 =*/
|
|
2659
|
+
45
|
|
2660
|
+
).float(message.masterLevel);
|
|
2661
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
2662
|
+
writer.uint32(
|
|
2663
|
+
/* id 6, wireType 5 =*/
|
|
2664
|
+
53
|
|
2665
|
+
).float(message.masterAutomationLevel);
|
|
2666
|
+
if (message.masterEffectiveLevel != null && Object.hasOwnProperty.call(message, "masterEffectiveLevel"))
|
|
2667
|
+
writer.uint32(
|
|
2668
|
+
/* id 7, wireType 5 =*/
|
|
2669
|
+
61
|
|
2670
|
+
).float(message.masterEffectiveLevel);
|
|
2671
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
2672
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
2673
|
+
$root.sesame.v1.audio.AudioChannelPluginStatus.encode(message.masterPlugins[i], writer.uint32(
|
|
2674
|
+
/* id 8, wireType 2 =*/
|
|
2675
|
+
66
|
|
2676
|
+
).fork()).ldelim();
|
|
2677
|
+
if (message.outputs != null && message.outputs.length)
|
|
2678
|
+
for (let i = 0; i < message.outputs.length; ++i)
|
|
2679
|
+
$root.sesame.v1.audio.AudioMixerOutputStatus.encode(message.outputs[i], writer.uint32(
|
|
2680
|
+
/* id 9, wireType 2 =*/
|
|
2681
|
+
74
|
|
2682
|
+
).fork()).ldelim();
|
|
2683
|
+
return writer;
|
|
2684
|
+
};
|
|
2685
|
+
AudioMixerStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2686
|
+
return this.encode(message, writer).ldelim();
|
|
2687
|
+
};
|
|
2688
|
+
AudioMixerStatus.decode = function decode(reader, length, error) {
|
|
2689
|
+
if (!(reader instanceof $Reader))
|
|
2690
|
+
reader = $Reader.create(reader);
|
|
2691
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerStatus();
|
|
2692
|
+
while (reader.pos < end) {
|
|
2693
|
+
let tag = reader.uint32();
|
|
2694
|
+
if (tag === error)
|
|
2695
|
+
break;
|
|
2696
|
+
switch (tag >>> 3) {
|
|
2697
|
+
case 1: {
|
|
2698
|
+
message.id = reader.string();
|
|
2699
|
+
break;
|
|
2700
|
+
}
|
|
2701
|
+
case 2: {
|
|
2702
|
+
message.outputType = reader.int32();
|
|
2703
|
+
break;
|
|
2704
|
+
}
|
|
2705
|
+
case 3: {
|
|
2706
|
+
if (!(message.vu && message.vu.length))
|
|
2707
|
+
message.vu = [];
|
|
2708
|
+
if ((tag & 7) === 2) {
|
|
2709
|
+
let end2 = reader.uint32() + reader.pos;
|
|
2710
|
+
while (reader.pos < end2)
|
|
2711
|
+
message.vu.push(reader.float());
|
|
2712
|
+
} else
|
|
2713
|
+
message.vu.push(reader.float());
|
|
2714
|
+
break;
|
|
2715
|
+
}
|
|
2716
|
+
case 4: {
|
|
2717
|
+
if (!(message.channels && message.channels.length))
|
|
2718
|
+
message.channels = [];
|
|
2719
|
+
message.channels.push($root.sesame.v1.audio.AudioChannelStatus.decode(reader, reader.uint32()));
|
|
2720
|
+
break;
|
|
2721
|
+
}
|
|
2722
|
+
case 5: {
|
|
2723
|
+
message.masterLevel = reader.float();
|
|
2724
|
+
break;
|
|
2725
|
+
}
|
|
2726
|
+
case 6: {
|
|
2727
|
+
message.masterAutomationLevel = reader.float();
|
|
2728
|
+
break;
|
|
2729
|
+
}
|
|
2730
|
+
case 7: {
|
|
2731
|
+
message.masterEffectiveLevel = reader.float();
|
|
2732
|
+
break;
|
|
2733
|
+
}
|
|
2734
|
+
case 8: {
|
|
2735
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
2736
|
+
message.masterPlugins = [];
|
|
2737
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioChannelPluginStatus.decode(reader, reader.uint32()));
|
|
2738
|
+
break;
|
|
2739
|
+
}
|
|
2740
|
+
case 9: {
|
|
2741
|
+
if (!(message.outputs && message.outputs.length))
|
|
2742
|
+
message.outputs = [];
|
|
2743
|
+
message.outputs.push($root.sesame.v1.audio.AudioMixerOutputStatus.decode(reader, reader.uint32()));
|
|
2744
|
+
break;
|
|
2745
|
+
}
|
|
2746
|
+
default:
|
|
2747
|
+
reader.skipType(tag & 7);
|
|
2748
|
+
break;
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
return message;
|
|
2752
|
+
};
|
|
2753
|
+
AudioMixerStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
2754
|
+
if (!(reader instanceof $Reader))
|
|
2755
|
+
reader = new $Reader(reader);
|
|
2756
|
+
return this.decode(reader, reader.uint32());
|
|
2757
|
+
};
|
|
2758
|
+
AudioMixerStatus.verify = function verify(message) {
|
|
2759
|
+
if (typeof message !== "object" || message === null)
|
|
2760
|
+
return "object expected";
|
|
2761
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
2762
|
+
if (!$util.isString(message.id))
|
|
2763
|
+
return "id: string expected";
|
|
2764
|
+
}
|
|
2765
|
+
if (message.outputType != null && message.hasOwnProperty("outputType"))
|
|
2766
|
+
switch (message.outputType) {
|
|
2767
|
+
default:
|
|
2768
|
+
return "outputType: enum value expected";
|
|
2769
|
+
case 0:
|
|
2770
|
+
case 1:
|
|
2771
|
+
case 2:
|
|
2772
|
+
break;
|
|
2773
|
+
}
|
|
2774
|
+
if (message.vu != null && message.hasOwnProperty("vu")) {
|
|
2775
|
+
if (!Array.isArray(message.vu))
|
|
2776
|
+
return "vu: array expected";
|
|
2777
|
+
for (let i = 0; i < message.vu.length; ++i)
|
|
2778
|
+
if (typeof message.vu[i] !== "number")
|
|
2779
|
+
return "vu: number[] expected";
|
|
2780
|
+
}
|
|
2781
|
+
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
2782
|
+
if (!Array.isArray(message.channels))
|
|
2783
|
+
return "channels: array expected";
|
|
2784
|
+
for (let i = 0; i < message.channels.length; ++i) {
|
|
2785
|
+
let error = $root.sesame.v1.audio.AudioChannelStatus.verify(message.channels[i]);
|
|
2055
2786
|
if (error)
|
|
2056
2787
|
return "channels." + error;
|
|
2057
2788
|
}
|
|
2058
2789
|
}
|
|
2790
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
2791
|
+
if (typeof message.masterLevel !== "number")
|
|
2792
|
+
return "masterLevel: number expected";
|
|
2793
|
+
}
|
|
2794
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
2795
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
2796
|
+
return "masterAutomationLevel: number expected";
|
|
2797
|
+
}
|
|
2798
|
+
if (message.masterEffectiveLevel != null && message.hasOwnProperty("masterEffectiveLevel")) {
|
|
2799
|
+
if (typeof message.masterEffectiveLevel !== "number")
|
|
2800
|
+
return "masterEffectiveLevel: number expected";
|
|
2801
|
+
}
|
|
2802
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
2803
|
+
if (!Array.isArray(message.masterPlugins))
|
|
2804
|
+
return "masterPlugins: array expected";
|
|
2805
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
2806
|
+
let error = $root.sesame.v1.audio.AudioChannelPluginStatus.verify(message.masterPlugins[i]);
|
|
2807
|
+
if (error)
|
|
2808
|
+
return "masterPlugins." + error;
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
if (message.outputs != null && message.hasOwnProperty("outputs")) {
|
|
2812
|
+
if (!Array.isArray(message.outputs))
|
|
2813
|
+
return "outputs: array expected";
|
|
2814
|
+
for (let i = 0; i < message.outputs.length; ++i) {
|
|
2815
|
+
let error = $root.sesame.v1.audio.AudioMixerOutputStatus.verify(message.outputs[i]);
|
|
2816
|
+
if (error)
|
|
2817
|
+
return "outputs." + error;
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2059
2820
|
return null;
|
|
2060
2821
|
};
|
|
2061
2822
|
AudioMixerStatus.fromObject = function fromObject(object) {
|
|
@@ -2101,6 +2862,32 @@ var sesame = $root.sesame = (() => {
|
|
|
2101
2862
|
message.channels[i] = $root.sesame.v1.audio.AudioChannelStatus.fromObject(object.channels[i]);
|
|
2102
2863
|
}
|
|
2103
2864
|
}
|
|
2865
|
+
if (object.masterLevel != null)
|
|
2866
|
+
message.masterLevel = Number(object.masterLevel);
|
|
2867
|
+
if (object.masterAutomationLevel != null)
|
|
2868
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
2869
|
+
if (object.masterEffectiveLevel != null)
|
|
2870
|
+
message.masterEffectiveLevel = Number(object.masterEffectiveLevel);
|
|
2871
|
+
if (object.masterPlugins) {
|
|
2872
|
+
if (!Array.isArray(object.masterPlugins))
|
|
2873
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.masterPlugins: array expected");
|
|
2874
|
+
message.masterPlugins = [];
|
|
2875
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
2876
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
2877
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.masterPlugins: object expected");
|
|
2878
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioChannelPluginStatus.fromObject(object.masterPlugins[i]);
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
if (object.outputs) {
|
|
2882
|
+
if (!Array.isArray(object.outputs))
|
|
2883
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.outputs: array expected");
|
|
2884
|
+
message.outputs = [];
|
|
2885
|
+
for (let i = 0; i < object.outputs.length; ++i) {
|
|
2886
|
+
if (typeof object.outputs[i] !== "object")
|
|
2887
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.outputs: object expected");
|
|
2888
|
+
message.outputs[i] = $root.sesame.v1.audio.AudioMixerOutputStatus.fromObject(object.outputs[i]);
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2104
2891
|
return message;
|
|
2105
2892
|
};
|
|
2106
2893
|
AudioMixerStatus.toObject = function toObject(message, options) {
|
|
@@ -2110,10 +2897,15 @@ var sesame = $root.sesame = (() => {
|
|
|
2110
2897
|
if (options.arrays || options.defaults) {
|
|
2111
2898
|
object.vu = [];
|
|
2112
2899
|
object.channels = [];
|
|
2900
|
+
object.masterPlugins = [];
|
|
2901
|
+
object.outputs = [];
|
|
2113
2902
|
}
|
|
2114
2903
|
if (options.defaults) {
|
|
2115
2904
|
object.id = "";
|
|
2116
2905
|
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
2906
|
+
object.masterLevel = 0;
|
|
2907
|
+
object.masterAutomationLevel = 0;
|
|
2908
|
+
object.masterEffectiveLevel = 0;
|
|
2117
2909
|
}
|
|
2118
2910
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
2119
2911
|
object.id = message.id;
|
|
@@ -2129,6 +2921,22 @@ var sesame = $root.sesame = (() => {
|
|
|
2129
2921
|
for (let j = 0; j < message.channels.length; ++j)
|
|
2130
2922
|
object.channels[j] = $root.sesame.v1.audio.AudioChannelStatus.toObject(message.channels[j], options);
|
|
2131
2923
|
}
|
|
2924
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel"))
|
|
2925
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
2926
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel"))
|
|
2927
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
2928
|
+
if (message.masterEffectiveLevel != null && message.hasOwnProperty("masterEffectiveLevel"))
|
|
2929
|
+
object.masterEffectiveLevel = options.json && !isFinite(message.masterEffectiveLevel) ? String(message.masterEffectiveLevel) : message.masterEffectiveLevel;
|
|
2930
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
2931
|
+
object.masterPlugins = [];
|
|
2932
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
2933
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioChannelPluginStatus.toObject(message.masterPlugins[j], options);
|
|
2934
|
+
}
|
|
2935
|
+
if (message.outputs && message.outputs.length) {
|
|
2936
|
+
object.outputs = [];
|
|
2937
|
+
for (let j = 0; j < message.outputs.length; ++j)
|
|
2938
|
+
object.outputs[j] = $root.sesame.v1.audio.AudioMixerOutputStatus.toObject(message.outputs[j], options);
|
|
2939
|
+
}
|
|
2132
2940
|
return object;
|
|
2133
2941
|
};
|
|
2134
2942
|
AudioMixerStatus.prototype.toJSON = function toJSON() {
|
|
@@ -2283,6 +3091,9 @@ var sesame = $root.sesame = (() => {
|
|
|
2283
3091
|
AudioChannelControlRequest.prototype.level = null;
|
|
2284
3092
|
AudioChannelControlRequest.prototype.pan = null;
|
|
2285
3093
|
AudioChannelControlRequest.prototype.plugins = $util.emptyArray;
|
|
3094
|
+
AudioChannelControlRequest.prototype.mute = null;
|
|
3095
|
+
AudioChannelControlRequest.prototype.automationLevel = null;
|
|
3096
|
+
AudioChannelControlRequest.prototype.automationMute = null;
|
|
2286
3097
|
let $oneOfFields;
|
|
2287
3098
|
Object.defineProperty(AudioChannelControlRequest.prototype, "_level", {
|
|
2288
3099
|
get: $util.oneOfGetter($oneOfFields = ["level"]),
|
|
@@ -2292,6 +3103,18 @@ var sesame = $root.sesame = (() => {
|
|
|
2292
3103
|
get: $util.oneOfGetter($oneOfFields = ["pan"]),
|
|
2293
3104
|
set: $util.oneOfSetter($oneOfFields)
|
|
2294
3105
|
});
|
|
3106
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_mute", {
|
|
3107
|
+
get: $util.oneOfGetter($oneOfFields = ["mute"]),
|
|
3108
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3109
|
+
});
|
|
3110
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_automationLevel", {
|
|
3111
|
+
get: $util.oneOfGetter($oneOfFields = ["automationLevel"]),
|
|
3112
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3113
|
+
});
|
|
3114
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_automationMute", {
|
|
3115
|
+
get: $util.oneOfGetter($oneOfFields = ["automationMute"]),
|
|
3116
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3117
|
+
});
|
|
2295
3118
|
AudioChannelControlRequest.create = function create(properties) {
|
|
2296
3119
|
return new AudioChannelControlRequest(properties);
|
|
2297
3120
|
};
|
|
@@ -2319,6 +3142,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2319
3142
|
/* id 4, wireType 2 =*/
|
|
2320
3143
|
34
|
|
2321
3144
|
).fork()).ldelim();
|
|
3145
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
3146
|
+
writer.uint32(
|
|
3147
|
+
/* id 5, wireType 0 =*/
|
|
3148
|
+
40
|
|
3149
|
+
).bool(message.mute);
|
|
3150
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
3151
|
+
writer.uint32(
|
|
3152
|
+
/* id 6, wireType 5 =*/
|
|
3153
|
+
53
|
|
3154
|
+
).float(message.automationLevel);
|
|
3155
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
3156
|
+
writer.uint32(
|
|
3157
|
+
/* id 7, wireType 0 =*/
|
|
3158
|
+
56
|
|
3159
|
+
).bool(message.automationMute);
|
|
2322
3160
|
return writer;
|
|
2323
3161
|
};
|
|
2324
3162
|
AudioChannelControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -2351,6 +3189,18 @@ var sesame = $root.sesame = (() => {
|
|
|
2351
3189
|
message.plugins.push($root.sesame.v1.audio.AudioPluginControlRequest.decode(reader, reader.uint32()));
|
|
2352
3190
|
break;
|
|
2353
3191
|
}
|
|
3192
|
+
case 5: {
|
|
3193
|
+
message.mute = reader.bool();
|
|
3194
|
+
break;
|
|
3195
|
+
}
|
|
3196
|
+
case 6: {
|
|
3197
|
+
message.automationLevel = reader.float();
|
|
3198
|
+
break;
|
|
3199
|
+
}
|
|
3200
|
+
case 7: {
|
|
3201
|
+
message.automationMute = reader.bool();
|
|
3202
|
+
break;
|
|
3203
|
+
}
|
|
2354
3204
|
default:
|
|
2355
3205
|
reader.skipType(tag & 7);
|
|
2356
3206
|
break;
|
|
@@ -2390,6 +3240,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2390
3240
|
return "plugins." + error;
|
|
2391
3241
|
}
|
|
2392
3242
|
}
|
|
3243
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
3244
|
+
properties._mute = 1;
|
|
3245
|
+
if (typeof message.mute !== "boolean")
|
|
3246
|
+
return "mute: boolean expected";
|
|
3247
|
+
}
|
|
3248
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
3249
|
+
properties._automationLevel = 1;
|
|
3250
|
+
if (typeof message.automationLevel !== "number")
|
|
3251
|
+
return "automationLevel: number expected";
|
|
3252
|
+
}
|
|
3253
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
3254
|
+
properties._automationMute = 1;
|
|
3255
|
+
if (typeof message.automationMute !== "boolean")
|
|
3256
|
+
return "automationMute: boolean expected";
|
|
3257
|
+
}
|
|
2393
3258
|
return null;
|
|
2394
3259
|
};
|
|
2395
3260
|
AudioChannelControlRequest.fromObject = function fromObject(object) {
|
|
@@ -2412,6 +3277,12 @@ var sesame = $root.sesame = (() => {
|
|
|
2412
3277
|
message.plugins[i] = $root.sesame.v1.audio.AudioPluginControlRequest.fromObject(object.plugins[i]);
|
|
2413
3278
|
}
|
|
2414
3279
|
}
|
|
3280
|
+
if (object.mute != null)
|
|
3281
|
+
message.mute = Boolean(object.mute);
|
|
3282
|
+
if (object.automationLevel != null)
|
|
3283
|
+
message.automationLevel = Number(object.automationLevel);
|
|
3284
|
+
if (object.automationMute != null)
|
|
3285
|
+
message.automationMute = Boolean(object.automationMute);
|
|
2415
3286
|
return message;
|
|
2416
3287
|
};
|
|
2417
3288
|
AudioChannelControlRequest.toObject = function toObject(message, options) {
|
|
@@ -2439,6 +3310,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2439
3310
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
2440
3311
|
object.plugins[j] = $root.sesame.v1.audio.AudioPluginControlRequest.toObject(message.plugins[j], options);
|
|
2441
3312
|
}
|
|
3313
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
3314
|
+
object.mute = message.mute;
|
|
3315
|
+
if (options.oneofs)
|
|
3316
|
+
object._mute = "mute";
|
|
3317
|
+
}
|
|
3318
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
3319
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
3320
|
+
if (options.oneofs)
|
|
3321
|
+
object._automationLevel = "automationLevel";
|
|
3322
|
+
}
|
|
3323
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
3324
|
+
object.automationMute = message.automationMute;
|
|
3325
|
+
if (options.oneofs)
|
|
3326
|
+
object._automationMute = "automationMute";
|
|
3327
|
+
}
|
|
2442
3328
|
return object;
|
|
2443
3329
|
};
|
|
2444
3330
|
AudioChannelControlRequest.prototype.toJSON = function toJSON() {
|
|
@@ -2455,6 +3341,7 @@ var sesame = $root.sesame = (() => {
|
|
|
2455
3341
|
audio.AudioControlRequest = function() {
|
|
2456
3342
|
function AudioControlRequest(properties) {
|
|
2457
3343
|
this.channels = [];
|
|
3344
|
+
this.masterPlugins = [];
|
|
2458
3345
|
if (properties) {
|
|
2459
3346
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2460
3347
|
if (properties[keys[i]] != null)
|
|
@@ -2462,6 +3349,18 @@ var sesame = $root.sesame = (() => {
|
|
|
2462
3349
|
}
|
|
2463
3350
|
}
|
|
2464
3351
|
AudioControlRequest.prototype.channels = $util.emptyArray;
|
|
3352
|
+
AudioControlRequest.prototype.masterLevel = null;
|
|
3353
|
+
AudioControlRequest.prototype.masterAutomationLevel = null;
|
|
3354
|
+
AudioControlRequest.prototype.masterPlugins = $util.emptyArray;
|
|
3355
|
+
let $oneOfFields;
|
|
3356
|
+
Object.defineProperty(AudioControlRequest.prototype, "_masterLevel", {
|
|
3357
|
+
get: $util.oneOfGetter($oneOfFields = ["masterLevel"]),
|
|
3358
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3359
|
+
});
|
|
3360
|
+
Object.defineProperty(AudioControlRequest.prototype, "_masterAutomationLevel", {
|
|
3361
|
+
get: $util.oneOfGetter($oneOfFields = ["masterAutomationLevel"]),
|
|
3362
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3363
|
+
});
|
|
2465
3364
|
AudioControlRequest.create = function create(properties) {
|
|
2466
3365
|
return new AudioControlRequest(properties);
|
|
2467
3366
|
};
|
|
@@ -2474,6 +3373,22 @@ var sesame = $root.sesame = (() => {
|
|
|
2474
3373
|
/* id 1, wireType 2 =*/
|
|
2475
3374
|
10
|
|
2476
3375
|
).fork()).ldelim();
|
|
3376
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
3377
|
+
writer.uint32(
|
|
3378
|
+
/* id 2, wireType 5 =*/
|
|
3379
|
+
21
|
|
3380
|
+
).float(message.masterLevel);
|
|
3381
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
3382
|
+
writer.uint32(
|
|
3383
|
+
/* id 3, wireType 5 =*/
|
|
3384
|
+
29
|
|
3385
|
+
).float(message.masterAutomationLevel);
|
|
3386
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
3387
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
3388
|
+
$root.sesame.v1.audio.AudioPluginControlRequest.encode(message.masterPlugins[i], writer.uint32(
|
|
3389
|
+
/* id 4, wireType 2 =*/
|
|
3390
|
+
34
|
|
3391
|
+
).fork()).ldelim();
|
|
2477
3392
|
return writer;
|
|
2478
3393
|
};
|
|
2479
3394
|
AudioControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -2494,6 +3409,20 @@ var sesame = $root.sesame = (() => {
|
|
|
2494
3409
|
message.channels.push($root.sesame.v1.audio.AudioChannelControlRequest.decode(reader, reader.uint32()));
|
|
2495
3410
|
break;
|
|
2496
3411
|
}
|
|
3412
|
+
case 2: {
|
|
3413
|
+
message.masterLevel = reader.float();
|
|
3414
|
+
break;
|
|
3415
|
+
}
|
|
3416
|
+
case 3: {
|
|
3417
|
+
message.masterAutomationLevel = reader.float();
|
|
3418
|
+
break;
|
|
3419
|
+
}
|
|
3420
|
+
case 4: {
|
|
3421
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
3422
|
+
message.masterPlugins = [];
|
|
3423
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioPluginControlRequest.decode(reader, reader.uint32()));
|
|
3424
|
+
break;
|
|
3425
|
+
}
|
|
2497
3426
|
default:
|
|
2498
3427
|
reader.skipType(tag & 7);
|
|
2499
3428
|
break;
|
|
@@ -2509,6 +3438,7 @@ var sesame = $root.sesame = (() => {
|
|
|
2509
3438
|
AudioControlRequest.verify = function verify(message) {
|
|
2510
3439
|
if (typeof message !== "object" || message === null)
|
|
2511
3440
|
return "object expected";
|
|
3441
|
+
let properties = {};
|
|
2512
3442
|
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
2513
3443
|
if (!Array.isArray(message.channels))
|
|
2514
3444
|
return "channels: array expected";
|
|
@@ -2518,6 +3448,25 @@ var sesame = $root.sesame = (() => {
|
|
|
2518
3448
|
return "channels." + error;
|
|
2519
3449
|
}
|
|
2520
3450
|
}
|
|
3451
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
3452
|
+
properties._masterLevel = 1;
|
|
3453
|
+
if (typeof message.masterLevel !== "number")
|
|
3454
|
+
return "masterLevel: number expected";
|
|
3455
|
+
}
|
|
3456
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
3457
|
+
properties._masterAutomationLevel = 1;
|
|
3458
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
3459
|
+
return "masterAutomationLevel: number expected";
|
|
3460
|
+
}
|
|
3461
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
3462
|
+
if (!Array.isArray(message.masterPlugins))
|
|
3463
|
+
return "masterPlugins: array expected";
|
|
3464
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
3465
|
+
let error = $root.sesame.v1.audio.AudioPluginControlRequest.verify(message.masterPlugins[i]);
|
|
3466
|
+
if (error)
|
|
3467
|
+
return "masterPlugins." + error;
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
2521
3470
|
return null;
|
|
2522
3471
|
};
|
|
2523
3472
|
AudioControlRequest.fromObject = function fromObject(object) {
|
|
@@ -2534,19 +3483,50 @@ var sesame = $root.sesame = (() => {
|
|
|
2534
3483
|
message.channels[i] = $root.sesame.v1.audio.AudioChannelControlRequest.fromObject(object.channels[i]);
|
|
2535
3484
|
}
|
|
2536
3485
|
}
|
|
3486
|
+
if (object.masterLevel != null)
|
|
3487
|
+
message.masterLevel = Number(object.masterLevel);
|
|
3488
|
+
if (object.masterAutomationLevel != null)
|
|
3489
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
3490
|
+
if (object.masterPlugins) {
|
|
3491
|
+
if (!Array.isArray(object.masterPlugins))
|
|
3492
|
+
throw TypeError(".sesame.v1.audio.AudioControlRequest.masterPlugins: array expected");
|
|
3493
|
+
message.masterPlugins = [];
|
|
3494
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
3495
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
3496
|
+
throw TypeError(".sesame.v1.audio.AudioControlRequest.masterPlugins: object expected");
|
|
3497
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioPluginControlRequest.fromObject(object.masterPlugins[i]);
|
|
3498
|
+
}
|
|
3499
|
+
}
|
|
2537
3500
|
return message;
|
|
2538
3501
|
};
|
|
2539
3502
|
AudioControlRequest.toObject = function toObject(message, options) {
|
|
2540
3503
|
if (!options)
|
|
2541
3504
|
options = {};
|
|
2542
3505
|
let object = {};
|
|
2543
|
-
if (options.arrays || options.defaults)
|
|
3506
|
+
if (options.arrays || options.defaults) {
|
|
2544
3507
|
object.channels = [];
|
|
3508
|
+
object.masterPlugins = [];
|
|
3509
|
+
}
|
|
2545
3510
|
if (message.channels && message.channels.length) {
|
|
2546
3511
|
object.channels = [];
|
|
2547
3512
|
for (let j = 0; j < message.channels.length; ++j)
|
|
2548
3513
|
object.channels[j] = $root.sesame.v1.audio.AudioChannelControlRequest.toObject(message.channels[j], options);
|
|
2549
3514
|
}
|
|
3515
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
3516
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
3517
|
+
if (options.oneofs)
|
|
3518
|
+
object._masterLevel = "masterLevel";
|
|
3519
|
+
}
|
|
3520
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
3521
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
3522
|
+
if (options.oneofs)
|
|
3523
|
+
object._masterAutomationLevel = "masterAutomationLevel";
|
|
3524
|
+
}
|
|
3525
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
3526
|
+
object.masterPlugins = [];
|
|
3527
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
3528
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioPluginControlRequest.toObject(message.masterPlugins[j], options);
|
|
3529
|
+
}
|
|
2550
3530
|
return object;
|
|
2551
3531
|
};
|
|
2552
3532
|
AudioControlRequest.prototype.toJSON = function toJSON() {
|