audio-io fixed no callback issue at start 69/110969/11
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Thu, 19 Jan 2017 05:02:11 +0000 (14:02 +0900)
committerKimJeongYeon <jeongyeon.kim@samsung.com>
Mon, 23 Jan 2017 06:30:03 +0000 (15:30 +0900)
commit57a6e11523a6bf3ae61c38370774edfc406f71e7
tree59d463161d161fedc4c4f7e1c5364fd0fef0f769
parent874db187eef5ef9cdb5269d6e64d8e221c545237
audio-io fixed no callback issue at start

Changes:
 * In case of asyncronous write, never callback will be invoked when
   application has wrote less than prebuf(-1) at first callback.
   To avoid deadlock between applicaiton and pulseaudio, audio-io
   ensure to write at least size of prebuf.
 * Need to move enabling __mIsInit flag to state changed callback.
   Because of some audio-io APIs rejected at first stream callback.
   (e.g audio_out_drain, audio_out_flush, ...)

[Version] 0.3.56
[Profile] Common
[Issue Type] Compatibility

Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: I64e43913c6a22ab2003615b40b9e616c59423628
include/CPulseAudioClient.h
packaging/capi-media-audio-io.spec
src/cpp/CPulseAudioClient.cpp