feedback: Add feedback_play_type_with_flags_internal() 03/302903/5
authorYunhee Seo <yuni.seo@samsung.com>
Fri, 15 Dec 2023 05:00:40 +0000 (14:00 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 19 Dec 2023 04:22:54 +0000 (13:22 +0900)
commit55faeac9f4eff98cd439bec24e237188ecbfa625
treed247c9461d322857a8a5446b997b4d67bed6a977
parent6501ebe05127dee709735c604db07c7e1e734cbc
feedback: Add feedback_play_type_with_flags_internal()

To support sound play with priority, new api is added.

This function is added to feedback.
- int feedback_play_type_with_flags_internal(feedback_type_e type, feedback_pattern_internal_e internal_pattern,
feedback_flag_e flag);
- This function plays feedback pattern by pre-defined feedback_flag_e.

Sound play behavior varies depending on feedback_flag_e.
- FEEDBACK_FLAG_NONE
- This flag works the same as feedback_play_type_internal().
- FEEDBACK_FLAG_PRIORITY_BASED_PLAY
- This flag will only work in sound play. Sound pattern will be played with priority.

The sound pattern priority value will be used as defined in the sound conf file.

Change-Id: Idba5314030d393af82d155cd8e4a258a9e6ab82f
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
include/feedback-internal.h
src/devices.h
src/feedback.c
src/sound.c
src/vibrator.c
tests/main.c
tests/test-feedback-internal.c
tests/test-feedback-internal.h