未验证 提交 fc9bc412 编写于 作者: O openharmony_ci 提交者: Gitee

!4746 audio_xts修改

Merge pull request !4746 from liuxueqi/master
...@@ -408,7 +408,7 @@ describe('audioCall', function () { ...@@ -408,7 +408,7 @@ describe('audioCall', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SPEECH, content: audio.ContentType.CONTENT_TYPE_SPEECH,
usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -444,7 +444,7 @@ describe('audioCall', function () { ...@@ -444,7 +444,7 @@ describe('audioCall', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -480,7 +480,7 @@ describe('audioCall', function () { ...@@ -480,7 +480,7 @@ describe('audioCall', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -498,7 +498,7 @@ describe('audioCall', function () { ...@@ -498,7 +498,7 @@ describe('audioCall', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SPEECH, content: audio.ContentType.CONTENT_TYPE_SPEECH,
usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
......
...@@ -92,7 +92,7 @@ describe('audioCapturerChange', function () { ...@@ -92,7 +92,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -172,7 +172,7 @@ describe('audioCapturerChange', function () { ...@@ -172,7 +172,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -263,7 +263,7 @@ describe('audioCapturerChange', function () { ...@@ -263,7 +263,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -359,7 +359,7 @@ describe('audioCapturerChange', function () { ...@@ -359,7 +359,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -455,7 +455,7 @@ describe('audioCapturerChange', function () { ...@@ -455,7 +455,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -537,7 +537,7 @@ describe('audioCapturerChange', function () { ...@@ -537,7 +537,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_VOICE_COMMUNICATION, source: audio.SourceType.SOURCE_TYPE_VOICE_COMMUNICATION,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -620,7 +620,7 @@ describe('audioCapturerChange', function () { ...@@ -620,7 +620,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -699,7 +699,7 @@ describe('audioCapturerChange', function () { ...@@ -699,7 +699,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -729,7 +729,7 @@ describe('audioCapturerChange', function () { ...@@ -729,7 +729,7 @@ describe('audioCapturerChange', function () {
console.info(Tag+'C'+i+':'+AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); console.info(Tag+'C'+i+':'+AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]);
console.info(Tag+'CM:'+i+':'+AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks); console.info(Tag+'CM:'+i+':'+AudioCapturerChangeInfoArray[i].deviceDescriptors[j].channelMasks);
} }
if (clientUid != undefined && capFlags == 1 && devDescriptor != null) { if (clientUid != undefined && capFlags == 0 && devDescriptor != null) {
resultFlag = true; resultFlag = true;
console.info(Tag+'[CAPTURER-CHANGE-ON-008] ResultFlag for element '+i +' is: '+ resultFlag); console.info(Tag+'[CAPTURER-CHANGE-ON-008] ResultFlag for element '+i +' is: '+ resultFlag);
} }
...@@ -779,7 +779,7 @@ describe('audioCapturerChange', function () { ...@@ -779,7 +779,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -864,7 +864,7 @@ describe('audioCapturerChange', function () { ...@@ -864,7 +864,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -943,7 +943,7 @@ describe('audioCapturerChange', function () { ...@@ -943,7 +943,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -1029,7 +1029,7 @@ describe('audioCapturerChange', function () { ...@@ -1029,7 +1029,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -1122,7 +1122,7 @@ describe('audioCapturerChange', function () { ...@@ -1122,7 +1122,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -1214,7 +1214,7 @@ describe('audioCapturerChange', function () { ...@@ -1214,7 +1214,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -1299,7 +1299,7 @@ describe('audioCapturerChange', function () { ...@@ -1299,7 +1299,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -1405,7 +1405,7 @@ describe('audioCapturerChange', function () { ...@@ -1405,7 +1405,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -1523,7 +1523,7 @@ describe('audioCapturerChange', function () { ...@@ -1523,7 +1523,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -1646,7 +1646,7 @@ describe('audioCapturerChange', function () { ...@@ -1646,7 +1646,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -1754,7 +1754,7 @@ describe('audioCapturerChange', function () { ...@@ -1754,7 +1754,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -1866,7 +1866,7 @@ describe('audioCapturerChange', function () { ...@@ -1866,7 +1866,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -1990,7 +1990,7 @@ describe('audioCapturerChange', function () { ...@@ -1990,7 +1990,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -2119,7 +2119,7 @@ describe('audioCapturerChange', function () { ...@@ -2119,7 +2119,7 @@ describe('audioCapturerChange', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_MIC, source: audio.SourceType.SOURCE_TYPE_MIC,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
......
...@@ -154,7 +154,7 @@ describe('audioRendererChange', function () { ...@@ -154,7 +154,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -237,7 +237,7 @@ describe('audioRendererChange', function () { ...@@ -237,7 +237,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_UNKNOWN, content: audio.ContentType.CONTENT_TYPE_UNKNOWN,
usage: audio.StreamUsage.STREAM_USAGE_MEDIA, usage: audio.StreamUsage.STREAM_USAGE_MEDIA,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -335,7 +335,7 @@ describe('audioRendererChange', function () { ...@@ -335,7 +335,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SPEECH, content: audio.ContentType.CONTENT_TYPE_SPEECH,
usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -433,7 +433,7 @@ describe('audioRendererChange', function () { ...@@ -433,7 +433,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -531,7 +531,7 @@ describe('audioRendererChange', function () { ...@@ -531,7 +531,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -634,7 +634,7 @@ describe('audioRendererChange', function () { ...@@ -634,7 +634,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -715,7 +715,7 @@ describe('audioRendererChange', function () { ...@@ -715,7 +715,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_UNKNOWN, content: audio.ContentType.CONTENT_TYPE_UNKNOWN,
usage: audio.StreamUsage.STREAM_USAGE_MEDIA, usage: audio.StreamUsage.STREAM_USAGE_MEDIA,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -800,7 +800,7 @@ describe('audioRendererChange', function () { ...@@ -800,7 +800,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SPEECH, content: audio.ContentType.CONTENT_TYPE_SPEECH,
usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -883,7 +883,7 @@ describe('audioRendererChange', function () { ...@@ -883,7 +883,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_MUSIC, content: audio.ContentType.CONTENT_TYPE_MUSIC,
usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -965,7 +965,7 @@ describe('audioRendererChange', function () { ...@@ -965,7 +965,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_MOVIE, content: audio.ContentType.CONTENT_TYPE_MOVIE,
usage: audio.StreamUsage.STREAM_USAGE_MEDIA, usage: audio.StreamUsage.STREAM_USAGE_MEDIA,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1049,7 +1049,7 @@ describe('audioRendererChange', function () { ...@@ -1049,7 +1049,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SONIFICATION, content: audio.ContentType.CONTENT_TYPE_SONIFICATION,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1131,7 +1131,7 @@ describe('audioRendererChange', function () { ...@@ -1131,7 +1131,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SPEECH, content: audio.ContentType.CONTENT_TYPE_SPEECH,
usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1214,7 +1214,7 @@ describe('audioRendererChange', function () { ...@@ -1214,7 +1214,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_MUSIC, content: audio.ContentType.CONTENT_TYPE_MUSIC,
usage: audio.StreamUsage.STREAM_USAGE_MEDIA, usage: audio.StreamUsage.STREAM_USAGE_MEDIA,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1298,7 +1298,7 @@ describe('audioRendererChange', function () { ...@@ -1298,7 +1298,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_MOVIE, content: audio.ContentType.CONTENT_TYPE_MOVIE,
usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1380,7 +1380,7 @@ describe('audioRendererChange', function () { ...@@ -1380,7 +1380,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SONIFICATION, content: audio.ContentType.CONTENT_TYPE_SONIFICATION,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1461,7 +1461,7 @@ describe('audioRendererChange', function () { ...@@ -1461,7 +1461,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SONIFICATION, content: audio.ContentType.CONTENT_TYPE_SONIFICATION,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1543,7 +1543,7 @@ describe('audioRendererChange', function () { ...@@ -1543,7 +1543,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SONIFICATION, content: audio.ContentType.CONTENT_TYPE_SONIFICATION,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1576,7 +1576,7 @@ describe('audioRendererChange', function () { ...@@ -1576,7 +1576,7 @@ describe('audioRendererChange', function () {
console.info(Tag+'C'+i+':'+AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]); console.info(Tag+'C'+i+':'+AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelCounts[0]);
console.info(Tag+'CM:'+i+':'+AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks); console.info(Tag+'CM:'+i+':'+AudioRendererChangeInfoArray[i].deviceDescriptors[j].channelMasks);
} }
if (clientUid != undefined && renFlags == 1 && devDescriptor != null) { if (clientUid != undefined && renFlags == 0 && devDescriptor != null) {
resultFlag = true; resultFlag = true;
console.info(Tag+'[RENDERER-CHANGE-ON-017] ClientUid for '+i+' is:'+AudioRendererChangeInfoArray[i].clientUid); console.info(Tag+'[RENDERER-CHANGE-ON-017] ClientUid for '+i+' is:'+AudioRendererChangeInfoArray[i].clientUid);
console.info(Tag+'[RENDERER-CHANGE-ON-017] Flag '+i+' is:'+AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags); console.info(Tag+'[RENDERER-CHANGE-ON-017] Flag '+i+' is:'+AudioRendererChangeInfoArray[i].rendererInfo.rendererFlags);
...@@ -1627,7 +1627,7 @@ describe('audioRendererChange', function () { ...@@ -1627,7 +1627,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1714,7 +1714,7 @@ describe('audioRendererChange', function () { ...@@ -1714,7 +1714,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1791,7 +1791,7 @@ describe('audioRendererChange', function () { ...@@ -1791,7 +1791,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SPEECH, content: audio.ContentType.CONTENT_TYPE_SPEECH,
usage: audio.StreamUsage.STREAM_USAGE_VOICE_ASSISTANT, usage: audio.StreamUsage.STREAM_USAGE_VOICE_ASSISTANT,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1874,7 +1874,7 @@ describe('audioRendererChange', function () { ...@@ -1874,7 +1874,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -1964,7 +1964,7 @@ describe('audioRendererChange', function () { ...@@ -1964,7 +1964,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_UNKNOWN, content: audio.ContentType.CONTENT_TYPE_UNKNOWN,
usage: audio.StreamUsage.STREAM_USAGE_MEDIA, usage: audio.StreamUsage.STREAM_USAGE_MEDIA,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -2055,7 +2055,7 @@ describe('audioRendererChange', function () { ...@@ -2055,7 +2055,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_UNKNOWN, content: audio.ContentType.CONTENT_TYPE_UNKNOWN,
usage: audio.StreamUsage.STREAM_USAGE_MEDIA, usage: audio.StreamUsage.STREAM_USAGE_MEDIA,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -2153,7 +2153,7 @@ describe('audioRendererChange', function () { ...@@ -2153,7 +2153,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -2238,7 +2238,7 @@ describe('audioRendererChange', function () { ...@@ -2238,7 +2238,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -2347,7 +2347,7 @@ describe('audioRendererChange', function () { ...@@ -2347,7 +2347,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -2468,7 +2468,7 @@ describe('audioRendererChange', function () { ...@@ -2468,7 +2468,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -2594,7 +2594,7 @@ describe('audioRendererChange', function () { ...@@ -2594,7 +2594,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -2725,7 +2725,7 @@ describe('audioRendererChange', function () { ...@@ -2725,7 +2725,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -2836,7 +2836,7 @@ describe('audioRendererChange', function () { ...@@ -2836,7 +2836,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -2951,7 +2951,7 @@ describe('audioRendererChange', function () { ...@@ -2951,7 +2951,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -3078,7 +3078,7 @@ describe('audioRendererChange', function () { ...@@ -3078,7 +3078,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -3210,7 +3210,7 @@ describe('audioRendererChange', function () { ...@@ -3210,7 +3210,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -3347,7 +3347,7 @@ describe('audioRendererChange', function () { ...@@ -3347,7 +3347,7 @@ describe('audioRendererChange', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_RINGTONE, content: audio.ContentType.CONTENT_TYPE_RINGTONE,
usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
......
...@@ -417,7 +417,7 @@ describe('audioVoip', function () { ...@@ -417,7 +417,7 @@ describe('audioVoip', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SPEECH, content: audio.ContentType.CONTENT_TYPE_SPEECH,
usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
...@@ -453,7 +453,7 @@ describe('audioVoip', function () { ...@@ -453,7 +453,7 @@ describe('audioVoip', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_VOICE_COMMUNICATION, source: audio.SourceType.SOURCE_TYPE_VOICE_COMMUNICATION,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -488,7 +488,7 @@ describe('audioVoip', function () { ...@@ -488,7 +488,7 @@ describe('audioVoip', function () {
var AudioCapturerInfo = { var AudioCapturerInfo = {
source: audio.SourceType.SOURCE_TYPE_VOICE_COMMUNICATION, source: audio.SourceType.SOURCE_TYPE_VOICE_COMMUNICATION,
capturerFlags: 1 capturerFlags: 0
} }
var AudioCapturerOptions = { var AudioCapturerOptions = {
...@@ -506,7 +506,7 @@ describe('audioVoip', function () { ...@@ -506,7 +506,7 @@ describe('audioVoip', function () {
var AudioRendererInfo = { var AudioRendererInfo = {
content: audio.ContentType.CONTENT_TYPE_SPEECH, content: audio.ContentType.CONTENT_TYPE_SPEECH,
usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION,
rendererFlags: 1 rendererFlags: 0
} }
var AudioRendererOptions = { var AudioRendererOptions = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册