This repository was archived by the owner on Aug 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +12
-25
lines changed Expand file tree Collapse file tree 8 files changed +12
-25
lines changed Original file line number Diff line number Diff line change 2020 uses : robinraju/release-downloader@v1.4
2121 with :
2222 repository : " DolbyIO/comms-sdk-cpp"
23- tag : " 2.0 .0"
23+ tag : " 2.1 .0"
2424 fileName : " ${{ inputs.cpp-sdk }}"
2525 out-file-path : " cppsdk.zip"
2626
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ jobs:
1010 os : [macos-latest, windows-latest]
1111 include :
1212 - os : macos-latest
13- sdk : cppsdk-2.0 .0-macos64.zip
13+ sdk : cppsdk-2.1 .0-macos64.zip
1414 shell : bash
1515 - os : windows-latest
16- sdk : cppsdk-2.0 .0-windows64.zip
16+ sdk : cppsdk-2.1 .0-windows64.zip
1717 shell : powershell
1818
1919 steps :
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ jobs:
1111 os : [macos-latest, windows-latest]
1212 include :
1313 - os : macos-latest
14- sdk : cppsdk-2.0 .0-macos64.zip
14+ sdk : cppsdk-2.1 .0-macos64.zip
1515 shell : bash
1616 runtime : DolbyIO.Comms.Sdk.Runtime.Osx
1717 - os : windows-latest
18- sdk : cppsdk-2.0 .0-windows64.zip
18+ sdk : cppsdk-2.1 .0-windows64.zip
1919 shell : powershell
2020 runtime : DolbyIO.Comms.Sdk.Runtime.Win
2121
4646 - uses : actions/checkout@v2
4747 - uses : ./.github/actions/configure
4848 with :
49- cpp-sdk : cppsdk-2.0 .0-macos64.zip
49+ cpp-sdk : cppsdk-2.1 .0-macos64.zip
5050 - uses : actions/download-artifact@v3
5151 with :
5252 name : nugets
Original file line number Diff line number Diff line change 2828
2929 - uses : ./.github/actions/configure
3030 with :
31- cpp-sdk : cppsdk-2.0 .0-windows64.zip
31+ cpp-sdk : cppsdk-2.1 .0-windows64.zip
3232 shell : pwsh
3333
3434 - name : Install Docfx
Original file line number Diff line number Diff line change @@ -17,25 +17,25 @@ extern "C" {
1717
1818 EXPORT_API int StartAudio () {
1919 return call { [&]() {
20- wait (sdk->conference ().start_audio ());
20+ wait (sdk->audio ().local (). start ());
2121 }}.result ();
2222 }
2323
2424 EXPORT_API int StopAudio () {
2525 return call { [&]() {
26- wait (sdk->conference ().stop_audio ());
26+ wait (sdk->audio ().local (). stop ());
2727 }}.result ();
2828 }
2929
3030 EXPORT_API int StartRemoteAudio (char * participant_id) {
3131 return call { [&]() {
32- wait (sdk->conference ().start_remote_audio (std::string (participant_id)));
32+ wait (sdk->audio ().remote (). start (std::string (participant_id)));
3333 }}.result ();
3434 }
3535
3636 EXPORT_API int StopRemoteAudio (char * participant_id) {
3737 return call { [&]() {
38- wait (sdk->conference ().stop_remote_audio (std::string (participant_id)));
38+ wait (sdk->audio ().remote (). stop (std::string (participant_id)));
3939 }}.result ();
4040 }
4141
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ namespace dolbyio::comms::native {
4444 struct media_constraints {
4545 bool audio;
4646 // bool video;
47- bool audio_processing;
4847 bool send_only;
4948 };
5049
@@ -166,7 +165,7 @@ namespace dolbyio::comms::native {
166165 dest->alias = strdup (src.alias .value_or (" " ));
167166 dest->is_new = src.is_new ;
168167 dest->status = to_underlying (src.status );
169- dest->spatial_audio_style = to_underlying (src.spatial_audio_style );
168+ dest->spatial_audio_style = to_underlying (src.spatial_audio_style . value_or (dolbyio::comms::spatial_audio_style::disabled) );
170169
171170 for (int i = 0 ; i < src.permissions .size (); i++) {
172171 dest->permissions [i] = to_underlying (src.permissions .at (i));
@@ -206,15 +205,13 @@ namespace dolbyio::comms::native {
206205 no_alloc_to_c (&dest->connection , src.connection );
207206
208207 dest->constraints .audio = src.constraints .audio ;
209- dest->constraints .audio_processing = src.constraints .audio_processing ;
210208 dest->constraints .send_only = src.constraints .send_only ;
211209 }
212210
213211 static void to_cpp (typename Traits::cpp_type& dest, typename Traits::c_type* src) {
214212 no_alloc_to_cpp (dest.connection , &src->connection );
215213
216214 dest.constraints .audio = src->constraints .audio ;
217- dest.constraints .audio_processing = src->constraints .audio_processing ;
218215 dest.constraints .send_only = src->constraints .send_only ;
219216 }
220217 };
Original file line number Diff line number Diff line change @@ -298,14 +298,6 @@ public class MediaConstraints
298298 [ MarshalAs ( UnmanagedType . U1 ) ]
299299 public bool Audio = false ;
300300
301- /// <summary>
302- /// A boolean that enables and disables audio processing on the server side for the
303- /// injected audio.
304- /// </summary>
305- /// <returns>If true, audio is processed.</returns>
306- [ MarshalAs ( UnmanagedType . U1 ) ]
307- public bool AudioProcessing = true ;
308-
309301 /// <summary>
310302 /// A boolean that allows a participant to join a conference as a sender. This
311303 /// is strictly intended for Server Side SDK applications that
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ public void Test_JoinOptions_ShouldMarshall()
5959 src . Connection . SpatialAudio = true ;
6060
6161 src . Constraints . Audio = true ;
62- src . Constraints . AudioProcessing = true ;
6362
6463 JoinOptions dest = new JoinOptions ( ) ;
6564 NativeTests . JoinOptionsTest ( src , dest ) ;
@@ -68,7 +67,6 @@ public void Test_JoinOptions_ShouldMarshall()
6867 Assert . Equal ( src . Connection . ConferenceAccessToken , dest . Connection . ConferenceAccessToken ) ;
6968 Assert . Equal ( src . Connection . SpatialAudio , dest . Connection . SpatialAudio ) ;
7069 Assert . Equal ( src . Constraints . Audio , dest . Constraints . Audio ) ;
71- Assert . Equal ( src . Constraints . AudioProcessing , dest . Constraints . AudioProcessing ) ;
7270 }
7371
7472 [ Fact ]
You can’t perform that action at this time.
0 commit comments