Strona główna | Hierarchia klas | Lista klas | Katalogi | Lista plików | Składowe klas | Składowe plików

audiobuffer.h

Idź do dokumentacji tego pliku.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Kamil Pawlowski   *
00003  *   kamilpe@gmail.com   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  *********************** ****************************************************/
00020 
00027 #ifndef _AUDIOBUFFER_H_
00028 #define _AUDIOBUFFER_H_
00029 
00031 #define AUDIO_BUFFER            4194304
00032 
00033 #define AUDIO_SAFE_BUFFER       2097152
00034 
00035 
00037 class CAudioBuffer
00038 {
00039         public:
00040                 CAudioBuffer();
00041 
00043                 int ready;
00044 
00048                 int getLen();
00049 
00056                 int putSamples(unsigned char *samples, int len);
00057 
00064                 int getSamples(unsigned char *samples, int len);
00065         private:
00066                 unsigned char audiobuff[AUDIO_BUFFER];
00067                 int buff_len;
00068 };
00069 
00070 #endif

Wygenerowano Thu Dec 29 16:21:58 2005 dla snakewars programem  doxygen 1.4.4