Skip to content

Commit

Permalink
Merge branch 'release/2022.11.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Sep 14, 2022
2 parents d0e7286 + d300452 commit 78654f5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@

## develop

## 2022.11.1 (2022-09-14)

- [FIX] Android で SoraDefaultClient が使えなかったのを修正
- @melpon
- [FIX] SoraDefaultClientConfig の `use_audio_deivce` はスペルミスなので `use_audio_device` に修正
- @melpon

## 2022.11.0 (2022-09-09)

- [CHANGE] Jetson の HW MJPEG デコーダを一時的に無効にする
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SORA_CPP_SDK_VERSION=2022.11.0
SORA_CPP_SDK_VERSION=2022.11.1
WEBRTC_BUILD_VERSION=m105.5195.0.0
BOOST_VERSION=1.80.0
CMAKE_VERSION=3.23.1
Expand Down
2 changes: 1 addition & 1 deletion include/sora/sora_default_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace sora {
struct SoraDefaultClientConfig {
// オーディオデバイスを利用するかどうか
// false にすると一切オーディオデバイスを掴まなくなる
bool use_audio_deivce = true;
bool use_audio_device = true;
// ハードウェアエンコーダ/デコーダを利用するかどうか
// false にするとソフトウェアエンコーダ/デコーダのみになる(H.264 は利用できない)
bool use_hardware_encoder = true;
Expand Down
7 changes: 4 additions & 3 deletions src/sora_default_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@ bool SoraDefaultClient::Configure() {
worker_thread_->Invoke<rtc::scoped_refptr<webrtc::AudioDeviceModule>>(
RTC_FROM_HERE, [&] {
sora::AudioDeviceModuleConfig config;
if (!config_.use_audio_deivce) {
if (!config_.use_audio_device) {
config.audio_layer = webrtc::AudioDeviceModule::kDummyAudio;
}
config.task_queue_factory = dependencies.task_queue_factory.get();
config.jni_env = env;
config.application_context = GetAndroidApplicationContext(env);
config.jni_env = sora::GetJNIEnv();
config.application_context =
GetAndroidApplicationContext(config.jni_env);
return sora::CreateAudioDeviceModule(config);
});

Expand Down
2 changes: 1 addition & 1 deletion test/datachannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ int main(int argc, char* argv[]) {
v = boost::json::parse(js);
}
SoraClientConfig config;
config.use_audio_deivce = false;
config.use_audio_device = false;
config.use_hardware_encoder = false;
for (auto&& x : v.as_object().at("signaling_urls").as_array()) {
config.signaling_urls.push_back(x.as_string().c_str());
Expand Down

0 comments on commit 78654f5

Please sign in to comment.