Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/update sora cpp sdk 2024.8.0 #79

Merged
merged 9 commits into from
Sep 6, 2024
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