From 7108451512122200514f8cc406c802b214ad8c55 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Fri, 31 May 2019 14:55:45 +0900 Subject: [PATCH] CAudioOutput: Apply high latency in case of network source media audio type [Version] 0.5.16 [Issue Type] New feature Change-Id: I1c614bcfed4021dad7a651bd60d69924a8d4c8c9 Signed-off-by: Sangchul Lee --- include/CAudioInfo.h | 4 ++++ packaging/capi-media-audio-io.spec | 2 +- src/cpp/CAudioOutput.cpp | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/CAudioInfo.h b/include/CAudioInfo.h index 8c674aa..ac75c64 100644 --- a/include/CAudioInfo.h +++ b/include/CAudioInfo.h @@ -66,6 +66,7 @@ namespace tizen_media_audio { //AUDIO_IN_TYPE_RADIO, AUDIO_IN_TYPE_LOOPBACK, AUDIO_IN_TYPE_VOICE_RECOGNITION_SERVICE, + //AUDIO_IN_TYPE_MEDIA_NETWORK_SOURCE, /* Output Type */ AUDIO_OUT_TYPE_MEDIA, @@ -84,6 +85,7 @@ namespace tizen_media_audio { //AUDIO_OUT_TYPE_RADIO, //AUDIO_OUT_TYPE_LOOPBACK, //AUDIO_OUT_TYPE_VOICE_RECOGNITION_SERVICE, + AUDIO_OUT_TYPE_MEDIA_NETWORK_SOURCE, AUDIO_TYPE_MAX }; @@ -141,6 +143,7 @@ namespace tizen_media_audio { //"radio", /**< AUDIO_IN_TYPE_RADIO */ "loopback-mirroring", /**< AUDIO_IN_TYPE_LOOPBACK */ "voice-recognition-service", /**< AUDIO_IN_TYPE_VOICE_RECOGNITION_SERVICE */ + //"network-source-media", /**< AUDIO_IN_TYPE_MEDIA_NETWORK_SOURCE */ /* Output Type */ "media", /**< AUDIO_OUT_TYPE_MEDIA */ @@ -159,6 +162,7 @@ namespace tizen_media_audio { //"radio", /**< AUDIO_OUT_TYPE_RADIO */ //"loopback-mirroring", /**< AUDIO_OUT_TYPE_LOOPBACK */ //"voice-recognition-service",/**< AUDIO_OUT_TYPE_VOICE_RECOGNITION_SERVICE */ + "network-source-media", /**< AUDIO_OUT_TYPE_MEDIA_NETWORK_SOURCE */ }; unsigned int __mSampleRate; diff --git a/packaging/capi-media-audio-io.spec b/packaging/capi-media-audio-io.spec index 1d9ecbf..2bb0e20 100644 --- a/packaging/capi-media-audio-io.spec +++ b/packaging/capi-media-audio-io.spec @@ -1,6 +1,6 @@ Name: capi-media-audio-io Summary: An Audio Input & Audio Output library in Tizen Native API -Version: 0.5.15 +Version: 0.5.16 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/cpp/CAudioOutput.cpp b/src/cpp/CAudioOutput.cpp index 6b0baa4..548b7b9 100644 --- a/src/cpp/CAudioOutput.cpp +++ b/src/cpp/CAudioOutput.cpp @@ -141,6 +141,8 @@ void CAudioOutput::prepare() { /* Override the default value by audio type */ if (audioType == CAudioInfo::EAudioType::AUDIO_OUT_TYPE_VOIP) streamSpec = CPulseStreamSpec::EStreamLatency::STREAM_LATENCY_OUTPUT_VOIP; + else if (audioType == CAudioInfo::EAudioType::AUDIO_OUT_TYPE_MEDIA_NETWORK_SOURCE) + streamSpec = CPulseStreamSpec::EStreamLatency::STREAM_LATENCY_OUTPUT_HIGH; CPulseStreamSpec spec(streamSpec, mAudioInfo); -- 2.7.4