projects
/
platform
/
core
/
uifw
/
voice-control.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5db2de6
)
Add to send set volume in audio_streaming_cb
65/239965/1
author
sooyeon.kim
<sooyeon.kim@samsung.com>
Fri, 31 Jul 2020 05:24:11 +0000
(14:24 +0900)
committer
sooyeon.kim
<sooyeon.kim@samsung.com>
Fri, 31 Jul 2020 05:24:11 +0000
(14:24 +0900)
Change-Id: If302fa2feebff6fe2f2ac4c54448cdcf9d36f4d5
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
server/vcd_recorder.c
patch
|
blob
|
history
diff --git
a/server/vcd_recorder.c
b/server/vcd_recorder.c
index
c781470
..
dddc02c
100644
(file)
--- a/
server/vcd_recorder.c
+++ b/
server/vcd_recorder.c
@@
-276,6
+276,14
@@
void audio_streaming_cb(ma_audio_streaming_event_e event, char* buffer, int len,
SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Fail to read audio");
}
}
+
+ /* Set volume */
+ if (0 == g_buffer_count % 15) {
+ float vol_db = get_volume_decibel(buffer, len);
+ if (0 != vcdc_send_set_volume(vcd_client_manager_get_pid(), vol_db)) {
+ SLOG(LOG_ERROR, TAG_VCD, "[Recorder] Fail to send recording volume(%f)", vol_db);
+ }
+ }
}
#if 1