Hydrogen - Linux Drum Machine |
00001 /* 00002 * Hydrogen 00003 * Copyright(c) 2002-2003 by Alex >Comix< Cominu [comix@users.sourceforge.net] 00004 * 00005 * http://hydrogen.sourceforge.net 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY, without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 * 00021 * $Id: GenericDriver.h,v 1.7 2003/02/13 23:06:27 comix Exp $ 00022 * 00023 */ 00024 #ifndef GENERIC_AUDIO_DRIVER_H 00025 #define GENERIC_AUDIO_DRIVER_H 00026 00027 #include "Object.h" 00028 #include "Sample.h" 00029 00030 //---------------------------------------------------------------------------- 00034 class GenericDriver : public Object{ 00035 private: 00036 public: 00037 virtual int connect() = 0; 00038 virtual void disconnect() = 0; 00039 virtual void write(float* buffer_L, float* buffer_R, unsigned int bufferSize) = 0; 00040 virtual void setBufferSize(uint bufferSize) = 0; 00041 virtual uint getBufferSize() = 0; 00042 virtual uint getSampleRate() = 0; 00043 }; 00044 00045 #endif 00046