mirror of
https://github.com/thestk/stk
synced 2026-01-15 14:01:52 +00:00
70 lines
4.5 KiB
HTML
70 lines
4.5 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>The Synthesis ToolKit in C++ (STK)</TITLE>
|
|
<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF">
|
|
<CENTER>
|
|
<img src="princeton.gif"> <img src="ccrma.gif"><P>
|
|
<a class="qindex" href="index.html">Home</a> <a class="qindex" href="information.html">Information</a> <a class="qindex" href="classes.html">Classes</a> <a class="qindex" href="download.html">Download</a> <a class="qindex" href="usage.html">Usage</a> <a class="qindex" href="maillist.html">Mail List</a> <a class="qindex" href="system.html">Requirements</a> <a class="qindex" href="links.html">Links</a> <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
|
|
<HR>
|
|
<!-- Generated by Doxygen 1.2.8.1 -->
|
|
<h1>TcpWvOut.h</h1><div class="fragment"><pre>00001 <font class="comment">/***************************************************/</font>
|
|
00026 <font class="comment">/***************************************************/</font>
|
|
00027
|
|
00028 <font class="preprocessor">#if !defined(__TCPWVOUT_H)</font>
|
|
00029 <font class="preprocessor"></font><font class="preprocessor">#define __TCPWVOUT_H</font>
|
|
00030 <font class="preprocessor"></font>
|
|
00031 <font class="preprocessor">#include "WvOut.h"</font>
|
|
00032 <font class="preprocessor">#include "Socket.h"</font>
|
|
00033
|
|
00034 <font class="keyword">class </font><a class="code" href="classTcpWvOut.html">TcpWvOut</a> : <font class="keyword">protected</font> <a class="code" href="classWvOut.html">WvOut</a>
|
|
00035 {
|
|
00036 <font class="keyword">public</font>:
|
|
00038 <a class="code" href="classTcpWvOut.html#a0">TcpWvOut</a>();
|
|
00039
|
|
00041
|
|
00044 <a class="code" href="classTcpWvOut.html#a0">TcpWvOut</a>(<font class="keywordtype">int</font> port, <font class="keyword">const</font> <font class="keywordtype">char</font> *hostname = <font class="stringliteral">"localhost"</font>, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> nChannels = 1, Stk::STK_FORMAT format = STK_SINT16);
|
|
00045
|
|
00047 <a class="code" href="classTcpWvOut.html#a2">~TcpWvOut</a>();
|
|
00048
|
|
00050
|
|
00053 <font class="keywordtype">void</font> <a class="code" href="classTcpWvOut.html#a3">connect</a>(<font class="keywordtype">int</font> port, <font class="keyword">const</font> <font class="keywordtype">char</font> *hostname = <font class="stringliteral">"localhost"</font>, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> nChannels = 1, Stk::STK_FORMAT format = STK_SINT16);
|
|
00054
|
|
00056 <font class="keywordtype">void</font> <a class="code" href="classTcpWvOut.html#a4">disconnect</a>(<font class="keywordtype">void</font>);
|
|
00057
|
|
00059 <font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> <a class="code" href="classWvOut.html#a5">getFrames</a>( <font class="keywordtype">void</font> ) <font class="keyword">const</font>;
|
|
00060
|
|
00062 MY_FLOAT <a class="code" href="classWvOut.html#a6">getTime</a>( <font class="keywordtype">void</font> ) <font class="keyword">const</font>;
|
|
00063
|
|
00065
|
|
00068 <font class="keywordtype">void</font> <a class="code" href="classWvOut.html#a7">tick</a>(MY_FLOAT sample);
|
|
00069
|
|
00071
|
|
00074 <font class="keywordtype">void</font> <a class="code" href="classWvOut.html#a7">tick</a>(<font class="keyword">const</font> MY_FLOAT *vector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> vectorSize);
|
|
00075
|
|
00077
|
|
00080 <font class="keywordtype">void</font> <a class="code" href="classWvOut.html#a9">tickFrame</a>(<font class="keyword">const</font> MY_FLOAT *frameVector, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> frames = 1);
|
|
00081
|
|
00082 <font class="keyword">protected</font>:
|
|
00083
|
|
00084 <font class="comment">// Write a buffer of length \e frames via the socket connection.</font>
|
|
00085 <font class="keywordtype">void</font> writeData( <font class="keywordtype">long</font> frames );
|
|
00086
|
|
00087 <font class="keywordtype">char</font> msg[256];
|
|
00088 <font class="keywordtype">char</font> *buffer;
|
|
00089 <a class="code" href="classSocket.html">Socket</a> *soket;
|
|
00090 <font class="keywordtype">int</font> dataSize;
|
|
00091 };
|
|
00092
|
|
00093 <font class="preprocessor">#endif // defined(__TCPWVOUT_H)</font>
|
|
</font></pre></div><HR>
|
|
|
|
<table>
|
|
<tr><td><A HREF="http://www-ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
|
|
<tr><td>©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
|
|
</table>
|
|
|
|
</BODY>
|
|
</HTML>
|