Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
6aa69835
Commit
6aa69835
authored
Apr 10, 2014
by
Ghislain MARY
Browse files
Reflect changes in callback prototype changed in oRTP.
parent
813328ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/voip/audiostream.c
View file @
6aa69835
...
...
@@ -269,22 +269,22 @@ static OrtpRtcpXrPlcStatus audio_stream_get_rtcp_xr_plc_status(unsigned long use
return
OrtpRtcpXrNoPlc
;
}
static
int
8_t
audio_stream_get_rtcp_xr_signal_level
(
unsigned
long
userdata
)
{
static
int
audio_stream_get_rtcp_xr_signal_level
(
unsigned
long
userdata
)
{
AudioStream
*
stream
=
(
AudioStream
*
)
userdata
;
if
((
stream
->
features
&
AUDIO_STREAM_FEATURE_VOL_RCV
)
!=
0
)
{
float
volume
;
ms_filter_call_method
(
stream
->
volrecv
,
MS_VOLUME_GET_MAX
,
&
volume
);
return
(
int
8_t
)
volume
;
return
(
int
)
volume
;
}
return
ORTP_RTCP_XR_UNAVAILABLE_PARAMETER
;
}
static
int
8_t
audio_stream_get_rtcp_xr_noise_level
(
unsigned
long
userdata
)
{
static
int
audio_stream_get_rtcp_xr_noise_level
(
unsigned
long
userdata
)
{
AudioStream
*
stream
=
(
AudioStream
*
)
userdata
;
if
((
stream
->
features
&
AUDIO_STREAM_FEATURE_VOL_RCV
)
!=
0
)
{
float
volume
;
ms_filter_call_method
(
stream
->
volrecv
,
MS_VOLUME_GET_MIN
,
&
volume
);
return
(
int
8_t
)
volume
;
return
(
int
)
volume
;
}
return
ORTP_RTCP_XR_UNAVAILABLE_PARAMETER
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment