diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCall.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCall.test.js index c262b6f0165e383a1ff3aeedbc8906a18947543f..604725adbcc7e2fbb3738bc8d6a176e0c245a48c 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCall.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCall.test.js @@ -408,7 +408,7 @@ describe('audioCall', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -444,7 +444,7 @@ describe('audioCall', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -480,7 +480,7 @@ describe('audioCall', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -498,7 +498,7 @@ describe('audioCall', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturer.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturer.test.js index 7dfd10c76140e16a1cbf211c3e6a7a52a651bf98..fedd8dfa9c6447fb832d17606b79979bcc481f6d 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturer.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturer.test.js @@ -1098,21 +1098,26 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) + numBuffersToCapture--; } await sleep(1000); @@ -3008,30 +3013,34 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - await audioCapCallBack.getAudioTime().then(async function (audioTime1) { - console.info('AudioFrameworkRecLog: AudioCapturer getAudioTime AFTER WRITE : Success' + audioTime1); - if (audioTime1 != 0) { - stateFlag = true; - } else { - stateFlag = false; - } - }).catch((err) => { - console.info('AudioFrameworkRecLog: AudioCapturer Created : ERROR : ' + err.message); - }); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + await audioCapCallBack.getAudioTime().then(async function (audioTime1) { + console.info('AudioFrameworkRecLog: AudioCapturer getAudioTime AFTER WRITE : Success' + audioTime1); + if (audioTime1 != 0) { + stateFlag = true; + } else { + stateFlag = false; + } + }).catch((err) => { + console.info('AudioFrameworkRecLog: AudioCapturer Created : ERROR : ' + err.message); + }); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -3155,30 +3164,34 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - await audioCapCallBack.getAudioTime().then(async function (audioTime1) { - console.info('AudioFrameworkRecLog: AudioCapturer getAudioTime AFTER WRITE : Success' + audioTime1); - if (audioTime1 != 0) { - stateFlag = true; - } else { - stateFlag = false; - } - }).catch((err) => { - console.info('AudioFrameworkRecLog: AudioCapturer Created : ERROR : ' + err.message); - }); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + await audioCapCallBack.getAudioTime().then(async function (audioTime1) { + console.info('AudioFrameworkRecLog: AudioCapturer getAudioTime AFTER WRITE : Success' + audioTime1); + if (audioTime1 != 0) { + stateFlag = true; + } else { + stateFlag = false; + } + }).catch((err) => { + console.info('AudioFrameworkRecLog: AudioCapturer Created : ERROR : ' + err.message); + }); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -4650,21 +4663,25 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -4784,21 +4801,25 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -4912,21 +4933,25 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -5041,21 +5066,25 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -5170,21 +5199,25 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -5300,21 +5333,25 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -5430,21 +5467,25 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -5559,21 +5600,25 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -5841,21 +5886,25 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -5992,21 +6041,25 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); @@ -6144,21 +6197,25 @@ describe('audioCapturer', function () { var numBuffersToCapture = 45; while (numBuffersToCapture) { console.info('AudioFrameworkRecLog: ---------BEFORE CHECK CB READ BUFFER---------'); - audioCapCallBack.read(bufferSize, true, async (err, buffer) => { - if (err) { - console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); - stateFlag = false; - } else { - console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); - console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); - await sleep(50); - console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); - var number = fileio.writeSync(fd, buffer); - console.info('BufferRecLog: data written: ' + number); - await sleep(100); - stateFlag = true; - } - }); + await new Promise((resolve,reject)=>{ + audioCapCallBack.read(bufferSize, true, async (err, buffer) => { + if (err) { + console.info('AudioFrameworkRecLog: Capturer release :ERROR : ' + err.message); + stateFlag = false; + reject(err); + } else { + console.info('AudioFrameworkRecLog: ---------AFTER CHECK CB READ BUFFER---------'); + console.info('AudioFrameworkRecLog: AudioCapturer : readvalue : ' + buffer); + await sleep(50); + console.info('AudioFrameworkRecLog: ---------WRITE BUFFER---------'); + var number = fileio.writeSync(fd, buffer); + console.info('AudioFrameworkRecLog:BufferRecLog: data written: ' + number); + await sleep(100); + stateFlag = true; + resolve(); + } + }); + }) numBuffersToCapture--; } await sleep(3000); diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturerChangeInfo.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturerChangeInfo.test.js index b74b32e89bc7972255cc6624fca7aaad7dafcf1b..3aad60c0a3ffb6daf582051ae9e1784d63755004 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturerChangeInfo.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioCapturerChangeInfo.test.js @@ -92,7 +92,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -172,7 +172,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -263,7 +263,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -359,7 +359,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -455,7 +455,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -537,7 +537,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_VOICE_COMMUNICATION, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -620,7 +620,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -699,7 +699,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -779,7 +779,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -864,7 +864,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -943,7 +943,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -1029,7 +1029,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -1122,7 +1122,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -1214,7 +1214,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -1299,7 +1299,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -1405,7 +1405,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -1523,7 +1523,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -1646,7 +1646,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -1754,7 +1754,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -1866,7 +1866,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -1990,7 +1990,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -2119,7 +2119,7 @@ describe('audioCapturerChange', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_MIC, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js index 647f80d166e4f6dbf7640989b7425347cde7e722..b6b372889c78b091a0a6fd533be14f126b77373d 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRenderer.test.js @@ -1590,7 +1590,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1628,7 +1628,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1667,7 +1667,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1705,7 +1705,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1742,7 +1742,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1781,7 +1781,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1819,7 +1819,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1858,7 +1858,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1895,7 +1895,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1933,7 +1933,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1971,7 +1971,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2009,7 +2009,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2047,7 +2047,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2084,7 +2084,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2121,7 +2121,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2158,7 +2158,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2195,7 +2195,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2232,7 +2232,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2280,7 +2280,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2327,7 +2327,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MUSIC, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2374,7 +2374,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MOVIE, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2422,7 +2422,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2469,7 +2469,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2516,7 +2516,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2563,7 +2563,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2610,7 +2610,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MUSIC, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2658,7 +2658,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MOVIE, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2705,7 +2705,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2752,7 +2752,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2799,7 +2799,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2846,7 +2846,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2893,7 +2893,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MUSIC, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2940,7 +2940,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MOVIE, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2987,7 +2987,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3034,7 +3034,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3081,7 +3081,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3129,7 +3129,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3177,7 +3177,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MUSIC, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3225,7 +3225,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MOVIE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3273,7 +3273,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3320,7 +3320,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3368,7 +3368,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3456,7 +3456,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3546,7 +3546,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MUSIC, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3636,7 +3636,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MOVIE, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3726,7 +3726,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3816,7 +3816,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3906,7 +3906,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3996,7 +3996,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -4086,7 +4086,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MUSIC, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -4176,7 +4176,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MOVIE, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -4266,7 +4266,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -4356,7 +4356,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -4446,7 +4446,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -4536,7 +4536,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -4626,7 +4626,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MUSIC, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -4716,7 +4716,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MOVIE, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -4806,7 +4806,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -4896,7 +4896,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -4986,7 +4986,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -5076,7 +5076,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -5166,7 +5166,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MUSIC, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -5256,7 +5256,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MOVIE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -5346,7 +5346,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -5436,7 +5436,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -5526,7 +5526,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -5598,7 +5598,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -5685,7 +5685,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -5774,7 +5774,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -5864,7 +5864,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -5963,7 +5963,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -6142,7 +6142,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -6320,7 +6320,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -6476,7 +6476,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -6647,7 +6647,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -6686,7 +6686,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -6778,7 +6778,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -6857,7 +6857,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -6952,7 +6952,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -7049,7 +7049,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -7146,7 +7146,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -7308,7 +7308,7 @@ describe('audioRenderer', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -7409,7 +7409,7 @@ describe('audioRenderer', function () { done(); }) - /* + /* * @tc.name:SetInterruptMode_001 * @tc.desc:SetInterruptMode mode 0 callback,is public share mode * @tc.type: FUNC diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRendererChangeInfo.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRendererChangeInfo.test.js index ad1c96f22055b06c6760925c96f75e4a073ff2ef..868a8ba4c736713ffc508bc68fd81e388ef3e943 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRendererChangeInfo.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioRendererChangeInfo.test.js @@ -154,7 +154,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -237,7 +237,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -335,7 +335,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -433,7 +433,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -531,7 +531,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -634,7 +634,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -715,7 +715,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -800,7 +800,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -883,7 +883,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MUSIC, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -965,7 +965,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MOVIE, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1049,7 +1049,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1131,7 +1131,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_UNKNOWN, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1214,7 +1214,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MUSIC, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1298,7 +1298,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_MOVIE, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1380,7 +1380,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1461,7 +1461,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1543,7 +1543,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SONIFICATION, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1627,7 +1627,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1714,7 +1714,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1791,7 +1791,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_ASSISTANT, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1874,7 +1874,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -1964,7 +1964,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2055,7 +2055,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_UNKNOWN, usage: audio.StreamUsage.STREAM_USAGE_MEDIA, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2153,7 +2153,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2238,7 +2238,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2347,7 +2347,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2468,7 +2468,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2594,7 +2594,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2725,7 +2725,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2836,7 +2836,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -2951,7 +2951,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3078,7 +3078,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3210,7 +3210,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -3347,7 +3347,7 @@ describe('audioRendererChange', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_RINGTONE, usage: audio.StreamUsage.STREAM_USAGE_NOTIFICATION_RINGTONE, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { diff --git a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioVOIP.test.js b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioVOIP.test.js index 24af831bc6718cb6f1fb2a94a741674f977b7b49..757c64a73cb79415fb6f9654cab41a2d9116a2a0 100644 --- a/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioVOIP.test.js +++ b/multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioVOIP.test.js @@ -417,7 +417,7 @@ describe('audioVoip', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = { @@ -453,7 +453,7 @@ describe('audioVoip', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_VOICE_COMMUNICATION, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -488,7 +488,7 @@ describe('audioVoip', function () { var AudioCapturerInfo = { source: audio.SourceType.SOURCE_TYPE_VOICE_COMMUNICATION, - capturerFlags: 1 + capturerFlags: 0 } var AudioCapturerOptions = { @@ -506,7 +506,7 @@ describe('audioVoip', function () { var AudioRendererInfo = { content: audio.ContentType.CONTENT_TYPE_SPEECH, usage: audio.StreamUsage.STREAM_USAGE_VOICE_COMMUNICATION, - rendererFlags: 1 + rendererFlags: 0 } var AudioRendererOptions = {