Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 874255f3b26b44feb57fbe38a7384518 > files > 242

gmerlin-0.4.1-2mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>gmerlin: /home/mandrake/rpm/BUILD/gmerlin-0.4.1/include/gmerlin/playermsg.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_9de5cad15617e449f29680677e022ed8.html">include</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_4a3f2046eda2c9424010fb7393a61021.html">gmerlin</a>
  </div>
</div>
<div class="contents">
<h1>playermsg.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*****************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> * gmerlin - a general purpose multimedia framework and applications</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (c) 2001 - 2008 Members of the Gmerlin project</span>
<a name="l00005"></a>00005 <span class="comment"> * gmerlin-general@lists.sourceforge.net</span>
<a name="l00006"></a>00006 <span class="comment"> * http://gmerlin.sourceforge.net</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * This program is free software: you can redistribute it and/or modify</span>
<a name="l00009"></a>00009 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00010"></a>00010 <span class="comment"> * the Free Software Foundation, either version 2 of the License, or</span>
<a name="l00011"></a>00011 <span class="comment"> * (at your option) any later version.</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00014"></a>00014 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00015"></a>00015 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00016"></a>00016 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00017"></a>00017 <span class="comment"> *</span>
<a name="l00018"></a>00018 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00019"></a>00019 <span class="comment"> * along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00020"></a>00020 <span class="comment"> * *****************************************************************/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef __BG_PLAYERMSG_H_</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define __BG_PLAYERMSG_H_</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00032"></a><a class="code" href="group__player__states.html#gb094eb3c12eb124844f800a691540f6f">00032</a> <span class="preprocessor">#define BG_PLAYER_STATE_INIT      -1 </span>
<a name="l00033"></a><a class="code" href="group__player__states.html#g8f51f4079398895cdc33800159c7fb88">00033</a> <span class="preprocessor">#define BG_PLAYER_STATE_STOPPED   0 </span>
<a name="l00034"></a><a class="code" href="group__player__states.html#gb8fdd3c65381734e7c6f74c547ac5aeb">00034</a> <span class="preprocessor">#define BG_PLAYER_STATE_PLAYING   1 </span>
<a name="l00035"></a><a class="code" href="group__player__states.html#gc89787d224f58909879dd4a6cab08146">00035</a> <span class="preprocessor">#define BG_PLAYER_STATE_SEEKING   2 </span>
<a name="l00036"></a><a class="code" href="group__player__states.html#gb66241b1a897c806bcb36a1368984508">00036</a> <span class="preprocessor">#define BG_PLAYER_STATE_CHANGING  3 </span>
<a name="l00037"></a><a class="code" href="group__player__states.html#gd57547886268f76398a96cbd23c90999">00037</a> <span class="preprocessor">#define BG_PLAYER_STATE_BUFFERING 4 </span>
<a name="l00038"></a><a class="code" href="group__player__states.html#gbd9bda9ab0223c846333cf648fda879c">00038</a> <span class="preprocessor">#define BG_PLAYER_STATE_PAUSED    5 </span>
<a name="l00039"></a><a class="code" href="group__player__states.html#ge4271a515ccb52141b0d9988bbd0929c">00039</a> <span class="preprocessor">#define BG_PLAYER_STATE_FINISHING 6 </span>
<a name="l00040"></a><a class="code" href="group__player__states.html#g868b98d90c336af5c14b3057d72d71f3">00040</a> <span class="preprocessor">#define BG_PLAYER_STATE_STARTING  7 </span>
<a name="l00041"></a><a class="code" href="group__player__states.html#g722c177d3c8c0e322f68a99838c8ea60">00041</a> <span class="preprocessor">#define BG_PLAYER_STATE_ERROR     8 </span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="comment">/* Message definition for the player */</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="comment">/****************************</span>
<a name="l00050"></a>00050 <span class="comment"> *  Commands for the player</span>
<a name="l00051"></a>00051 <span class="comment"> ****************************/</span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="comment">/* Start playing                                        */</span>
<a name="l00054"></a>00054 <span class="comment">/* arg1: Input plugin handle                            */</span>
<a name="l00055"></a>00055 <span class="comment">/* arg2: Track index for plugins with multiple tracks   */</span>
<a name="l00056"></a>00056 <span class="comment">/* arg3: Play flags, see defines below                  */</span>
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="preprocessor">#define BG_PLAYER_CMD_PLAY     0</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span>
<a name="l00060"></a>00060 <span class="comment">/* Stop playing                              */</span>
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <span class="preprocessor">#define BG_PLAYER_CMD_STOP     1</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span>
<a name="l00064"></a>00064 <span class="comment">/* Seek to a specific point                  */</span>
<a name="l00065"></a>00065 <span class="comment">/* arg1: seek Perfenctage                    */</span>
<a name="l00066"></a>00066 <span class="comment">/* (between 0.0 and 1.0, float)              */</span> 
<a name="l00067"></a>00067 
<a name="l00068"></a>00068 <span class="preprocessor">#define BG_PLAYER_CMD_SEEK     2</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span>
<a name="l00070"></a>00070 <span class="comment">/* Set the state of the player */</span>
<a name="l00071"></a>00071 <span class="comment">/*  arg1: New state             */</span>
<a name="l00072"></a>00072 
<a name="l00073"></a>00073 <span class="comment">/*</span>
<a name="l00074"></a>00074 <span class="comment"> *  if(state == BG_PLAYER_STATE_BUFFERING)</span>
<a name="l00075"></a>00075 <span class="comment"> *    arg2: Buffering percentage (float)</span>
<a name="l00076"></a>00076 <span class="comment"> *  else if(state == BG_PLAYER_STATE_ERROR)</span>
<a name="l00077"></a>00077 <span class="comment"> *    arg2: String describing the error</span>
<a name="l00078"></a>00078 <span class="comment"> *  else if(state == BG_PLAYER_STATE_PLAYING)</span>
<a name="l00079"></a>00079 <span class="comment"> *    arg2: Integer (1 if player can pause playback without messing up the data source)</span>
<a name="l00080"></a>00080 <span class="comment"> */</span>
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 <span class="preprocessor">#define BG_PLAYER_CMD_SETSTATE 3</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span>
<a name="l00084"></a>00084 <span class="comment">/* Quit playback thread (used by bg_player_quit()) */</span>
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 <span class="preprocessor">#define BG_PLAYER_CMD_QUIT      4</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span>
<a name="l00088"></a>00088 <span class="comment">/* Change output plugins, arg1 is plugin handle of the opened plugin */</span>
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 <span class="preprocessor">#define BG_PLAYER_CMD_SET_OV_PLUGIN 5</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span>
<a name="l00092"></a>00092 <span class="preprocessor">#define BG_PLAYER_CMD_SET_OA_PLUGIN 6</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span>
<a name="l00094"></a>00094 <span class="comment">/* Set track name */</span>
<a name="l00095"></a>00095 
<a name="l00096"></a>00096 <span class="preprocessor">#define BG_PLAYER_CMD_SET_NAME      7</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span>
<a name="l00098"></a>00098 <span class="comment">/* Act like a pause button */</span>
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 <span class="preprocessor">#define BG_PLAYER_CMD_PAUSE         8</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span>
<a name="l00102"></a>00102 <span class="comment">/*</span>
<a name="l00103"></a>00103 <span class="comment"> *  Seek relative (gavl_time_t)</span>
<a name="l00104"></a>00104 <span class="comment"> */</span>
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="preprocessor">#define BG_PLAYER_CMD_SEEK_REL      10</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span>
<a name="l00108"></a>00108 <span class="comment">/* Set volume (float dB value) */</span>
<a name="l00109"></a>00109 
<a name="l00110"></a>00110 <span class="preprocessor">#define BG_PLAYER_CMD_SET_VOLUME     11</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span>
<a name="l00112"></a>00112 <span class="comment">/* Set volume (float dB value) */</span>
<a name="l00113"></a>00113 
<a name="l00114"></a>00114 <span class="preprocessor">#define BG_PLAYER_CMD_SET_VOLUME_REL 12</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span>
<a name="l00116"></a>00116 <span class="comment">/* Like BG_PLAYER_CMD_PLAY but go into the pause state right after the</span>
<a name="l00117"></a>00117 <span class="comment">   playback is set up */</span>
<a name="l00118"></a>00118 
<a name="l00119"></a>00119 <span class="preprocessor">#define BG_PLAYER_CMD_PLAY_PAUSE     13</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span>
<a name="l00121"></a>00121 <span class="preprocessor">#define BG_PLAYER_CMD_SET_AUDIO_STREAM    14</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span><span class="preprocessor">#define BG_PLAYER_CMD_SET_VIDEO_STREAM    15</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span><span class="preprocessor">#define BG_PLAYER_CMD_SET_SUBTITLE_STREAM 16</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span>
<a name="l00125"></a>00125 <span class="comment">/* Argument 1: keycode (see keycodes.h)</span>
<a name="l00126"></a>00126 <span class="comment">   Argument 2: mask (see keycodes.h)</span>
<a name="l00127"></a>00127 <span class="comment">*/</span>
<a name="l00128"></a>00128 
<a name="l00129"></a>00129 <span class="preprocessor">#define BG_PLAYER_CMD_KEY                 17 </span><span class="comment">/* A key was pressed */</span>
<a name="l00130"></a>00130 
<a name="l00131"></a>00131 <span class="preprocessor">#define BG_PLAYER_CMD_CHANGE              18 </span><span class="comment">/* Player should prepare for changing the</span>
<a name="l00132"></a>00132 <span class="comment">                                                track */</span>
<a name="l00133"></a>00133 
<a name="l00134"></a>00134 <span class="preprocessor">#define BG_PLAYER_CMD_TOGGLE_MUTE         19 </span><span class="comment">/* Toggle mute state */</span>
<a name="l00135"></a>00135 
<a name="l00136"></a>00136 <span class="preprocessor">#define BG_PLAYER_CMD_SET_CHAPTER         20 </span><span class="comment">/* Goto chapter */</span>
<a name="l00137"></a>00137 
<a name="l00138"></a>00138 <span class="preprocessor">#define BG_PLAYER_CMD_NEXT_CHAPTER        21 </span><span class="comment">/* Next chapter */</span>
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 <span class="preprocessor">#define BG_PLAYER_CMD_PREV_CHAPTER        22 </span><span class="comment">/* Previous chapter */</span>
<a name="l00141"></a>00141 
<a name="l00142"></a>00142 <span class="preprocessor">#define BG_PLAYER_CMD_INTERRUPT           23 </span><span class="comment">/* Interrupt playback */</span>
<a name="l00143"></a>00143 <span class="preprocessor">#define BG_PLAYER_CMD_INTERRUPT_RESUME    24 </span><span class="comment">/* Resume interrupted playback */</span>
<a name="l00144"></a>00144 
<a name="l00145"></a>00145 <span class="comment">/********************************</span>
<a name="l00146"></a>00146 <span class="comment"> * Messages from the player</span>
<a name="l00147"></a>00147 <span class="comment">********************************/</span>
<a name="l00148"></a>00148 
<a name="l00162"></a><a class="code" href="group__player__msg.html#g945b4ce5bfea311f6853304f6715ec89">00162</a> <span class="preprocessor">#define BG_PLAYER_MSG_TIME_CHANGED            0</span>
<a name="l00163"></a>00163 <span class="preprocessor"></span>
<a name="l00172"></a><a class="code" href="group__player__msg.html#gb7808a8ba118ae880dc40ced94b921b1">00172</a> <span class="preprocessor">#define BG_PLAYER_MSG_TRACK_CHANGED           1</span>
<a name="l00173"></a>00173 <span class="preprocessor"></span>
<a name="l00186"></a><a class="code" href="group__player__msg.html#g06b91e990441595bdbcb27631095813e">00186</a> <span class="preprocessor">#define BG_PLAYER_MSG_STATE_CHANGED           2</span>
<a name="l00187"></a>00187 <span class="preprocessor"></span>
<a name="l00196"></a><a class="code" href="group__player__msg.html#g3c95d5c6c3ea3e2ebae8b1fa3f14f85f">00196</a> <span class="preprocessor">#define BG_PLAYER_MSG_TRACK_NAME              3</span>
<a name="l00197"></a>00197 <span class="preprocessor"></span>
<a name="l00203"></a><a class="code" href="group__player__msg.html#g3a3848fb6daf833a94b0a78ce39936f4">00203</a> <span class="preprocessor">#define BG_PLAYER_MSG_TRACK_DURATION          5</span>
<a name="l00204"></a>00204 <span class="preprocessor"></span>
<a name="l00214"></a><a class="code" href="group__player__msg.html#ga0d56602b2c2e276ffaf62b2ca304b61">00214</a> <span class="preprocessor">#define BG_PLAYER_MSG_TRACK_NUM_STREAMS       4</span>
<a name="l00215"></a>00215 <span class="preprocessor"></span>
<a name="l00225"></a><a class="code" href="group__player__msg.html#gead5313d246a419feb8f3952774bbc82">00225</a> <span class="preprocessor">#define BG_PLAYER_MSG_AUDIO_STREAM            6</span>
<a name="l00226"></a>00226 <span class="preprocessor"></span>
<a name="l00236"></a><a class="code" href="group__player__msg.html#ga8b64a1909b4a99db432ae07e051ee9b">00236</a> <span class="preprocessor">#define BG_PLAYER_MSG_VIDEO_STREAM            7</span>
<a name="l00237"></a>00237 <span class="preprocessor"></span>
<a name="l00238"></a>00238 
<a name="l00248"></a><a class="code" href="group__player__msg.html#g9e3d2c3276c1ad7c13e6271a7bb7d055">00248</a> <span class="preprocessor">#define BG_PLAYER_MSG_SUBTITLE_STREAM         9</span>
<a name="l00249"></a>00249 <span class="preprocessor"></span>
<a name="l00250"></a>00250 <span class="comment">/* Metadata (is only sent, if information is available) */</span>
<a name="l00251"></a>00251 
<a name="l00257"></a><a class="code" href="group__player__msg.html#g9335203e047bf1b740a41617ccccafa2">00257</a> <span class="preprocessor">#define BG_PLAYER_MSG_METADATA               10</span>
<a name="l00258"></a>00258 <span class="preprocessor"></span>
<a name="l00264"></a><a class="code" href="group__player__msg.html#gd23c005bbaf85e3041ebbe4062967204">00264</a> <span class="preprocessor">#define BG_PLAYER_MSG_AUDIO_DESCRIPTION      11</span>
<a name="l00265"></a>00265 <span class="preprocessor"></span>
<a name="l00270"></a><a class="code" href="group__player__msg.html#g986561785df47f86da19c72bf66d4911">00270</a> <span class="preprocessor">#define BG_PLAYER_MSG_VIDEO_DESCRIPTION      12</span>
<a name="l00271"></a>00271 <span class="preprocessor"></span>
<a name="l00272"></a>00272 
<a name="l00278"></a><a class="code" href="group__player__msg.html#gd06151f76c6175d12f8f02a0bbd4c512">00278</a> <span class="preprocessor">#define BG_PLAYER_MSG_SUBTITLE_DESCRIPTION   14</span>
<a name="l00279"></a>00279 <span class="preprocessor"></span>
<a name="l00284"></a><a class="code" href="group__player__msg.html#g98ac516097a235217e76277317de737f">00284</a> <span class="preprocessor">#define BG_PLAYER_MSG_STREAM_DESCRIPTION     15</span>
<a name="l00285"></a>00285 <span class="preprocessor"></span>
<a name="l00290"></a><a class="code" href="group__player__msg.html#g286db291b58d8b9eb11fcbf7d6f0cedf">00290</a> <span class="preprocessor">#define BG_PLAYER_MSG_VOLUME_CHANGED         16</span>
<a name="l00291"></a>00291 <span class="preprocessor"></span>
<a name="l00304"></a><a class="code" href="group__player__msg.html#gfa3e5babde6b816a604b6fe5b9e4938e">00304</a> <span class="preprocessor">#define BG_PLAYER_MSG_AUDIO_STREAM_INFO      17</span>
<a name="l00305"></a>00305 <span class="preprocessor"></span>
<a name="l00318"></a><a class="code" href="group__player__msg.html#gac8c3b15c28d7cc15f1ec7a3879f88b0">00318</a> <span class="preprocessor">#define BG_PLAYER_MSG_VIDEO_STREAM_INFO      18</span>
<a name="l00319"></a>00319 <span class="preprocessor"></span>
<a name="l00331"></a><a class="code" href="group__player__msg.html#g4629ba9a1c5918d23aa4cb458945c524">00331</a> <span class="preprocessor">#define BG_PLAYER_MSG_SUBTITLE_STREAM_INFO   19</span>
<a name="l00332"></a>00332 <span class="preprocessor"></span>
<a name="l00343"></a><a class="code" href="group__player__msg.html#gfa45fea2c49b71abf75ecb759e853d21">00343</a> <span class="preprocessor">#define BG_PLAYER_MSG_ACCEL                    20 </span><span class="comment">/* A key shortcut</span>
<a name="l00344"></a>00344 <span class="comment">                                                     was pressed */</span>
<a name="l00345"></a>00345 
<a name="l00351"></a><a class="code" href="group__player__msg.html#g999a4be7c0e587528a773ad0b388d1cf">00351</a> <span class="preprocessor">#define BG_PLAYER_MSG_CLEANUP                21</span>
<a name="l00352"></a>00352 <span class="preprocessor"></span>
<a name="l00359"></a><a class="code" href="group__player__msg.html#gf1900b0c058a1ea1fbda94a3432d4e5d">00359</a> <span class="preprocessor">#define BG_PLAYER_MSG_MUTE                   22</span>
<a name="l00360"></a>00360 <span class="preprocessor"></span>
<a name="l00366"></a><a class="code" href="group__player__msg.html#g24b62cc8e96f367dd68eac0054d5ef3d">00366</a> <span class="preprocessor">#define BG_PLAYER_MSG_NUM_CHAPTERS           23</span>
<a name="l00367"></a>00367 <span class="preprocessor"></span>
<a name="l00375"></a><a class="code" href="group__player__msg.html#gbd99c0354c5bcf9bdaf5e821c3bf4471">00375</a> <span class="preprocessor">#define BG_PLAYER_MSG_CHAPTER_INFO           24</span>
<a name="l00376"></a>00376 <span class="preprocessor"></span>
<a name="l00382"></a><a class="code" href="group__player__msg.html#gb53f0269f74ef886c7c5747778303d40">00382</a> <span class="preprocessor">#define BG_PLAYER_MSG_CHAPTER_CHANGED        25</span>
<a name="l00383"></a>00383 <span class="preprocessor"></span>
<a name="l00387"></a><a class="code" href="group__player__msg.html#g4b8af69ff1935e7bcb773093dbcdfddf">00387</a> <span class="preprocessor">#define BG_PLAYER_MSG_INTERRUPT              26</span>
<a name="l00388"></a>00388 <span class="preprocessor"></span>
<a name="l00392"></a><a class="code" href="group__player__msg.html#g499e59bea49cbd98abf45d3f560f5514">00392</a> <span class="preprocessor">#define BG_PLAYER_MSG_INTERRUPT_RESUME       27</span>
<a name="l00393"></a>00393 <span class="preprocessor"></span>
<a name="l00400"></a><a class="code" href="group__player__msg.html#gff7b21348a0176771c79c0ad10d0756a">00400</a> <span class="preprocessor">#define BG_PLAYER_MSG_INPUT                  28</span>
<a name="l00401"></a>00401 <span class="preprocessor"></span>
<a name="l00402"></a>00402 
<a name="l00406"></a>00406 <span class="preprocessor">#endif // __BG_PLAYERMSG_H_</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 22 01:28:04 2009 for gmerlin by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>