<!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>AlsaPlayer: scope_plugin.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3.3 --> <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>scope_plugin.h</h1><a href="scope__plugin_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/* scope_plugin.h</span> 00002 <span class="comment"> * Copyright (C) 1999-2002 Andy Lo A Foe <andy@alsaplayer.org></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 General Public License as published by</span> 00006 <span class="comment"> * the Free Software Foundation; either version 2 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 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 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"> *</span> 00019 <span class="comment"> *</span> 00020 <span class="comment"> * $Id: scope_plugin.h,v 1.5 2003/04/08 15:14:59 adnans Exp $</span> 00021 <span class="comment"> * </span> 00022 <span class="comment">*/</span> 00023 00024 <span class="preprocessor">#ifndef __scope_plugin_h__</span> 00025 <span class="preprocessor"></span><span class="preprocessor">#define __scope_plugin_h__</span> 00026 <span class="preprocessor"></span> 00027 <span class="comment">/*</span> 00028 <span class="comment"> * Format of version number is 0x1000 + version</span> 00029 <span class="comment"> * So 0x1001 is *binary* format version 1</span> 00030 <span class="comment"> * THE VERSION NUMBER IS *NOT* A USER SERVICABLE PART!</span> 00031 <span class="comment"> */</span> 00032 <a name="l00036"></a><a class="code" href="scope__plugin_8h.html#a0">00036</a> <span class="preprocessor">#define SCOPE_PLUGIN_BASE_VERSION 0x1000</span> 00037 <span class="preprocessor"></span> <a name="l00043"></a><a class="code" href="scope__plugin_8h.html#a1">00043</a> <span class="preprocessor">#define SCOPE_PLUGIN_VERSION (SCOPE_PLUGIN_BASE_VERSION + 7)</span> 00044 <span class="preprocessor"></span> <a name="l00053"></a><a class="code" href="scope__plugin_8h.html#a2">00053</a> <span class="preprocessor">#define SCOPE_NICE 10</span> 00054 <span class="preprocessor"></span> <a name="l00062"></a><a class="code" href="scope__plugin_8h.html#a3">00062</a> <span class="preprocessor">#define SCOPE_SLEEP 20000</span> 00063 <span class="preprocessor"></span> <a name="l00068"></a><a class="code" href="scope__plugin_8h.html#a4">00068</a> <span class="preprocessor">#define SCOPE_BG_RED 0</span> 00069 <span class="preprocessor"></span> <a name="l00074"></a><a class="code" href="scope__plugin_8h.html#a5">00074</a> <span class="preprocessor">#define SCOPE_BG_GREEN 0</span> 00075 <span class="preprocessor"></span> <a name="l00080"></a><a class="code" href="scope__plugin_8h.html#a6">00080</a> <span class="preprocessor">#define SCOPE_BG_BLUE 0</span> 00081 <span class="preprocessor"></span> <a name="l00087"></a><a class="code" href="scope__plugin_8h.html#a7">00087</a> <span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="scope__plugin_8h.html#a7">scope_version_type</a>; 00088 <a name="l00096"></a><a class="code" href="scope__plugin_8h.html#a8">00096</a> <span class="keyword">typedef</span> int(*scope_init_type)(<span class="keywordtype">void</span> *arg); 00097 <a name="l00102"></a><a class="code" href="scope__plugin_8h.html#a9">00102</a> <span class="keyword">typedef</span> void(*scope_start_type)(<span class="keywordtype">void</span>); 00103 <a name="l00109"></a><a class="code" href="scope__plugin_8h.html#a10">00109</a> <span class="keyword">typedef</span> int(*scope_running_type)(<span class="keywordtype">void</span>); 00110 <a name="l00115"></a><a class="code" href="scope__plugin_8h.html#a11">00115</a> <span class="keyword">typedef</span> void(*scope_stop_type)(<span class="keywordtype">void</span>); 00116 <a name="l00122"></a><a class="code" href="scope__plugin_8h.html#a12">00122</a> <span class="keyword">typedef</span> void(*scope_shutdown_type)(<span class="keywordtype">void</span>); 00123 <a name="l00136"></a><a class="code" href="scope__plugin_8h.html#a13">00136</a> <span class="keyword">typedef</span> void(*scope_set_data_type)(<span class="keywordtype">void</span> *buffer, <span class="keywordtype">int</span> count); 00137 <a name="l00150"></a><a class="code" href="scope__plugin_8h.html#a14">00150</a> <span class="keyword">typedef</span> void(*scope_set_fft_type)(<span class="keywordtype">void</span> *buffer, <span class="keywordtype">int</span> samples, <span class="keywordtype">int</span> channels); 00151 <a name="l00156"></a><a class="code" href="struct__scope__plugin.html">00156</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__scope__plugin.html">_scope_plugin</a> 00157 { <a name="l00161"></a><a class="code" href="struct__scope__plugin.html#o0">00161</a> <a class="code" href="scope__plugin_8h.html#a7">scope_version_type</a> <a class="code" href="struct__scope__plugin.html#o0">version</a>; <a name="l00165"></a><a class="code" href="struct__scope__plugin.html#o1">00165</a> <span class="keywordtype">char</span> *<a class="code" href="struct__scope__plugin.html#o1">name</a>; <a name="l00170"></a><a class="code" href="struct__scope__plugin.html#o2">00170</a> <span class="keywordtype">char</span> *<a class="code" href="struct__scope__plugin.html#o2">author</a>; <a name="l00175"></a><a class="code" href="struct__scope__plugin.html#o3">00175</a> <span class="keywordtype">void</span> *<a class="code" href="struct__scope__plugin.html#o3">handle</a>; <a name="l00180"></a><a class="code" href="struct__scope__plugin.html#o4">00180</a> <a class="code" href="scope__plugin_8h.html#a8">scope_init_type</a> <a class="code" href="struct__scope__plugin.html#o4">init</a>; <a name="l00185"></a><a class="code" href="struct__scope__plugin.html#o5">00185</a> <a class="code" href="scope__plugin_8h.html#a9">scope_start_type</a> <a class="code" href="struct__scope__plugin.html#o5">start</a>; <a name="l00190"></a><a class="code" href="struct__scope__plugin.html#o6">00190</a> <a class="code" href="scope__plugin_8h.html#a10">scope_running_type</a> <a class="code" href="struct__scope__plugin.html#o6">running</a>; <a name="l00195"></a><a class="code" href="struct__scope__plugin.html#o7">00195</a> <a class="code" href="scope__plugin_8h.html#a11">scope_stop_type</a> <a class="code" href="struct__scope__plugin.html#o7">stop</a>; <a name="l00200"></a><a class="code" href="struct__scope__plugin.html#o8">00200</a> <a class="code" href="scope__plugin_8h.html#a12">scope_shutdown_type</a> <a class="code" href="struct__scope__plugin.html#o8">shutdown</a>; <a name="l00204"></a><a class="code" href="struct__scope__plugin.html#o9">00204</a> <a class="code" href="scope__plugin_8h.html#a13">scope_set_data_type</a> <a class="code" href="struct__scope__plugin.html#o9">set_data</a>; <a name="l00209"></a><a class="code" href="struct__scope__plugin.html#o10">00209</a> <a class="code" href="scope__plugin_8h.html#a14">scope_set_fft_type</a> <a class="code" href="struct__scope__plugin.html#o10">set_fft</a>; 00210 } <a class="code" href="struct__scope__plugin.html">scope_plugin</a>; 00211 <a name="l00217"></a><a class="code" href="scope__plugin_8h.html#a16">00217</a> <span class="keyword">typedef</span> <a class="code" href="struct__scope__plugin.html">scope_plugin</a>*(*scope_plugin_info_type)(<span class="keywordtype">void</span>); 00218 00219 <span class="preprocessor">#endif</span> </pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Dec 9 10:09:56 2003 for AlsaPlayer by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> </body> </html>