Save volume ratio as integer value to the config file 80/306180/3
authorSuyeon Hwang <stom.hwang@samsung.com>
Fri, 16 Feb 2024 11:35:46 +0000 (20:35 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 19 Feb 2024 02:47:11 +0000 (11:47 +0900)
commitadb97837b1397949c554bb6f6cece2387ec24979
treec07b4057398ab0a9ffaaac881a9dbf522e5315e6
parentae13a0913c20bb335035fa83ebf3875b731472d2
Save volume ratio as integer value to the config file

- Issue:
According to the app locale, sometimes the framework can fail to get
proper background volume ratio value from the configuration file.

- Solution:
This patch fixes the logic for saving background volume ratio value.
According to the spec. of snprintf() and atof(), these functions are
affected by the app locale. Thus, the app can represent the floating
point value with different way by the locale. And this can cause the
failure of getting proper value.
To avoid this situation, this patch converts the volume ratio as integer
value. Through this change, the locale will not affect the
representation for the volume ratio.

Change-Id: Ieb5c80098b91d56801b98183e8c524db6cf1b0bc
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/tts_config_parser.c
tts-config.xml