-
Notifications
You must be signed in to change notification settings - Fork 4
RDKEMW-18082: ctrlm coverity cleanup #225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
7dfcd39
d662739
e1b5beb
950a494
68debec
de998e7
33b07b6
755f661
f28a94d
03c2ff8
bce2fb3
eca9dde
2baae1d
4bd79b1
0593333
b61a90d
995c93b
a0595cb
a55c533
37bf0e9
6bb6049
72bf7ca
f506840
95695a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2921,11 +2921,11 @@ void ctrlm_voice_t::voice_stream_end_callback(ctrlm_voice_stream_end_cb_t *strea | |
|
|
||
| if(session->packets_processed > 0) { | ||
| uint32_t stream_duration = session->packets_processed * 20; // assume 20 ms per packet | ||
| uint32_t samples_per_packet = 320; // 16 kHz samples at 20 ms per packet | ||
| // uint32_t samples_per_packet = 320; // 16 kHz samples at 20 ms per packet | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| if(session->format.type == CTRLM_VOICE_FORMAT_ADPCM_FRAME) { | ||
| uint32_t frame_duration_us = (session->format.value.adpcm_frame.size_packet - session->format.value.adpcm_frame.size_header) * 125; // 125 us per byte for ADPCM at 16 kHz | ||
| stream_duration = (session->packets_processed * frame_duration_us) / 1000; | ||
| samples_per_packet = (session->format.value.adpcm_frame.size_packet - session->format.value.adpcm_frame.size_header) * 2; // 2 samples per byte for ADPCM | ||
| // samples_per_packet = (session->format.value.adpcm_frame.size_packet - session->format.value.adpcm_frame.size_header) * 2; // 2 samples per byte for ADPCM | ||
| } | ||
| XLOGD_AUTOMATION_TELEMETRY("src <%s> Packets Lost/Total <%u/%u> %.02f%% duration <%u> ms", ctrlm_voice_device_str(session->voice_device), session->packets_lost, session->packets_lost + session->packets_processed, 100.0 * ((double)session->packets_lost / (double)(session->packets_lost + session->packets_processed)), stream_duration); | ||
| #ifdef TELEMETRY_SUPPORT | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update once changes to testframework have been merged