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
a33899b5
Commit
a33899b5
authored
Apr 04, 2014
by
Simon Morlat
Browse files
set master channel
parent
449077d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/voip/audiostream.c
src/voip/audiostream.c
+2
-0
No files found.
src/voip/audiostream.c
View file @
a33899b5
...
...
@@ -229,6 +229,7 @@ static void player_callback(void *ud, MSFilter *f, unsigned int id, void *arg){
static
void
setup_local_player
(
AudioStream
*
stream
,
int
samplerate
,
int
channels
){
MSConnectionHelper
cnx
;
int
master
=
0
;
stream
->
local_player
=
ms_filter_new
(
MS_FILE_PLAYER_ID
);
stream
->
local_player_resampler
=
ms_filter_new
(
MS_RESAMPLE_ID
);
...
...
@@ -242,6 +243,7 @@ static void setup_local_player(AudioStream *stream, int samplerate, int channels
ms_filter_call_method
(
stream
->
local_player_resampler
,
MS_FILTER_SET_OUTPUT_NCHANNELS
,
&
channels
);
ms_filter_call_method
(
stream
->
local_mixer
,
MS_FILTER_SET_SAMPLE_RATE
,
&
samplerate
);
ms_filter_call_method
(
stream
->
local_mixer
,
MS_FILTER_SET_NCHANNELS
,
&
channels
);
ms_filter_call_method
(
stream
->
local_mixer
,
MS_AUDIO_MIXER_SET_MASTER_CHANNEL
,
&
master
);
ms_filter_add_notify_callback
(
stream
->
local_player
,
player_callback
,
stream
,
TRUE
);
}
...
...
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