Skip to content

Commit

Permalink
Feature/update sora cpp sdk 2024.8.0 (#79)
Browse files Browse the repository at this point in the history
* Sora C++ SDK を 2024.8.0-canary.0 にあげる

* rtc::CreateRandomString のヘッダを追加

* CHANGES の更新

* #include <rtc_base/helpers.h> は libwebrtc から削除されたのと、使われていないので削除

* .view() を追加

* [e2e] キック

* [e2e] キック

* e2e test の条件をいったんコメントアウト

* Revert "e2e test の条件をいったんコメントアウト"

This reverts commit 0329218.

---------

Co-authored-by: torikizi <kizifrog@gmail.com>
  • Loading branch information
voluntas and torikizi authored Sep 6, 2024
1 parent 51ff883 commit 2094a3c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

## develop

- [UPDATE] Sora C++ SDK のバージョンを `2024.8.0` に上げる
- @torikizi
- [UPDATE] libwebrtc のバージョンを `m128.6613.2.0` に上げる
- libwebrtc のモジュール分割に追従するため rtc::CreateRandomString のヘッダを追加
- @torikizi

### misc

- [FIX] examples の設定に virtual = true を指定するようにする
Expand Down
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SORA_CPP_SDK_VERSION=2024.7.0
WEBRTC_BUILD_VERSION=m127.6533.1.1
SORA_CPP_SDK_VERSION=2024.8.0-canary.0
WEBRTC_BUILD_VERSION=m128.6613.2.0
BOOST_VERSION=1.85.0
CMAKE_VERSION=3.29.6
OPENH264_VERSION=v2.4.1
3 changes: 3 additions & 0 deletions src/sora.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

#include "sora.h"

// WebRTC
#include <rtc_base/crypto_random.h>

Sora::Sora(std::optional<bool> use_hardware_encoder,
std::optional<std::string> openh264) {
factory_.reset(new SoraFactory(use_hardware_encoder, openh264));
Expand Down
3 changes: 3 additions & 0 deletions src/sora_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
// Boost
#include <boost/asio/signal_set.hpp>

// WebRTC
#include <rtc_base/crypto_random.h>

// nonobind
#include <nanobind/nanobind.h>

Expand Down
2 changes: 1 addition & 1 deletion src/sora_vad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ float SoraVAD::Analyze(std::shared_ptr<SoraAudioFrame> frame) {
audio_buffer_->CopyFrom(frame->RawData(), vad_input_config_);
return vad_->Analyze(webrtc::AudioFrameView<const float>(
audio_buffer_->channels(), audio_buffer_->num_channels(),
audio_buffer_->num_frames()));
audio_buffer_->num_frames()).view());
}
1 change: 0 additions & 1 deletion src/sora_video_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// WebRTC
#include <api/video/i420_buffer.h>
#include <rtc_base/helpers.h>
#include <rtc_base/time_utils.h>
#include <third_party/libyuv/include/libyuv.h>

Expand Down

0 comments on commit 2094a3c

Please sign in to comment.