<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Jack: transport.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3.2 --> <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div> <h1>transport.h</h1><a href="transport_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> 00002 <span class="comment"> Copyright (C) 2002 Paul Davis</span> 00003 <span class="comment"> </span> 00004 <span class="comment"> This program is free software; you can redistribute it and/or modify</span> 00005 <span class="comment"> it under the terms of the GNU Lesser General Public License as published by</span> 00006 <span class="comment"> the Free Software Foundation; either version 2.1 of the License, or</span> 00007 <span class="comment"> (at your option) any later version.</span> 00008 <span class="comment"> </span> 00009 <span class="comment"> This program is distributed in the hope that it will be useful,</span> 00010 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span> 00011 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> 00012 <span class="comment"> GNU Lesser General Public License for more details.</span> 00013 <span class="comment"> </span> 00014 <span class="comment"> You should have received a copy of the GNU Lesser General Public License</span> 00015 <span class="comment"> along with this program; if not, write to the Free Software </span> 00016 <span class="comment"> Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span> 00017 <span class="comment"></span> 00018 <span class="comment"> $Id: transport.h,v 1.6 2003/06/17 20:56:45 kaiv Exp $</span> 00019 <span class="comment">*/</span> 00020 00021 <span class="preprocessor">#ifndef __jack_transport_h__</span> 00022 <span class="preprocessor"></span><span class="preprocessor">#define __jack_transport_h__</span> 00023 <span class="preprocessor"></span> 00024 <span class="preprocessor">#ifdef __cplusplus</span> 00025 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { 00026 <span class="preprocessor">#endif</span> 00027 <span class="preprocessor"></span> 00028 <span class="preprocessor">#include <<a class="code" href="types_8h.html">jack/types.h</a>></span> 00029 <a name="l00033"></a><a class="code" href="transport_8h.html#a11">00033</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> { 00034 00035 <a class="code" href="transport_8h.html#a11a1">JackTransportStopped</a>, 00036 <a class="code" href="transport_8h.html#a11a2">JackTransportRolling</a>, 00037 <a class="code" href="transport_8h.html#a11a3">JackTransportLooping</a> 00038 00039 } <a class="code" href="transport_8h.html#a11">jack_transport_state_t</a>; 00040 <a name="l00047"></a><a class="code" href="transport_8h.html#a12">00047</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> { 00048 00049 <a class="code" href="transport_8h.html#a12a4">JackTransportState</a> = 0x1, 00050 <a class="code" href="transport_8h.html#a12a5">JackTransportPosition</a> = 0x2, 00051 <a class="code" href="transport_8h.html#a12a6">JackTransportLoop</a> = 0x4, 00052 <a class="code" href="transport_8h.html#a12a7">JackTransportSMPTE</a> = 0x8, 00053 <a class="code" href="transport_8h.html#a12a8">JackTransportBBT</a> = 0x10, 00054 00055 } <a class="code" href="transport_8h.html#a12">jack_transport_bits_t</a>; 00056 <a name="l00057"></a><a class="code" href="transport_8h.html#a0">00057</a> <span class="preprocessor">#define EXTENDED_TIME_INFO \</span> 00058 <span class="preprocessor"></span> 00059 <span class="preprocessor"></span> <a name="l00062"></a><a class="code" href="structjack__transport__info__t.html">00062</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ 00063 00064 <span class="comment">/* these two cannot be set from clients: the server sets them */</span> 00065 <a name="l00066"></a><a class="code" href="structjack__transport__info__t.html#o0">00066</a> <a class="code" href="types_8h.html#a3">jack_nframes_t</a> frame_rate; <a name="l00067"></a><a class="code" href="structjack__transport__info__t.html#o1">00067</a> <a class="code" href="types_8h.html#a4">jack_time_t</a> usecs; <a name="l00069"></a><a class="code" href="structjack__transport__info__t.html#o2">00069</a> <a class="code" href="transport_8h.html#a12">jack_transport_bits_t</a> valid; <a name="l00070"></a><a class="code" href="structjack__transport__info__t.html#o3">00070</a> <a class="code" href="transport_8h.html#a11">jack_transport_state_t</a> transport_state; <a name="l00071"></a><a class="code" href="structjack__transport__info__t.html#o4">00071</a> <a class="code" href="types_8h.html#a3">jack_nframes_t</a> frame; <a name="l00072"></a><a class="code" href="structjack__transport__info__t.html#o5">00072</a> <a class="code" href="types_8h.html#a3">jack_nframes_t</a> loop_start; <a name="l00073"></a><a class="code" href="structjack__transport__info__t.html#o6">00073</a> <a class="code" href="types_8h.html#a3">jack_nframes_t</a> loop_end; 00074 <a name="l00075"></a><a class="code" href="structjack__transport__info__t.html#o7">00075</a> <span class="keywordtype">long</span> smpte_offset; <a name="l00076"></a><a class="code" href="structjack__transport__info__t.html#o8">00076</a> <span class="keywordtype">float</span> smpte_frame_rate; <a name="l00078"></a><a class="code" href="structjack__transport__info__t.html#o9">00078</a> <span class="keywordtype">int</span> bar; <a name="l00079"></a><a class="code" href="structjack__transport__info__t.html#o10">00079</a> <span class="keywordtype">int</span> beat; <a name="l00080"></a><a class="code" href="structjack__transport__info__t.html#o11">00080</a> <span class="keywordtype">int</span> tick; <a name="l00081"></a><a class="code" href="structjack__transport__info__t.html#o12">00081</a> <span class="keywordtype">double</span> bar_start_tick; 00082 <a name="l00083"></a><a class="code" href="structjack__transport__info__t.html#o13">00083</a> <span class="keywordtype">float</span> beats_per_bar; <a name="l00084"></a><a class="code" href="structjack__transport__info__t.html#o14">00084</a> <span class="keywordtype">float</span> beat_type; <a name="l00085"></a><a class="code" href="structjack__transport__info__t.html#o15">00085</a> <span class="keywordtype">double</span> ticks_per_beat; <a name="l00086"></a><a class="code" href="structjack__transport__info__t.html#o16">00086</a> <span class="keywordtype">double</span> beats_per_minute; 00087 00088 } <a class="code" href="structjack__transport__info__t.html">jack_transport_info_t</a>; 00089 00101 <span class="keywordtype">void</span> <a class="code" href="transport_8h.html#a9">jack_set_transport_info</a> (jack_client_t *client, 00102 <a class="code" href="structjack__transport__info__t.html">jack_transport_info_t</a> *tinfo); 00103 00113 <span class="keywordtype">void</span> <a class="code" href="transport_8h.html#a10">jack_get_transport_info</a> (jack_client_t *client, 00114 <a class="code" href="structjack__transport__info__t.html">jack_transport_info_t</a> *tinfo); 00115 00116 <span class="preprocessor">#ifdef __cplusplus</span> 00117 <span class="preprocessor"></span>} 00118 <span class="preprocessor">#endif</span> 00119 <span class="preprocessor"></span> 00120 <span class="preprocessor">#endif </span><span class="comment">/* __jack_transport_h__ */</span> </pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Aug 6 04:09:57 2003 for Jack by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.2 </small></address> </body> </html>