This file is indexed.

/usr/share/qt5/doc/qtmultimedia/qaudiobuffer-stereoframe.html is in qtmultimedia5-doc-html 5.2.1-0ubuntu5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qaudiobuffer.cpp -->
  <title>StereoFrame Class | QtMultimedia 5.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li>Qt 5.2</li>
<li><a href="qtmultimedia-index.html">Qt Multimedia</a></li>
<li><a href="qtmultimedia-module.html">C++ Classes</a></li>
<li>StereoFrame</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-variables">Public Variables</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">StereoFrame Class</h1>
<span class="small-subtitle">(QAudioBuffer::StereoFrame)<br/></span>
<!-- $$$StereoFrame-brief -->
<p>The StereoFrame class provides a simple wrapper for a stereo audio frame. <a href="#details">More...</a></p>
<!-- @@@StereoFrame -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include &lt;<a href="qaudiobuffer.html">QAudioBuffer</a>&gt;</span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += multimedia</tt></td></tr></table><ul>
<li><a href="qaudiobuffer-stereoframe-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#StereoFrame">StereoFrame</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#StereoFrame-2">StereoFrame</a></b>(T<i> leftSample</i>, T<i> rightSample</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> T </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#average">average</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#clear">clear</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> StereoFrame &amp; </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#operator-eq">operator=</a></b>(const StereoFrame &amp;<i> other</i>)</td></tr>
</table>
<a name="public-variables"></a>
<h2>Public Variables</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> T </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#left-var">left</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> T </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#right-var">right</a></b></td></tr>
</table>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#S16S-typedef">S16S</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#S16U-typedef">S16U</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#S32F-typedef">S32F</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#S8S-typedef">S8S</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qaudiobuffer-stereoframe.html#S8U-typedef">S8U</a></b></td></tr>
</table>
<a name="details"></a>
<!-- $$$StereoFrame-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The StereoFrame class provides a simple wrapper for a stereo audio frame.</p>
<p>This templatized structure lets you treat a block of individual samples as an interleaved stereo stream frame. This is most useful when used with the templatized <a href="qaudiobuffer.html#data">data()</a> functions of <a href="qaudiobuffer.html">QAudioBuffer</a>. Generally the data is accessed as a pointer, so no copying should occur.</p>
<p>There are some predefined instantiations of this template for working with common stereo sample depths in a convenient way.</p>
<p>This frame structure has <i>left</i> and <i>right</i> members for accessing individual channel data.</p>
<p>For example:</p>
<pre class="cpp"><span class="comment">// Assuming 'buffer' is an unsigned 16 bit stereo buffer..</span>
<span class="type"><a href="qaudiobuffer.html">QAudioBuffer</a></span><span class="operator">::</span>S16U <span class="operator">*</span>frames <span class="operator">=</span> buffer<span class="operator">-</span><span class="operator">&gt;</span>data<span class="operator">&lt;</span><span class="type"><a href="qaudiobuffer.html">QAudioBuffer</a></span><span class="operator">::</span>S16U<span class="operator">&gt;</span>();
<span class="keyword">for</span> (<span class="type">int</span> i<span class="operator">=</span><span class="number">0</span>; i <span class="operator">&lt;</span> buffer<span class="operator">-</span><span class="operator">&gt;</span>frameCount(); i<span class="operator">+</span><span class="operator">+</span>) {
    qSwap(frames<span class="operator">[</span>i<span class="operator">]</span><span class="operator">.</span>left<span class="operator">,</span> frames<span class="operator">[</span>i<span class="operator">]</span><span class="operator">.</span>right);
}</pre>
</div>
<p><b>See also </b><a href="qaudiobuffer-stereoframe.html#S8U-typedef">QAudioBuffer::S8U</a>, <a href="qaudiobuffer-stereoframe.html#S8S-typedef">QAudioBuffer::S8S</a>, <a href="qaudiobuffer-stereoframe.html#S16S-typedef">QAudioBuffer::S16S</a>, <a href="qaudiobuffer-stereoframe.html#S16U-typedef">QAudioBuffer::S16U</a>, and <a href="qaudiobuffer-stereoframe.html#S32F-typedef">QAudioBuffer::S32F</a>.</p>
<!-- @@@StereoFrame -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$StereoFrame[overload1]$$$StereoFrame -->
<h3 class="fn"><a name="StereoFrame"></a>StereoFrame::<span class="name">StereoFrame</span>()</h3>
<p>Constructs a new frame with the &quot;silent&quot; value for this sample format (0 for signed formats and floats, 0x8* for unsigned formats).</p>
<!-- @@@StereoFrame -->
<!-- $$$StereoFrame$$$StereoFrameTT -->
<h3 class="fn"><a name="StereoFrame-2"></a>StereoFrame::<span class="name">StereoFrame</span>(<span class="type">T</span><i> leftSample</i>, <span class="type">T</span><i> rightSample</i>)</h3>
<p>Constructs a new frame with the supplied <i>leftSample</i> and <i>rightSample</i> values.</p>
<!-- @@@StereoFrame -->
<!-- $$$average[overload1]$$$average -->
<h3 class="fn"><a name="average"></a><span class="type">T</span> StereoFrame::<span class="name">average</span>() const</h3>
<p>Returns the arithmetic average of the left and right samples.</p>
<!-- @@@average -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn"><a name="clear"></a><span class="type">void</span> StereoFrame::<span class="name">clear</span>()</h3>
<p>Sets the values of this frame to the &quot;silent&quot; value.</p>
<!-- @@@clear -->
<!-- $$$operator=[overload1]$$$operator=constStereoFrame& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">StereoFrame</span> &amp; StereoFrame::<span class="name">operator=</span>(const <span class="type">StereoFrame</span> &amp;<i> other</i>)</h3>
<p>Assigns <i>other</i> to this frame.</p>
<!-- @@@operator= -->
</div>
<div class="vars">
<h2>Member Variable Documentation</h2>
<!-- $$$left -->
<h3 class="fn"><a name="left-var"></a><span class="type">T</span> StereoFrame::<span class="name">left</span></h3>
<p>This variable holds the left sample.</p>
<!-- @@@left -->
<!-- $$$right -->
<h3 class="fn"><a name="right-var"></a><span class="type">T</span> StereoFrame::<span class="name">right</span></h3>
<p>This variable holds the right sample.</p>
<!-- @@@right -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$S16S -->
<h3 class="fn"><a name="S16S-typedef"></a>typedef QAudioBuffer::<span class="name">S16S</span></h3>
<p>This is a predefined specialization for a signed stereo 16 bit sample. Each channel is a <i>signed short</i>.</p>
<!-- @@@S16S -->
<!-- $$$S16U -->
<h3 class="fn"><a name="S16U-typedef"></a>typedef QAudioBuffer::<span class="name">S16U</span></h3>
<p>This is a predefined specialization for an unsigned stereo 16 bit sample. Each channel is an <i>unsigned short</i>.</p>
<!-- @@@S16U -->
<!-- $$$S32F -->
<h3 class="fn"><a name="S32F-typedef"></a>typedef QAudioBuffer::<span class="name">S32F</span></h3>
<p>This is a predefined specialization for an 32 bit float sample. Each channel is a <i>float</i>.</p>
<!-- @@@S32F -->
<!-- $$$S8S -->
<h3 class="fn"><a name="S8S-typedef"></a>typedef QAudioBuffer::<span class="name">S8S</span></h3>
<p>This is a predefined specialization for a signed stereo 8 bit sample. Each channel is a <i>signed char</i>.</p>
<!-- @@@S8S -->
<!-- $$$S8U -->
<h3 class="fn"><a name="S8U-typedef"></a>typedef QAudioBuffer::<span class="name">S8U</span></h3>
<p>This is a predefined specialization for an unsigned stereo 8 bit sample. Each channel is an <i>unsigned char</i>.</p>
<!-- @@@S8U -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
   subsidiaries. Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Digia, Qt and their respective logos are trademarks of Digia Plc     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>