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
|
<HTML>
<HEAD>
<TITLE>struct FormatInfo</TITLE>
<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
<TABLE BORDER="0">
<TR><TD valign="top" align="left" cellspacing="10">
<h1>struct FormatInfo</h1>
</TD>
<TD valign="top" align="right" colspan="1">
A structure to hold information about a data format. <small><A HREF="#longdesc">More...</A></small></TD></TR>
</TABLE>
<HR>
<TABLE BORDER="0">
<TR><TH>Full name</TH><TD><code><A HREF="TelEngine.html">TelEngine</A>::FormatInfo</code></TD></TR>
<TR><TH>Definition</TH><TD><code>#include <<A HREF="yatephone_h.html">yatephone.h</A>></code></TD></TR>
<TR><TH><A HREF="full-list-TelEngine__FormatInfo.html">List of all Methods</A></TH></TR>
</TABLE>
</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Methods</h4><ul><LI>int <b><A HREF="#ref8">guessSamples</A></b> (int len) const
</LI>
<LI>int <b><A HREF="#ref9">dataRate</A></b> () const
</LI>
<LI>inline <b><A HREF="#ref10">FormatInfo</A></b> ()
</LI>
<LI>inline <b><A HREF="#ref11">FormatInfo</A></b> (const char* _name, int fsize = 0, int ftime = 10000,
const char* _type = "audio", int srate = 8000, int nchan = 1, bool convert = false)
</LI>
</ul><h4>Public Members</h4><ul><LI>const char* <b><A HREF="#ref1">name</A></b></LI>
<LI>const char* <b><A HREF="#ref2">type</A></b></LI>
<LI>int <b><A HREF="#ref3">frameSize</A></b></LI>
<LI>int <b><A HREF="#ref4">frameTime</A></b></LI>
<LI>int <b><A HREF="#ref5">sampleRate</A></b></LI>
<LI>int <b><A HREF="#ref6">numChannels</A></b></LI>
<LI>bool <b><A HREF="#ref7">converter</A></b></LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p>
A structure to hold information about a data format.
</p>
<A NAME="name"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const char* <strong>name</strong>
</td><td align="right"><h3><strong>name</strong></h3></td></tr></table><p></p><A NAME="type"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td>const char* <strong>type</strong>
</td><td align="right"><h3><strong>type</strong></h3></td></tr></table><p></p><A NAME="frameSize"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>frameSize</strong>
</td><td align="right"><h3><strong>frameSize</strong></h3></td></tr></table><p></p><A NAME="frameTime"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>frameTime</strong>
</td><td align="right"><h3><strong>frameTime</strong></h3></td></tr></table><p></p><A NAME="sampleRate"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>sampleRate</strong>
</td><td align="right"><h3><strong>sampleRate</strong></h3></td></tr></table><p></p><A NAME="numChannels"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>numChannels</strong>
</td><td align="right"><h3><strong>numChannels</strong></h3></td></tr></table><p></p><A NAME="converter"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>converter</strong>
</td><td align="right"><h3><strong>converter</strong></h3></td></tr></table><p></p><A NAME="guessSamples"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>guessSamples</strong> (int len)
<br></td><td align="right"><h3><strong>guessSamples</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
Guess the number of samples in an encoded data block
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>len</i></TD><TD align="left" valign="top">Length of the data block in octets
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: Number of samples or 0 if unknown
</p>
<A NAME="dataRate"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>dataRate</strong> ()
<br></td><td align="right"><h3><strong>dataRate</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
Get the data rate in bytes/s
</p>
<p><b>Returns</b>: Data rate or 0 if variable/undefined
</p>
<A NAME="FormatInfo"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>inline <strong>FormatInfo</strong> ()
<br></td><td align="right"><h3><strong>FormatInfo</strong></h3></td></tr></table><p></p><p>
Default constructor - used to initialize arrays
</p>
<A NAME="FormatInfo"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>inline <strong>FormatInfo</strong> (const char* _name, int fsize = 0, int ftime = 10000,
const char* _type = "audio", int srate = 8000, int nchan = 1, bool convert = false)
<br></td><td align="right"><h3><strong>FormatInfo</strong></h3></td></tr></table><p></p><p>
Normal constructor
</p>
<HR>
<table>
<tr><td><small>Generated by: paulc on bussard on Mon Mar 8 12:18:15 2010, using kdoc 2.0a54.</small></td></tr>
</table>
</BODY>
</HTML>
|