Skip to content

Commit

Permalink
(native) setAudioSessionOperationRestriction
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyuagora committed Jan 11, 2023
1 parent 3a7ba8f commit 43b3dcb
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<section id="prototype">
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java" />
<codeblock props="ios mac" outputclass="language-objectivec" />
<codeblock props="ios mac" outputclass="language-objectivec">- (void)setAudioSessionOperationRestriction:(AgoraAudioSessionOperationRestriction)restriction NS_SWIFT_NAME(setAudioSessionOperationRestriction(_:));</codeblock>
<codeblock props="cpp" outputclass="language-cpp">virtual int setAudioSessionOperationRestriction(AUDIO_SESSION_OPERATION_RESTRICTION restriction) = 0;</codeblock>
<codeblock props="electron" outputclass="language-typescript">abstract setAudioSessionOperationRestriction(restriction: AudioSessionOperationRestriction): number;</codeblock>
<codeblock props="unity" outputclass="language-csharp">public abstract int SetAudioSessionOperationRestriction(AUDIO_SESSION_OPERATION_RESTRICTION restriction);</codeblock>
Expand All @@ -41,7 +41,7 @@
<pd>SDK 对 Audio Session 的操作权限,详见 <xref keyref="AUDIO_SESSION_OPERATION_RESTRICTION" />。该参数为 Bit Mask,每个 Bit 对应一个权限。</pd>
</plentry>
</parml> </section>
<section id="return_values" props="native electron unity rn">
<section id="return_values" props="apple cpp electron unity rn">

This comment has been minimized.

Copy link
@Cilla-luodan

Cilla-luodan Jan 12, 2023

Collaborator

这里其实不用改,因为 andriod 和 mac 不会有这个方法,这里的 props 不会有任何影响,不过改了也没事……

<title>返回值</title>
<ul>
<li>0: 方法调用成功</li>
Expand Down
1 change: 1 addition & 0 deletions dita/RTC-NG/RTC_NG_API_CPP.ditamap
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
<topicref keyref="setAudioProfile" toc="no"/>
<topicref keyref="setAudioProfile2" toc="no"/>
<topicref keyref="setAudioScenario" toc="no"/>
<topicref keyref="setAudioSessionOperationRestriction" toc="no"/>
<topicref keyref="setDefaultAudioRouteToSpeakerphone" toc="no"/>
<topicref keyref="setEarMonitoringAudioFrameParameters" toc="no"/>
<topicref keyref="setExternalAudioSink" toc="no"/>
Expand Down
1 change: 1 addition & 0 deletions dita/RTC-NG/RTC_NG_API_iOS.ditamap
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
<topicref keyref="setAudioProfile" toc="no"/>
<topicref keyref="setAudioProfile2" toc="no"/>
<topicref keyref="setAudioScenario" toc="no"/>
<topicref keyref="setAudioSessionOperationRestriction" toc="no"/>
<topicref keyref="setDefaultAudioRouteToSpeakerphone" toc="no"/>
<topicref keyref="setEarMonitoringAudioFrameParameters" toc="no"/>
<topicref keyref="setExternalAudioSink" toc="no"/>
Expand Down
1 change: 1 addition & 0 deletions dita/RTC-NG/RTC_NG_API_macOS.ditamap
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
<topicref keyref="setAudioProfile" toc="no"/>
<topicref keyref="setAudioProfile2" toc="no"/>
<topicref keyref="setAudioScenario" toc="no"/>
<topicref keyref="setAudioSessionOperationRestriction" toc="no"/>

This comment has been minimized.

Copy link
@Cilla-luodan

Cilla-luodan Jan 12, 2023

Collaborator

setAudioSessionOperationRestriction 里写的是只用于 ios,所以 mac 的 map 应该不用加叭

This comment has been minimized.

Copy link
@jinyuagora

jinyuagora Jan 12, 2023

Author Collaborator

是滴是滴 所以下一个fix的commit把它拿掉了 我下次提PR进bugfix分支就清楚啦

<topicref keyref="setEarMonitoringAudioFrameParameters" toc="no"/>
<topicref keyref="setExternalAudioSink" toc="no"/>
<topicref keyref="setExternalAudioSource" toc="no"/>
Expand Down
7 changes: 7 additions & 0 deletions dita/RTC-NG/config/keys-rtc-ng-api-cpp.ditamap
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,13 @@
</keywords>
</topicmeta>
</keydef>
<keydef keys="setAudioSessionOperationRestriction" href="../API/api_irtcengine_setaudiosessionoperationrestriction.dita">
<topicmeta>
<keywords>
<keyword>setAudioSessionOperationRestriction</keyword>
</keywords>
</topicmeta>
</keydef>
<keydef keys="adjustRecordingSignalVolume" href="../API/api_irtcengine_adjustrecordingsignalvolume.dita">
<topicmeta>
<keywords>
Expand Down
7 changes: 7 additions & 0 deletions dita/RTC-NG/config/keys-rtc-ng-api-ios.ditamap
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,13 @@
</keywords>
</topicmeta>
</keydef>
<keydef keys="setAudioSessionOperationRestriction" href="../API/api_irtcengine_setaudiosessionoperationrestriction.dita">
<topicmeta>
<keywords>
<keyword>setAudioSessionOperationRestriction</keyword>
</keywords>
</topicmeta>
</keydef>
<keydef keys="adjustRecordingSignalVolume" href="../API/api_irtcengine_adjustrecordingsignalvolume.dita">
<topicmeta>
<keywords>
Expand Down
7 changes: 7 additions & 0 deletions dita/RTC-NG/config/keys-rtc-ng-api-macos.ditamap
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,13 @@
</keywords>
</topicmeta>
</keydef>
<keydef keys="setAudioSessionOperationRestriction" href="../API/api_irtcengine_setaudiosessionoperationrestriction.dita">
<topicmeta>
<keywords>
<keyword>setAudioSessionOperationRestriction</keyword>
</keywords>
</topicmeta>
</keydef>
<keydef keys="adjustLoopbackSignalVolume" href="../API/api_irtcengine_adjustloopbacksignalvolume.dita">
<topicmeta>
<keywords>
Expand Down

0 comments on commit 43b3dcb

Please sign in to comment.