• Main Page
  • Data Structures
  • Files
  • File List
  • Globals

output_plugin.h

Go to the documentation of this file.
00001 /*  output_plugin.h
00002  *  Copyright (C) 1999-2002 Andy Lo A Foe <andy@alsaplayer.org>
00003  *
00004  *  This file is part of AlsaPlayer.
00005  *
00006  *  AlsaPlayer is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 3 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  AlsaPlayer is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
00018  *
00019  *  $Id: output_plugin.h 1250 2007-07-08 14:17:12Z dominique_libre $
00020  *  
00021  */ 
00022 
00023 #ifndef __output_plugin_h__
00024 #define __output_plugin_h__
00025 
00026 #define OUTPUT_PLUGIN_BASE_VERSION      0x1000
00027 #define OUTPUT_PLUGIN_VERSION   (OUTPUT_PLUGIN_BASE_VERSION + 6)
00028 
00029 typedef int output_version_type;
00030 typedef int(*output_init_type)(void);
00031 typedef int(*output_open_type)(const char *path);
00032 typedef void(*output_close_type)(void);
00033 typedef int(*output_write_type)(void *data, int byte_count);
00034 typedef int(*output_start_callbacks_type)(void *data);
00035 typedef int(*output_set_buffer_type)(int *frag_size, int *frag_count, int *channels);
00036 typedef unsigned int(*output_set_sample_rate_type)(unsigned int rate);
00037 typedef int(*output_get_queue_count_type)(void);
00038 typedef int(*output_get_latency_type)(void);
00039 
00040 typedef struct _output_plugin
00041 {
00045         output_version_type version;
00046 
00050         char *name;
00051 
00055         char *author;
00056 
00061         output_init_type init;
00062 
00069         output_open_type open;
00070 
00074         output_close_type close;
00075 
00084         output_write_type write;
00085 
00091         output_start_callbacks_type start_callbacks;
00092         
00104         output_set_buffer_type set_buffer;
00105         
00112         output_set_sample_rate_type set_sample_rate;
00113 
00118         output_get_queue_count_type get_queue_count;
00119         
00124         output_get_latency_type get_latency;
00125 } output_plugin;
00126 
00127 typedef output_plugin*(*output_plugin_info_type)(void);
00128 
00129 #endif

Generated on Wed Sep 1 2010 04:53:28 for AlsaPlayer by  doxygen 1.7.1