From 3d6f90f70d5b04e896c7cd041e8bb2b9d4702467 Mon Sep 17 00:00:00 2001 From: melpon Date: Wed, 23 Oct 2024 12:14:11 +0900 Subject: [PATCH] =?UTF-8?q?SoraSignalingConfig=20=E3=81=AB=20audio=5Fopus?= =?UTF-8?q?=5Fparams=20=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 2 ++ include/sora/sora_signaling.h | 1 + src/sora_signaling.cpp | 3 +++ 3 files changed, 6 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 15478f8..2940405 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -44,6 +44,8 @@ - @tnoho - [ADD] DataChannel のみの接続で type: close がやってきた場合に正しく切断されるようにする - @melpon +- [ADD] SoraSignalingConfig に audio_opus_params を追加 + - @melpon - [FIX] HTTP Proxy 利用時の Websocket 初期化で insecure_ メンバ変数が初期化されていなかったのを修正 - @melpon - [FIX] SoraSignalingConfig の client_cert と client_key に渡す必要がある値を、ファイルパスからファイルの内容に修正 diff --git a/include/sora/sora_signaling.h b/include/sora/sora_signaling.h index 970859b..5ed3ee7 100644 --- a/include/sora/sora_signaling.h +++ b/include/sora/sora_signaling.h @@ -95,6 +95,7 @@ struct SoraSignalingConfig { boost::json::value video_av1_params; boost::json::value video_h264_params; boost::json::value video_h265_params; + boost::json::value audio_opus_params; std::string audio_streaming_language_code; boost::json::value metadata; boost::json::value signaling_notify_metadata; diff --git a/src/sora_signaling.cpp b/src/sora_signaling.cpp index 34eb677..21b5fef 100644 --- a/src/sora_signaling.cpp +++ b/src/sora_signaling.cpp @@ -343,6 +343,9 @@ void SoraSignaling::DoSendConnect(bool redirect) { if (config_.audio_bit_rate != 0) { m["audio"].as_object()["bit_rate"] = config_.audio_bit_rate; } + if (!config_.audio_opus_params.is_null()) { + m["audio"].as_object()["opus_params"] = config_.audio_opus_params; + } } if (!config_.audio_streaming_language_code.empty()) {