summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-16 01:11:40 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-16 01:11:40 +0900
commit0c48e05d828d40f7a0f484f86a2de7da12046ba2 (patch)
tree8aef0c8c6e5dfb8f17a6bcf520bac6c8dfdc1d07 /src
parent5daceca0f6e8f383c6e761b6611411051ed5786f (diff)
downloadaudio-io-0c48e05d828d40f7a0f484f86a2de7da12046ba2.tar.gz
audio-io-0c48e05d828d40f7a0f484f86a2de7da12046ba2.tar.bz2
audio-io-0c48e05d828d40f7a0f484f86a2de7da12046ba2.zip
merge with master
Diffstat (limited to 'src')
-rw-r--r--src/audio_io.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/audio_io.c b/src/audio_io.c
index 46cc472..76304d9 100644
--- a/src/audio_io.c
+++ b/src/audio_io.c
@@ -384,6 +384,21 @@ int audio_in_unset_interrupted_cb(audio_in_h input)
return AUDIO_IO_ERROR_NONE;
}
+int audio_in_ignore_session(audio_in_h input)
+{
+ AUDIO_IO_NULL_ARG_CHECK(input);
+ audio_in_s * handle = (audio_in_s *) input;
+ int ret = 0;
+
+ ret = mm_sound_pcm_capture_ignore_session(handle->mm_handle);
+ if (ret != MM_ERROR_NONE) {
+ return __convert_error_code(ret, (char*)__FUNCTION__);
+ }
+
+ LOGI("[%s] mm_sound_pcm_capture_ignore_session() success",__FUNCTION__);
+ return AUDIO_IO_ERROR_NONE;
+}
+
/* Audio Out */
int audio_out_create(int sample_rate, audio_channel_e channel, audio_sample_type_e type, sound_type_e sound_type, audio_out_h* output)
{
@@ -588,3 +603,18 @@ int audio_out_unset_interrupted_cb(audio_out_h output)
LOGI("[%s] current interrupted cb (%p) / data (%p)",__FUNCTION__, handle->user_cb, handle->user_data);
return AUDIO_IO_ERROR_NONE;
}
+
+int audio_out_ignore_session(audio_out_h output)
+{
+ AUDIO_IO_NULL_ARG_CHECK(output);
+ audio_out_s *handle = (audio_out_s *) output;
+ int ret = 0;
+
+ ret = mm_sound_pcm_play_ignore_session(handle->mm_handle);
+ if (ret != MM_ERROR_NONE) {
+ return __convert_error_code(ret, (char*)__FUNCTION__);
+ }
+ LOGI("[%s] mm_sound_pcm_play_ignore_session() success",__FUNCTION__);
+
+ return AUDIO_IO_ERROR_NONE;
+}