Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
liblinphone
Commits
cc6fba23
Commit
cc6fba23
authored
3 years ago
by
Julien Wadel
Browse files
Options
Download
Patches
Plain Diff
Add a way to retrieve volume while capturing audio on record.
parent
c2cd195e
master
compat/ios_app_5_3
deleteme
feature/18-flexiapiclient-auth-token
feature/51-vcard-provisioning-fix
feature/AEC3
feature/account_manager_services_devices_list
feature/add-security-alert-param
feature/allow-raw-mwi-notification
feature/audio-conference-package
feature/basic_auth
feature/client_audio_mixer
feature/client_video_mixer
feature/cpp_threadsafe
feature/encrypted_conference
feature/fec
feature/fec_adaptation
feature/ics_update_improved
feature/key_exchange_protocol_identification
feature/ldap_failover
feature/lime_status_by_uri
feature/load-static-ms2-plugins
feature/media_encryption_settings_on_account
feature/medialess
feature/nix-flake
feature/provisioning_header_for_fam1.4
feature/python_wrapper_5.3
feature/remote_provisioning_headers
feature/rfc_9078
feature/screensharing_clean
feature/screensharing_packet_router
feature/screensharing_signalling
feature/support_sfu
feature/swift_push_unit_tests
feature/test-new-ccmp-deployment
feature/test_improvement
feature/to-delete-compile-last-wrapper
feature/unitTestInCpp
feature/video_codec_call_params
feature/wrap-account-creator-core-functions
fix/ECC-for-desktop
fix/addEvent_error
fix/add_debug_logs
fix/android_window
fix/audio_codec_debug
fix/audio_routes
fix/auth_info_finding
fix/backport_50
fix/broadcast_flexisip
fix/bugfixes-from-5.1
fix/bundle_mode_fix
fix/call_history_after_core_stop
fix/ccmp_conference_description_master
fix/chat_lesage_local_address_no_contact
fix/chat_room_null_conference_address
fix/chat_test
fix/check-tests
fix/conf_unschedule_video
fix/conference_called_after_joining_5_3
fix/conference_leak
fix/conference_with_all_listeners
fix/conference_without_advanced_im
fix/conference_without_bundle_mode
fix/copy_message_id_content_operator
fix/crash_csrc_changed
fix/crash_terminate
fix/crash_tests
fix/database
fix/db_friend_list_fix
fix/delete_sensitive_logs
fix/didUpdatePushCredentials_debug_investigation
fix/doc_upload
fix/double_invite
fix/empty_authinfo
fix/encrypted_chat_subscription_failed
fix/encryption-changed-callback
fix/enum_swift_wrapper
fix/error_feedback_flexiapi
fix/flexi_api
fix/flexisip-tester-2.3
fix/flexisip_build
fix/force_shared_lib_python_wrapper
fix/force_terminate_duplicated_call
fix/friend_lists
fix/gcc_14
fix/import-from-legacy-db
fix/improved_custom_header_test
fix/ios_foreground_push_incoming_received
fix/ios_reactions_notif
fix/ios_shared_core_reactions
fix/itc-misuse
fix/java_jni_wrapper
fix/jni_weak_global_ref_crash
fix/json_static
fix/jvm_cpp_wrapper_on_android
fix/lime_chat_room_left_notify
fix/mandatory_encryption
fix/media_server_ip
fix/message_not_sent_rework
fix/no-longer-use-deprecated-findpythoninterp-cmake-module
fix/no_ldap_tester
fix/notify-stats
fix/null_pointer_expcetion
fix/participant_removed
fix/participant_video_no_conf_event_pkg
fix/pause-player
fix/paused_by_remote_no_rtp_timeout_master
fix/pdb_5_3
fix/plugin_timeout
fix/prevent_notifying_same_presence_notify
fix/python_build_macos
fix/python_const_build_warning
fix/qt_crash
fix/quickfix_52
fix/ring-category
fix/rtt_message
fix/screen_jul
fix/select-ip
fix/setlocale_utf8
fix/sip_address_table_creation_refused_utf8mb6_mariadb5.5
fix/srtp_key_length
fix/startup_restart
fix/stream-deletion
fix/stream_allocation_no_label
fix/stream_append
fix/subject_not_changed
fix/switch_data_sync_to_short_service
fix/test
fix/test_flexiapi_backport
fix/timestamp_windows
fix/toggle_video
fix/tone-indications
fix/transcient-video-stretching
fix/transfer_state
fix/tunnel_deadlock
fix/tunnel_tester
fix/unsubscribe_upon_core_stop
fix/update-check
fix/utf8_conf
fix/uuid4-generation
fix/video_conf_fixes
fix/video_refused
fix/vp8-threads
fix/webrtc-ice
fix/win_crash_search
fix/window_build_dec24
fix/window_id_creation
fix/wrong_timestamp
fix/zrtp_call
hotfix/lime-db-path
release/5.1
release/5.2
release/5.3
release/5.4
test/ansible
test/call_no_routes
test/flexisip-release-candidate-2-4
test/flexisip_b2bua_h264
test/lime_double_digest_auth_challenge
tmp/pq
tmp/zrtp_stats_make_visible
5.5.0-alpha
5.4.0
5.4.0-beta
5.4.0-alpha
5.3.106
5.3.105
5.3.104
5.3.103
5.3.102
5.3.101
5.3.100
5.3.99
5.3.97
5.3.96
5.3.95
5.3.94
5.3.93
5.3.92
5.3.91
5.3.90
5.3.89
5.3.88
5.3.87
5.3.86
5.3.85
5.3.84
5.3.83
5.3.81
5.3.79
5.3.78
5.3.77
5.3.76
5.3.75
5.3.74
5.3.73
5.3.72
5.3.71
5.3.70
5.3.69
5.3.68
5.3.67
5.3.66
5.3.65
5.3.64
5.3.63
5.3.62
5.3.61
5.3.60
5.3.59
5.3.58
5.3.57
5.3.56
5.3.55
5.3.54
5.3.53
5.3.52
5.3.51
5.3.50
5.3.49
5.3.48
5.3.46
5.3.45
5.3.44
5.3.43
5.3.42
5.3.41
5.3.40
5.3.39
5.3.38
5.3.37
5.3.36
5.3.35
5.3.34
5.3.33
5.3.32
5.3.30
5.3.29
5.3.28
5.3.27
5.3.26
5.3.25
5.3.24
5.3.23
5.3.22
5.3.21
5.3.19
5.3.18
5.3.17
5.3.16
5.3.15
5.3.14
5.3.13
5.3.12
5.3.11
5.3.10
5.3.9
5.3.8
5.3.7
5.3.6
5.3.5
5.3.4
5.3.3
5.3.2
5.3.1
5.3.0
5.3.0-beta
5.3.0-alpha
5.2.114
5.2.113
5.2.112
5.2.111
5.2.110
5.2.109
5.2.108
5.2.107
5.2.106
5.2.105
5.2.104
5.2.103
5.2.102
5.2.101
5.2.100
5.2.99
5.2.98
5.2.97
5.2.96
5.2.95
5.2.94
5.2.93
5.2.92
5.2.91
5.2.90
5.2.89
5.2.88
5.2.87
5.2.86
5.2.85
5.2.84
5.2.83
5.2.82
5.2.81
5.2.80
5.2.79
5.2.78
5.2.77
5.2.75
5.2.73
5.2.72
5.2.71
5.2.70
5.2.69
5.2.68
5.2.67
5.2.66
5.2.65
5.2.64
5.2.63
5.2.62
5.2.61
5.2.59
5.2.58
5.2.57
5.2.56
5.2.54
5.2.53
5.2.52
5.2.51
5.2.50
5.2.49
5.2.47
5.2.46
5.2.45
5.2.44
5.2.42
5.2.41
5.2.40
5.2.39
5.2.37
5.2.33
5.2.32
5.2.30
5.2.29
5.2.28
5.2.27
5.2.26
5.2.25
5.2.23
5.2.22
5.2.21
5.2.20
5.2.19
5.2.18
5.2.17
5.2.16
5.2.15
5.2.14
5.2.13
5.2.12
5.2.11
5.2.10
5.2.9
5.2.7
5.2.6
5.2.5
5.2.4
5.2.3
5.2.2
5.2.1
5.2.0
5.2.0-beta
5.2.0-alpha
5.1.73
5.1.72
5.1.71
5.1.70
5.1.68
5.1.67
5.1.66
5.1.65
5.1.64
5.1.63
5.1.62
5.1.61
5.1.59
5.1.58
5.1.57
5.1.56
5.1.55
5.1.54
5.1.53
5.1.52
5.1.51
5.1.50
5.1.49
5.1.48
5.1.46
5.1.45
5.1.44
5.1.43
5.1.42
5.1.41
5.1.38
5.1.37
5.1.36
5.1.35
5.1.34
5.1.33
5.1.32
5.1.31
5.1.30
5.1.28
5.1.24
5.1.23
5.1.22
5.1.21
5.1.20
5.1.19
5.1.17
5.1.16
5.1.15
5.1.14
5.1.13
5.1.12
5.1.11
5.1.10
5.1.9
5.1.8
5.1.7
5.1.6
5.1.5
5.1.4
5.1.3
5.1.2
5.1.1
5.1.0
2 merge requests
!1841
Use belle_sdp_attribute_parse() so that headers are parsed with the correct...
,
!1791
Add a way to retrieve volume while capturing audio on record.
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
include/linphone/api/c-recorder.h
+7
-0
include/linphone/api/c-recorder.h
src/c-wrapper/api/c-recorder.cpp
+4
-0
src/c-wrapper/api/c-recorder.cpp
src/recorder/recorder.cpp
+4
-0
src/recorder/recorder.cpp
src/recorder/recorder.h
+1
-0
src/recorder/recorder.h
with
16 additions
and
0 deletions
include/linphone/api/c-recorder.h
+
7
−
0
View file @
cc6fba23
...
...
@@ -100,6 +100,13 @@ LINPHONE_PUBLIC LinphoneRecorderState linphone_recorder_get_state(const Linphone
*/
LINPHONE_PUBLIC
int
linphone_recorder_get_duration
(
const
LinphoneRecorder
*
recorder
);
/**
* Get linear volume when capturing audio.
* @param recorder The #LinphoneRecorder object. @notnil
* @return Linear volume.
*/
LINPHONE_PUBLIC
float
linphone_recorder_get_capture_volume
(
const
LinphoneRecorder
*
recorder
);
/**
* Create a content from the recording, for example to send it in a chat message.
* @warning Recorder must be in Closed state!
...
...
This diff is collapsed.
Click to expand it.
src/c-wrapper/api/c-recorder.cpp
+
4
−
0
View file @
cc6fba23
...
...
@@ -70,6 +70,10 @@ int linphone_recorder_get_duration(const LinphoneRecorder *recorder) {
return
Recorder
::
toCpp
(
recorder
)
->
getDuration
();
}
float
linphone_recorder_get_capture_volume
(
const
LinphoneRecorder
*
recorder
)
{
return
Recorder
::
toCpp
(
recorder
)
->
getCaptureVolume
();
}
LinphoneContent
*
linphone_recorder_create_content
(
LinphoneRecorder
*
recorder
)
{
LinphonePrivate
::
Content
*
fileContent
=
Recorder
::
toCpp
(
recorder
)
->
createContent
();
if
(
fileContent
!=
nullptr
)
{
...
...
This diff is collapsed.
Click to expand it.
src/recorder/recorder.cpp
+
4
−
0
View file @
cc6fba23
...
...
@@ -124,6 +124,10 @@ int Recorder::getDuration () const {
}
}
float
Recorder
::
getCaptureVolume
()
const
{
return
ms_media_recorder_get_capture_volume
(
mRecorder
);
}
FileContent
*
Recorder
::
createContent
()
const
{
LinphoneRecorderState
currentState
=
getState
();
if
(
currentState
!=
LinphoneRecorderClosed
)
{
...
...
This diff is collapsed.
Click to expand it.
src/recorder/recorder.h
+
1
−
0
View file @
cc6fba23
...
...
@@ -52,6 +52,7 @@ public:
LinphoneRecorderState
getState
()
const
;
int
getDuration
()
const
;
float
getCaptureVolume
()
const
;
FileContent
*
createContent
()
const
;
void
setParams
(
std
::
shared_ptr
<
RecorderParams
>
params
);
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets