From: Mok Jeongho Date: Thu, 6 Aug 2015 07:58:32 +0000 (+0900) Subject: Do not reference recorder state vconf X-Git-Tag: accepted/tizen/mobile/20150806.134735^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f43ef2b616d83cde55a3fa81f505eb39d10b5b48;p=platform%2Fcore%2Fapi%2Faudio-io.git Do not reference recorder state vconf [Version] 0.3.12 [Profile] Common [Issue Type] Fix Bug Change-Id: I32935a3e6fec231341bc952f317c7f0f5558b87b Signed-off-by: Mok Jeongho --- diff --git a/packaging/capi-media-audio-io.spec b/packaging/capi-media-audio-io.spec index 8c4d24e..dfdaaae 100644 --- a/packaging/capi-media-audio-io.spec +++ b/packaging/capi-media-audio-io.spec @@ -1,11 +1,11 @@ -Name: capi-media-audio-io -Summary: An Audio Input & Audio Output library in Tizen Native API -Version: 0.3.11 -Release: 0 -Group: Multimedia/API -License: Apache-2.0 -Source0: %{name}-%{version}.tar.gz -Source1001: capi-media-audio-io.manifest +Name: capi-media-audio-io +Summary: An Audio Input & Audio Output library in Tizen Native API +Version: 0.3.12 +Release: 0 +Group: Multimedia/API +License: Apache-2.0 +Source0: %{name}-%{version}.tar.gz +Source1001: capi-media-audio-io.manifest BuildRequires: cmake BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(mm-common) diff --git a/src/cpp/CAudioOutput.cpp b/src/cpp/CAudioOutput.cpp index ba673e0..2383b3d 100644 --- a/src/cpp/CAudioOutput.cpp +++ b/src/cpp/CAudioOutput.cpp @@ -327,20 +327,6 @@ size_t CAudioOutput::write(const void* buffer, size_t length) throw (CAudioError THROW_ERROR_MSG_FORMAT(CAudioError::ERROR_INVALID_ARGUMENT, "Parameters are invalid - buffer:%p, length:%zu", buffer, length); } - /* - * Check skip condition. - * If accessibility screen reader (VOICE type with NoSession), no need to check, always do write. - */ - if (mpAudioSessionHandler->isSkipSessionEvent() == false) { - /* Check whether voicerecorder is running */ - int vrState = 0; - - vconf_get_int(VCONFKEY_RECORDER_STATE, &vrState); - if (vrState == VCONFKEY_RECORDER_STATE_RECORDING) { - THROW_ERROR_MSG(CAudioError::ERROR_POLICY_BLOCKED, "During Voicerecording --> MUTE"); - } - } - /* When write() is called in PulseAudio callback, bypass a pcm data to PulseAudioClient (For Asynchronous) */ if (mpPulseAudioClient->isInThread() == true) { int ret = mpPulseAudioClient->write(buffer, length);