File tree 1 file changed +8
-1
lines changed
examples/SIPExamples/PlaySounds
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 19
19
20
20
using System ;
21
21
using System . IO ;
22
+ using System . Linq ;
22
23
using System . Threading ;
23
24
using System . Threading . Tasks ;
24
25
using Microsoft . Extensions . Logging ;
@@ -63,7 +64,8 @@ static async Task Main()
63
64
//voipMediaSession.AudioLocalTrack.Capabilities.Clear();
64
65
//voipMediaSession.AudioLocalTrack.Capabilities.Add(
65
66
// new SDPAudioVideoMediaFormat(new AudioFormat(AudioCodecsEnum.L16, 118, 8000)));
66
-
67
+ voipMediaSession . OnAudioFormatsNegotiated += ( formats ) => voipMediaSession . AudioExtrasSource . SetAudioSourceFormat ( formats . First ( ) ) ;
68
+
67
69
Console . CancelKeyPress += delegate ( object sender , ConsoleCancelEventArgs e )
68
70
{
69
71
e . Cancel = true ;
@@ -163,6 +165,11 @@ static async Task Main()
163
165
sipTransport . Shutdown ( ) ;
164
166
}
165
167
168
+ private static void VoipMediaSession_OnAudioFormatsNegotiated ( System . Collections . Generic . List < AudioFormat > obj )
169
+ {
170
+ throw new NotImplementedException ( ) ;
171
+ }
172
+
166
173
/// <summary>
167
174
/// Adds a console logger. Can be omitted if internal SIPSorcery debug and warning messages are not required.
168
175
/// </summary>
You can’t perform that action at this time.
0 commit comments