Skip to content

Commit

Permalink
Sora C++ SDK を 2023.12.0 に上げる
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Sep 7, 2023
1 parent f9e7692 commit 2c2d2e9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
- [CHANGE] `Sora.Config` 中にあるキャプチャラに関するフィールドを `Sora.CameraConfig` に移動する
- 修正方法は (TODO: @miosakuma がドキュメントへのリンクに差し替える) を参照して下さい
- @melpon
- [UPDATE] Sora C++ SDK を `2023.12.0` に上げる
- @melpon
- [UPDATE] libwebrtc を `m116.5845.6.1` に上げる
- @melpon
- [ADD] 接続中にキャプチャラを切り替える機能を実装
- @melpon

Expand Down
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SORA_UNITY_SDK_VERSION=2023.3.0
SORA_CPP_SDK_VERSION=2023.10.0
WEBRTC_BUILD_VERSION=m115.5790.7.0
SORA_CPP_SDK_VERSION=2023.12.0
WEBRTC_BUILD_VERSION=m116.5845.6.1
BOOST_VERSION=1.82.0
LYRA_VERSION=1.3.0
CMAKE_VERSION=3.26.4
Expand Down
11 changes: 11 additions & 0 deletions src/sora.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#endif

#ifdef SORA_UNITY_SDK_IOS
#include <sora/mac/mac_capturer.h>
#include "mac_helper/ios_audio_init.h"
#endif

Expand All @@ -58,6 +59,11 @@ Sora::~Sora() {
if (capturer_ != nullptr && capturer_type_ == 0) {
static_cast<sora::AndroidCapturer*>(capturer_.get())->Stop();
}
#endif
#if defined(SORA_UNITY_SDK_IOS) || defined(SORA_UNITY_SDK_MACOS)
if (capturer_ != nullptr && capturer_type_ == 0) {
static_cast<sora::MacCapturer*>(capturer_.get())->Stop();
}
#endif
if (capturer_ != nullptr && capturer_type_ != 0) {
static_cast<UnityCameraCapturer*>(capturer_.get())->Stop();
Expand Down Expand Up @@ -561,6 +567,11 @@ void Sora::SwitchCamera(const sora_conf::internal::CameraConfig& cc) {
if (capturer_ != nullptr && capturer_type_ == 0) {
static_cast<sora::AndroidCapturer*>(capturer_.get())->Stop();
}
#endif
#if defined(SORA_UNITY_SDK_IOS) || defined(SORA_UNITY_SDK_MACOS)
if (capturer_ != nullptr && capturer_type_ == 0) {
static_cast<sora::MacCapturer*>(capturer_.get())->Stop();
}
#endif
if (capturer_ != nullptr && capturer_type_ != 0) {
static_cast<UnityCameraCapturer*>(capturer_.get())->Stop();
Expand Down

0 comments on commit 2c2d2e9

Please sign in to comment.