Skip to content

Commit 00eee5d

Browse files
committed
deploy: 94ef6e7
1 parent 9b1491d commit 00eee5d

18 files changed

Lines changed: 453 additions & 255 deletions

_audio_stream_8h_source.html

Lines changed: 160 additions & 133 deletions
Large diffs are not rendered by default.

classoboe_1_1_audio_stream-members.html

Lines changed: 36 additions & 33 deletions
Large diffs are not rendered by default.

classoboe_1_1_audio_stream.html

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,12 @@
200200
<tr class="separator:a9fdffea9e3a3f693fcbbbca699a22c6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
201201
<tr class="memitem:a9cf8ce01c8db830f89b70c782fe18d90" id="r_a9cf8ce01c8db830f89b70c782fe18d90"><td class="memItemLeft" align="right" valign="top">virtual oboe::Result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9cf8ce01c8db830f89b70c782fe18d90">reportWorkload</a> (int32_t appWorkload)</td></tr>
202202
<tr class="separator:a9cf8ce01c8db830f89b70c782fe18d90"><td class="memSeparator" colspan="2">&#160;</td></tr>
203+
<tr class="memitem:aab76b523480d65f25f7df3c99f2dce47" id="r_aab76b523480d65f25f7df3c99f2dce47"><td class="memItemLeft" align="right" valign="top">virtual oboe::Result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aab76b523480d65f25f7df3c99f2dce47">notifyWorkloadIncrease</a> (bool cpu, bool gpu, const char *debugName)</td></tr>
204+
<tr class="separator:aab76b523480d65f25f7df3c99f2dce47"><td class="memSeparator" colspan="2">&#160;</td></tr>
205+
<tr class="memitem:a3625762def846a6f4b3f48548bfa1b9c" id="r_a3625762def846a6f4b3f48548bfa1b9c"><td class="memItemLeft" align="right" valign="top">virtual oboe::Result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3625762def846a6f4b3f48548bfa1b9c">notifyWorkloadReset</a> (bool cpu, bool gpu, const char *debugName)</td></tr>
206+
<tr class="separator:a3625762def846a6f4b3f48548bfa1b9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
207+
<tr class="memitem:a5124210a3410ab9e36ea4c4b8b30e7b1" id="r_a5124210a3410ab9e36ea4c4b8b30e7b1"><td class="memItemLeft" align="right" valign="top">virtual oboe::Result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5124210a3410ab9e36ea4c4b8b30e7b1">notifyWorkloadSpike</a> (bool cpu, bool gpu, const char *debugName)</td></tr>
208+
<tr class="separator:a5124210a3410ab9e36ea4c4b8b30e7b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
203209
<tr class="memitem:aac81c2a3fd1ce1bd19e7b738553d6390" id="r_aac81c2a3fd1ce1bd19e7b738553d6390"><td class="memItemLeft" align="right" valign="top"><a id="aac81c2a3fd1ce1bd19e7b738553d6390" name="aac81c2a3fd1ce1bd19e7b738553d6390"></a>
204210
virtual oboe::Result&#160;</td><td class="memItemRight" valign="bottom"><b>setOffloadDelayPadding</b> (int32_t delayInFrames, int32_t paddingInFrames)</td></tr>
205211
<tr class="separator:aac81c2a3fd1ce1bd19e7b738553d6390"><td class="memSeparator" colspan="2">&#160;</td></tr>
@@ -1138,6 +1144,144 @@ <h2 class="memtitle"><span class="permalink"><a href="#a43d8a098440cde28f4ee8bed
11381144
</div><div class="memdoc">
11391145
<dl class="section return"><dt>Returns</dt><dd>true if XRun counts are supported on the stream </dd></dl>
11401146

1147+
</div>
1148+
</div>
1149+
<a id="aab76b523480d65f25f7df3c99f2dce47" name="aab76b523480d65f25f7df3c99f2dce47"></a>
1150+
<h2 class="memtitle"><span class="permalink"><a href="#aab76b523480d65f25f7df3c99f2dce47">&#9670;&#160;</a></span>notifyWorkloadIncrease()</h2>
1151+
1152+
<div class="memitem">
1153+
<div class="memproto">
1154+
<table class="mlabels">
1155+
<tr>
1156+
<td class="mlabels-left">
1157+
<table class="memname">
1158+
<tr>
1159+
<td class="memname">virtual oboe::Result oboe::AudioStream::notifyWorkloadIncrease </td>
1160+
<td>(</td>
1161+
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>cpu</em></span>, </td>
1162+
</tr>
1163+
<tr>
1164+
<td class="paramkey"></td>
1165+
<td></td>
1166+
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>gpu</em></span>, </td>
1167+
</tr>
1168+
<tr>
1169+
<td class="paramkey"></td>
1170+
<td></td>
1171+
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>debugName</em></span>&#160;)</td>
1172+
</tr>
1173+
</table>
1174+
</td>
1175+
<td class="mlabels-right">
1176+
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
1177+
</tr>
1178+
</table>
1179+
</div><div class="memdoc">
1180+
<p>Informs the framework of an upcoming increase in the workload of an audio callback bound to this session. The user can specify whether the increase is expected to be on the CPU, GPU, or both.</p>
1181+
<p>Sending hints for both CPU and GPU counts as two separate hints for the purposes of the rate limiter.</p>
1182+
<dl class="params"><dt>Parameters</dt><dd>
1183+
<table class="params">
1184+
<tr><td class="paramname">cpu</td><td>Indicates if the workload increase is expected to affect the CPU. </td></tr>
1185+
<tr><td class="paramname">gpu</td><td>Indicates if the workload increase is expected to affect the GPU. </td></tr>
1186+
<tr><td class="paramname">debugName</td><td>A required string used to identify this specific hint during tracing. This debug string will only be held for the duration of the method, and can be safely discarded after.</td></tr>
1187+
</table>
1188+
</dd>
1189+
</dl>
1190+
<p>This was introduced in Android API Level 36</p>
1191+
<dl class="section return"><dt>Returns</dt><dd>Result::OK on success. Result::ErrorInvalidState if the PerformanceHint was not enabled. Result::ErrorClosed if AdpfWrapper::open() was not called. Result::ErrorUnimplemented if the API is not supported. Result::ErrorInvalidHandle if no hints were requested. Result::ErrorInvalidRate if the hint was rate limited. Result::ErrorNoService if communication with the system service has failed. Result::ErrorUnavailable if the hint is not supported. </dd></dl>
1192+
1193+
</div>
1194+
</div>
1195+
<a id="a3625762def846a6f4b3f48548bfa1b9c" name="a3625762def846a6f4b3f48548bfa1b9c"></a>
1196+
<h2 class="memtitle"><span class="permalink"><a href="#a3625762def846a6f4b3f48548bfa1b9c">&#9670;&#160;</a></span>notifyWorkloadReset()</h2>
1197+
1198+
<div class="memitem">
1199+
<div class="memproto">
1200+
<table class="mlabels">
1201+
<tr>
1202+
<td class="mlabels-left">
1203+
<table class="memname">
1204+
<tr>
1205+
<td class="memname">virtual oboe::Result oboe::AudioStream::notifyWorkloadReset </td>
1206+
<td>(</td>
1207+
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>cpu</em></span>, </td>
1208+
</tr>
1209+
<tr>
1210+
<td class="paramkey"></td>
1211+
<td></td>
1212+
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>gpu</em></span>, </td>
1213+
</tr>
1214+
<tr>
1215+
<td class="paramkey"></td>
1216+
<td></td>
1217+
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>debugName</em></span>&#160;)</td>
1218+
</tr>
1219+
</table>
1220+
</td>
1221+
<td class="mlabels-right">
1222+
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
1223+
</tr>
1224+
</table>
1225+
</div><div class="memdoc">
1226+
<p>Informs the framework of an upcoming reset in the workload of an audio callback bound to this session, or the imminent start of a new workload. The user can specify whether the reset is expected to affect the CPU, GPU, or both.</p>
1227+
<p>Sending hints for both CPU and GPU counts as two separate hints for the purposes of the this load tracking.</p>
1228+
<dl class="params"><dt>Parameters</dt><dd>
1229+
<table class="params">
1230+
<tr><td class="paramname">cpu</td><td>Indicates if the workload reset is expected to affect the CPU. </td></tr>
1231+
<tr><td class="paramname">gpu</td><td>Indicates if the workload reset is expected to affect the GPU. </td></tr>
1232+
<tr><td class="paramname">debugName</td><td>A required string used to identify this specific hint during tracing. This debug string will only be held for the duration of the method, and can be safely discarded after.</td></tr>
1233+
</table>
1234+
</dd>
1235+
</dl>
1236+
<p>This was introduced in Android API Level 36</p>
1237+
<dl class="section return"><dt>Returns</dt><dd>Result::OK on success. Result::ErrorInvalidState if the PerformanceHint was not enabled. Result::ErrorClosed if AdpfWrapper::open() was not called. Result::ErrorUnimplemented if the API is not supported. Result::ErrorInvalidHandle if no hints were requested. Result::ErrorInvalidRate if the hint was rate limited. Result::ErrorNoService if communication with the system service has failed. Result::ErrorUnavailable if the hint is not supported. </dd></dl>
1238+
1239+
</div>
1240+
</div>
1241+
<a id="a5124210a3410ab9e36ea4c4b8b30e7b1" name="a5124210a3410ab9e36ea4c4b8b30e7b1"></a>
1242+
<h2 class="memtitle"><span class="permalink"><a href="#a5124210a3410ab9e36ea4c4b8b30e7b1">&#9670;&#160;</a></span>notifyWorkloadSpike()</h2>
1243+
1244+
<div class="memitem">
1245+
<div class="memproto">
1246+
<table class="mlabels">
1247+
<tr>
1248+
<td class="mlabels-left">
1249+
<table class="memname">
1250+
<tr>
1251+
<td class="memname">virtual oboe::Result oboe::AudioStream::notifyWorkloadSpike </td>
1252+
<td>(</td>
1253+
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>cpu</em></span>, </td>
1254+
</tr>
1255+
<tr>
1256+
<td class="paramkey"></td>
1257+
<td></td>
1258+
<td class="paramtype">bool</td> <td class="paramname"><span class="paramname"><em>gpu</em></span>, </td>
1259+
</tr>
1260+
<tr>
1261+
<td class="paramkey"></td>
1262+
<td></td>
1263+
<td class="paramtype">const char *</td> <td class="paramname"><span class="paramname"><em>debugName</em></span>&#160;)</td>
1264+
</tr>
1265+
</table>
1266+
</td>
1267+
<td class="mlabels-right">
1268+
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
1269+
</tr>
1270+
</table>
1271+
</div><div class="memdoc">
1272+
<p>Informs the framework of an upcoming one-off expensive frame for an audio callback bound to this session. This frame will be treated as not representative of the workload as a whole, and it will be discarded the purposes of load tracking. The user can specify whether the workload spike is expected to be on the CPU, GPU, or both.</p>
1273+
<p>Sending hints for both CPU and GPU counts as two separate hints for the purposes of the rate limiter.</p>
1274+
<p>This was introduced in Android API Level 36</p>
1275+
<dl class="params"><dt>Parameters</dt><dd>
1276+
<table class="params">
1277+
<tr><td class="paramname">cpu</td><td>Indicates if the workload spike is expected to affect the CPU. </td></tr>
1278+
<tr><td class="paramname">gpu</td><td>Indicates if the workload spike is expected to affect the GPU. </td></tr>
1279+
<tr><td class="paramname">debugName</td><td>A required string used to identify this specific hint during tracing. This debug string will only be held for the duration of the method, and can be safely discarded after.</td></tr>
1280+
</table>
1281+
</dd>
1282+
</dl>
1283+
<dl class="section return"><dt>Returns</dt><dd>Result::OK on success. Result::ErrorInvalidState if the PerformanceHint was not enabled. Result::ErrorClosed if AdpfWrapper::open() was not called. Result::ErrorUnimplemented if the API is not supported. Result::ErrorInvalidHandle if no hints were requested. Result::ErrorInvalidRate if the hint was rate limited. Result::ErrorNoService if communication with the system service has failed. Result::ErrorUnavailable if the hint is not supported. </dd></dl>
1284+
11411285
</div>
11421286
</div>
11431287
<a id="a0ea79e60f5a3d29fc5a1a116aba11dfe" name="a0ea79e60f5a3d29fc5a1a116aba11dfe"></a>

doxygen_crawl.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
<a href="functions_func.html"/>
108108
<a href="functions_func.html"/>
109109
<a href="functions_func.html"/>
110+
<a href="functions_func.html"/>
110111
<a href="functions_vars.html"/>
111112
<a href="functions_vars.html"/>
112113
<a href="functions_vars.html"/>
@@ -147,6 +148,7 @@
147148
<a href="classoboe_1_1_audio_stream.html#a2b7a3cee7444114843dbdd1fc705f6bb"/>
148149
<a href="classoboe_1_1_audio_stream.html#a2b9a90edb31c03fc034d1d79dac14d92"/>
149150
<a href="classoboe_1_1_audio_stream.html#a32c25c0333eab3d65ce02275ad4acb3d"/>
151+
<a href="classoboe_1_1_audio_stream.html#a3625762def846a6f4b3f48548bfa1b9c"/>
150152
<a href="classoboe_1_1_audio_stream.html#a3c484e314dee8dfed1d419f487b5d601"/>
151153
<a href="classoboe_1_1_audio_stream.html#a3caa2803064eafd217ef86b282d249da"/>
152154
<a href="classoboe_1_1_audio_stream.html#a42a645b6ad3dc89db751b7f55db72ded"/>
@@ -156,6 +158,7 @@
156158
<a href="classoboe_1_1_audio_stream.html#a462358ddab709c79d1a7968d6d55b727"/>
157159
<a href="classoboe_1_1_audio_stream.html#a47bb5798275f14d76444283a6b6f35eb"/>
158160
<a href="classoboe_1_1_audio_stream.html#a4eff89cae5bffa989e2413557e64c386"/>
161+
<a href="classoboe_1_1_audio_stream.html#a5124210a3410ab9e36ea4c4b8b30e7b1"/>
159162
<a href="classoboe_1_1_audio_stream.html#a524b17bc75564dd2910fae4feb853184"/>
160163
<a href="classoboe_1_1_audio_stream.html#a5c01907a59d5f89a5e4b819fe66b08bc"/>
161164
<a href="classoboe_1_1_audio_stream.html#a5f743b9ec83a31ce8b7edc7ed6bbca8b"/>
@@ -176,6 +179,7 @@
176179
<a href="classoboe_1_1_audio_stream.html#a9fdffea9e3a3f693fcbbbca699a22c6b"/>
177180
<a href="classoboe_1_1_audio_stream.html#aa48da7bf28026b7cccee73e6b054af28"/>
178181
<a href="classoboe_1_1_audio_stream.html#aa6ae9fc6ecc905571979c4df8f849a44"/>
182+
<a href="classoboe_1_1_audio_stream.html#aab76b523480d65f25f7df3c99f2dce47"/>
179183
<a href="classoboe_1_1_audio_stream.html#ab037b48b871b365b6b3e3f7155967912"/>
180184
<a href="classoboe_1_1_audio_stream.html#ab43dd4074e1de57bac1c3fd111430341"/>
181185
<a href="classoboe_1_1_audio_stream.html#ab7a8cfe5d6039386bc5850fd5ee9bd62"/>

functions_func.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ <h3><a id="index_l" name="index_l"></a>- l -</h3><ul>
204204
</ul>
205205

206206

207+
<h3><a id="index_n" name="index_n"></a>- n -</h3><ul>
208+
<li>notifyWorkloadIncrease()&#160;:&#160;<a class="el" href="classoboe_1_1_audio_stream.html#aab76b523480d65f25f7df3c99f2dce47">oboe::AudioStream</a></li>
209+
<li>notifyWorkloadReset()&#160;:&#160;<a class="el" href="classoboe_1_1_audio_stream.html#a3625762def846a6f4b3f48548bfa1b9c">oboe::AudioStream</a></li>
210+
<li>notifyWorkloadSpike()&#160;:&#160;<a class="el" href="classoboe_1_1_audio_stream.html#a5124210a3410ab9e36ea4c4b8b30e7b1">oboe::AudioStream</a></li>
211+
</ul>
212+
213+
207214
<h3><a id="index_o" name="index_o"></a>- o -</h3><ul>
208215
<li>onAudioReady()&#160;:&#160;<a class="el" href="classoboe_1_1_audio_stream_data_callback.html#ad8a3a9f609df5fd3a5d885cbe1b2204d">oboe::AudioStreamDataCallback</a>, <a class="el" href="classoboe_1_1_full_duplex_stream.html#ab0cd2c67294a5a1b1080e2f265266b84">oboe::FullDuplexStream</a>, <a class="el" href="classoboe_1_1_stabilized_callback.html#ad447e12ebf732cf151655c1fbaf58a49">oboe::StabilizedCallback</a></li>
209216
<li>onBothStreamsReady()&#160;:&#160;<a class="el" href="classoboe_1_1_full_duplex_stream.html#a961f02bbfdd9821a0271e8895a5949b8">oboe::FullDuplexStream</a></li>

functions_n.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
<div class="textblock">Here is a list of all documented class members with links to the class documentation for each member:</div>
8989

9090
<h3><a id="index_n" name="index_n"></a>- n -</h3><ul>
91+
<li>notifyWorkloadIncrease()&#160;:&#160;<a class="el" href="classoboe_1_1_audio_stream.html#aab76b523480d65f25f7df3c99f2dce47">oboe::AudioStream</a></li>
92+
<li>notifyWorkloadReset()&#160;:&#160;<a class="el" href="classoboe_1_1_audio_stream.html#a3625762def846a6f4b3f48548bfa1b9c">oboe::AudioStream</a></li>
93+
<li>notifyWorkloadSpike()&#160;:&#160;<a class="el" href="classoboe_1_1_audio_stream.html#a5124210a3410ab9e36ea4c4b8b30e7b1">oboe::AudioStream</a></li>
9194
<li>Number&#160;:&#160;<a class="el" href="structoboe_1_1_version.html#ac579661e79bcee45dc676d4647891de0">oboe::Version</a></li>
9295
</ul>
9396
</div><!-- contents -->

menudata.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ var menudata={children:[
5858
{text:"g",url:"functions_func.html#index_g"},
5959
{text:"i",url:"functions_func.html#index_i"},
6060
{text:"l",url:"functions_func.html#index_l"},
61+
{text:"n",url:"functions_func.html#index_n"},
6162
{text:"o",url:"functions_func.html#index_o"},
6263
{text:"p",url:"functions_func.html#index_p"},
6364
{text:"r",url:"functions_func.html#index_r"},

search/all_a.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
var searchData=
22
[
3-
['number_0',['Number',['../structoboe_1_1_version.html#ac579661e79bcee45dc676d4647891de0',1,'oboe::Version']]]
3+
['notifyworkloadincrease_0',['notifyWorkloadIncrease',['../classoboe_1_1_audio_stream.html#aab76b523480d65f25f7df3c99f2dce47',1,'oboe::AudioStream']]],
4+
['notifyworkloadreset_1',['notifyWorkloadReset',['../classoboe_1_1_audio_stream.html#a3625762def846a6f4b3f48548bfa1b9c',1,'oboe::AudioStream']]],
5+
['notifyworkloadspike_2',['notifyWorkloadSpike',['../classoboe_1_1_audio_stream.html#a5124210a3410ab9e36ea4c4b8b30e7b1',1,'oboe::AudioStream']]],
6+
['number_3',['Number',['../structoboe_1_1_version.html#ac579661e79bcee45dc676d4647891de0',1,'oboe::Version']]]
47
];

search/functions_10.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var searchData=
2+
[
3+
['waitforavailableframes_0',['waitForAvailableFrames',['../classoboe_1_1_audio_stream.html#ac0974b61c525d3b275dce342f75c208f',1,'oboe::AudioStream']]],
4+
['waitforstatechange_1',['waitForStateChange',['../classoboe_1_1_audio_stream.html#a0c865a5501f369d959c39d8ab8b46a07',1,'oboe::AudioStream']]],
5+
['waitforstatetransition_2',['waitForStateTransition',['../classoboe_1_1_audio_stream.html#a8adbacd6a55a94a532916ab037fba1d6',1,'oboe::AudioStream']]],
6+
['waserrorcallbackcalled_3',['wasErrorCallbackCalled',['../classoboe_1_1_audio_stream.html#aa48da7bf28026b7cccee73e6b054af28',1,'oboe::AudioStream']]],
7+
['willuseaaudio_4',['willUseAAudio',['../classoboe_1_1_audio_stream_builder.html#aa07ea100fcb107d9f7913f206c2214f4',1,'oboe::AudioStreamBuilder']]],
8+
['write_5',['write',['../classoboe_1_1_audio_stream.html#ad23cd8bf80d480ffb613c03d5e5d4512',1,'oboe::AudioStream::write()'],['../classoboe_1_1_fifo_buffer.html#a6a7cc7a1271ecf08a8eb08424703b459',1,'oboe::FifoBuffer::write()']]]
9+
];

0 commit comments

Comments
 (0)