Skip to content

Commit

Permalink
Merge pull request #3361 from AgoraIO/translation/4.x-api-ref
Browse files Browse the repository at this point in the history
New YiCAT updates
  • Loading branch information
jinyuagora authored Sep 26, 2023
2 parents f378a27 + 7a96012 commit fe5523c
Show file tree
Hide file tree
Showing 151 changed files with 1,468 additions and 1,465 deletions.
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_channelmediarelayconfiguration_getdestchannelmediainfos">
<title><ph keyref="getDestChannelMediaInfos" /></title>
<title><ph keyref="getDestChannelMediaInfos"/></title>
<shortdesc id="short"><ph id="shortdesc">Gets the information of the target channel.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm keyref="getDestChannelMediaInfos" />
<indexterm keyref="getDestChannelMediaInfos"/>
</keywords>
</metadata>
</prolog>
<refbody>
<section id="prototype">
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java">public Map&lt;String, ChannelMediaInfo&gt; getDestChannelMediaInfos() {
<codeblock props="android" outputclass="language-java">public Map&lt;String, ChannelMediaInfo> getDestChannelMediaInfos() {
return destInfos;
}</codeblock>
<codeblock props="ios mac" outputclass="language-objectivec" />
<codeblock props="cpp unreal" outputclass="language-cpp" />
<codeblock props="electron" outputclass="language-typescript" />
<codeblock props="unity cs" outputclass="language-csharp" />
<codeblock props="rn" outputclass="language-typescript" />
<codeblock props="flutter" outputclass="language-dart" />
<codeblock props="reserve" outputclass="language-cpp" /></p>
<codeblock props="ios mac" outputclass="language-objectivec"/>
<codeblock props="cpp unreal" outputclass="language-cpp"/>
<codeblock props="electron" outputclass="language-typescript"/>
<codeblock props="unity cs" outputclass="language-csharp"/>
<codeblock props="rn" outputclass="language-typescript"/>
<codeblock props="flutter" outputclass="language-dart"/>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
</section>
<section id="return_values">
<title>Returns</title>
<p>The information of the target channel. See <xref keyref="ChannelMediaInfo" />.</p>
<p>The information of the target channel. See <xref keyref="ChannelMediaInfo"/>.</p>
</section>
</refbody>
</reference>
</reference>
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<refbody>
<section id="prototype">
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java" />
<codeblock props="ios mac" outputclass="language-objectivec" />
<codeblock props="android" outputclass="language-java"/>
<codeblock props="ios mac" outputclass="language-objectivec"/>
<codeblock props="cpp unreal" outputclass="language-cpp">virtual int followSystemLoopbackDevice(bool enable) = 0;</codeblock>
<codeblock props="electron" outputclass="language-typescript">abstract followSystemLoopbackDevice(enable: boolean): number;</codeblock>
<codeblock props="unity cs" outputclass="language-csharp">public abstract int FollowSystemLoopbackDevice(bool enable);</codeblock>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_iaudiodevicemanager_getplaybackdefaultdevice">
<title><ph keyref="getPlaybackDefaultDevice" /></title>
<title><ph keyref="getPlaybackDefaultDevice"/></title>
<shortdesc id="short"><ph id="shortdesc">Gets the default audio playback device.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm keyref="getPlaybackDefaultDevice" />
<indexterm keyref="getPlaybackDefaultDevice"/>
</keywords>
</metadata>
</prolog>
<refbody>
<section id="prototype">
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java" />
<codeblock props="ios mac" outputclass="language-objectivec" />
<codeblock props="cpp unreal" outputclass="language-cpp" />
<codeblock props="android" outputclass="language-java"/>
<codeblock props="ios mac" outputclass="language-objectivec"/>
<codeblock props="cpp unreal" outputclass="language-cpp"/>
<codeblock props="electron" outputclass="language-typescript">abstract getPlaybackDefaultDevice(): AudioDeviceInfo;</codeblock>
<codeblock props="unity cs" outputclass="language-csharp">public abstract int GetPlaybackDefaultDevice(ref string deviceId, ref string deviceName);</codeblock>
<codeblock props="rn" outputclass="language-typescript" />
<codeblock props="flutter" outputclass="language-dart">Future&lt;AudioDeviceInfo&gt; getPlaybackDefaultDevice();</codeblock>
<codeblock props="reserve" outputclass="language-cpp" /></p>
<codeblock props="rn" outputclass="language-typescript"/>
<codeblock props="flutter" outputclass="language-dart">Future&lt;AudioDeviceInfo> getPlaybackDefaultDevice();</codeblock>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
</section>
<section id="detailed_desc">
<title>Details</title>
Expand All @@ -40,11 +40,11 @@
</section>
<section id="return_values">
<title>Returns</title>
<p props="flutter electron">The details about the default audio playback device. See <xref keyref="AudioDeviceInfo" />.</p>
<p props="flutter electron">The details about the default audio playback device. See <xref keyref="AudioDeviceInfo"/>.</p>
<ul props="unity cs">
<li>0: Success.</li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></li>
</ul>
</section>
</refbody>
</reference>
</reference>
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_iaudiodevicemanager_getrecordingdefaultdevice">
<title><ph keyref="getRecordingDefaultDevice" /></title>
<title><ph keyref="getRecordingDefaultDevice"/></title>
<shortdesc id="short"><ph id="shortdesc">Gets the default audio capture device.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm keyref="getRecordingDefaultDevice" />
<indexterm keyref="getRecordingDefaultDevice"/>
</keywords>
</metadata>
</prolog>
<refbody>
<section id="prototype">
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java" />
<codeblock props="ios mac" outputclass="language-objectivec" />
<codeblock props="cpp unreal" outputclass="language-cpp" />
<codeblock props="android" outputclass="language-java"/>
<codeblock props="ios mac" outputclass="language-objectivec"/>
<codeblock props="cpp unreal" outputclass="language-cpp"/>
<codeblock props="electron" outputclass="language-typescript">abstract getRecordingDefaultDevice(): AudioDeviceInfo;</codeblock>
<codeblock props="unity cs" outputclass="language-csharp">public abstract int GetRecordingDefaultDevice(ref string deviceId, ref string deviceName);</codeblock>
<codeblock props="rn" outputclass="language-typescript" />
<codeblock props="flutter" outputclass="language-dart">Future&lt;AudioDeviceInfo&gt; getRecordingDefaultDevice();</codeblock>
<codeblock props="reserve" outputclass="language-cpp" /></p>
<codeblock props="rn" outputclass="language-typescript"/>
<codeblock props="flutter" outputclass="language-dart">Future&lt;AudioDeviceInfo> getRecordingDefaultDevice();</codeblock>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
</section>
<section id="detailed_desc">
<title>Details</title>
Expand All @@ -40,11 +40,11 @@
</section>
<section id="return_values">
<title>Returns</title>
<p props="flutter electron">The details about the default audio capture device. See <xref keyref="AudioDeviceInfo" />.</p>
<p props="flutter electron">The details about the default audio capture device. See <xref keyref="AudioDeviceInfo"/>.</p>
<ul props="unity cs">
<li>0: Success.</li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></li>
</ul>
</section>
</refbody>
</reference>
</reference>
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<refbody>
<section id="prototype">
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java" />
<codeblock props="ios mac" outputclass="language-objectivec" />
<codeblock props="android" outputclass="language-java"/>
<codeblock props="ios mac" outputclass="language-objectivec"/>
<codeblock props="cpp unreal" outputclass="language-cpp">virtual int setLoopbackDevice(const char deviceId[MAX_DEVICE_ID_LENGTH]) = 0;</codeblock>
<codeblock props="electron" outputclass="language-typescript">abstract setLoopbackDevice(deviceId: string): number;</codeblock>
<codeblock props="unity cs" outputclass="language-csharp">public abstract int SetLoopbackDevice(string deviceId);</codeblock>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<refbody>
<section id="prototype">
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java" />
<codeblock props="mac" outputclass="language-objectivec" />
<codeblock props="android" outputclass="language-java"/>
<codeblock props="mac" outputclass="language-objectivec"/>
<codeblock props="cpp unreal" outputclass="language-cpp">virtual int setRecordingDeviceVolume(int volume) = 0;</codeblock>
<codeblock props="electron" outputclass="language-typescript">abstract setRecordingDeviceVolume(volume: number): number;</codeblock>
<codeblock props="unity cs" outputclass="language-csharp">public abstract int SetRecordingDeviceVolume(int volume);</codeblock>
Expand Down
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">public abstract int setZones(SpatialAudioZone[] zones);</codeblock>
<codeblock props="ios mac" outputclass="language-objectivec">- (int)setZones:(NSArray&lt;AgoraSpatialAudioZone*&gt; * _Nonnull)zones;</codeblock>
<codeblock props="ios mac" outputclass="language-objectivec">- (int)setZones:(NSArray&lt;AgoraSpatialAudioZone*> * _Nonnull)zones;</codeblock>
<codeblock props="cpp unreal" outputclass="language-cpp">virtual int setZones(const SpatialAudioZone *zones, unsigned int zoneCount) = 0;</codeblock>
<codeblock props="electron" outputclass="language-typescript">abstract setZones(zones: SpatialAudioZone, zoneCount: number): number;</codeblock>
<codeblock props="unity cs" outputclass="language-csharp">public abstract int SetZones(SpatialAudioZone[] zones, uint zoneCount);</codeblock>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
playerId: number,
positionInfo: RemoteVoicePositionInfo
): number;</codeblock>
<codeblock props="flutter" outputclass="language-dart">Future&lt;void&gt; updatePlayerPositionInfo(
<codeblock props="flutter" outputclass="language-dart">Future&lt;void> updatePlayerPositionInfo(
{required int playerId, required RemoteVoicePositionInfo positionInfo});</codeblock>
<codeblock props="reserve" outputclass="language-cpp" /></p>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
</section>
<section id="detailed_desc">
<title>Details</title>
Expand All @@ -42,15 +42,15 @@
</plentry>
<plentry props="native unreal bp rn unity electron flutter cs">
<pt>positionInfo</pt>
<pd>The spatial position of the media player. See <xref keyref="RemoteVoicePositionInfo" />.</pd>
<pd>The spatial position of the media player. See <xref keyref="RemoteVoicePositionInfo"/>.</pd>
</plentry>
</parml> </section>
<section id="return_values">
<title><ph keyref="return-section-title" /></title>
<p props="flutter">When the method call succeeds, there is no return value; when fails, the <xref keyref="AgoraRtcException" /> exception is thrown; and you need to catch the exception and handle it accordingly. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></p>
<title><ph keyref="return-section-title"/></title>
<p props="flutter">When the method call succeeds, there is no return value; when fails, the <xref keyref="AgoraRtcException"/> exception is thrown; and you need to catch the exception and handle it accordingly. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></p>
<ul>
<li props="native unreal bp electron unity rn cs">0: Success.</li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></li>
</ul> </section>
</refbody>
</reference>
</reference>
28 changes: 14 additions & 14 deletions en-US/dita/RTC-NG/API/api_ilocalspatialaudioengine_initialize.dita
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="api_ilocalspatialaudioengine_initialize">
<title><ph keyref="initialize_ILocalSpatialAudioEngine" /></title>
<shortdesc id="short"><ph id="shortdesc">Initializes <xref keyref="ILocalSpatialAudioEngine" />.</ph></shortdesc>
<title><ph keyref="initialize_ILocalSpatialAudioEngine"/></title>
<shortdesc id="short"><ph id="shortdesc">Initializes <xref keyref="ILocalSpatialAudioEngine"/>.</ph></shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm keyref="initialize_ILocalSpatialAudioEngine" />
<indexterm keyref="initialize_ILocalSpatialAudioEngine"/>
</keywords>
</metadata>
</prolog>
Expand All @@ -19,32 +19,32 @@
<codeblock props="electron" outputclass="language-typescript">abstract initialize(): number;</codeblock>
<codeblock props="unity cs" outputclass="language-csharp">public abstract int Initialize();</codeblock>
<codeblock props="rn" outputclass="language-typescript">abstract initialize(): number;</codeblock>
<codeblock props="flutter" outputclass="language-dart">Future&lt;void&gt; initialize();</codeblock>
<codeblock props="reserve" outputclass="language-cpp" /></p>
<codeblock props="flutter" outputclass="language-dart">Future&lt;void> initialize();</codeblock>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
</section>
<section id="detailed_desc">
<title>Details</title>
<note type="note">
<ul>
<li props="cpp unreal bp">Call this method after calling <xref keyref="queryInterface" /><codeph>(<ph keyref="AGORA_IID_LOCAL_SPATIAL_AUDIO" />)</codeph>.</li>
<li props="android">Call this method after calling <xref keyref="create_ILocalSpatialAudioEngine" />.</li>
<li>Before calling other methods of the <apiname keyref="ILocalSpatialAudioEngine" /> class, you need to call this method to initialize <apiname keyref="ILocalSpatialAudioEngine" />.</li>
<li>The SDK supports creating only one <apiname keyref="ILocalSpatialAudioEngine" /> instance for an app.</li>
<li props="cpp unreal bp">Call this method after calling <xref keyref="queryInterface"/><codeph>(<ph keyref="AGORA_IID_LOCAL_SPATIAL_AUDIO"/>)</codeph>.</li>
<li props="android">Call this method after calling <xref keyref="create_ILocalSpatialAudioEngine"/>.</li>
<li>Before calling other methods of the <apiname keyref="ILocalSpatialAudioEngine"/> class, you need to call this method to initialize <apiname keyref="ILocalSpatialAudioEngine"/>.</li>
<li>The SDK supports creating only one <apiname keyref="ILocalSpatialAudioEngine"/> instance for an app.</li>
</ul> </note> </section>
<section id="parameters" props="native unreal bp">
<title>Parameters</title>
<parml>
<plentry>
<pt>config</pt>
<pd>The configuration of <apiname keyref="ILocalSpatialAudioEngine" />. See <xref keyref="LocalSpatialAudioConfig" />.</pd>
<pd>The configuration of <apiname keyref="ILocalSpatialAudioEngine"/>. See <xref keyref="LocalSpatialAudioConfig"/>.</pd>
</plentry>
</parml> </section>
<section id="return_values">
<title><ph keyref="return-section-title" /></title>
<p props="flutter">When the method call succeeds, there is no return value; when fails, the <xref keyref="AgoraRtcException" /> exception is thrown; and you need to catch the exception and handle it accordingly. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></p>
<title><ph keyref="return-section-title"/></title>
<p props="flutter">When the method call succeeds, there is no return value; when fails, the <xref keyref="AgoraRtcException"/> exception is thrown; and you need to catch the exception and handle it accordingly. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></p>
<ul>
<li props="native unreal bp electron unity rn cs">0: Success.</li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link" /> for details and resolution suggestions.</ph></li>
<li>&lt; 0: Failure. <ph props="cn">See <xref keyref="error-code-link"/> for details and resolution suggestions.</ph></li>
</ul> </section>
</refbody>
</reference>
</reference>
Loading

0 comments on commit fe5523c

Please sign in to comment.