aflibAudioMemoryInput.h

Go to the documentation of this file.
00001 /*
00002  * Copyright: (C) 2001 Bruce W. Forsberg
00003  *
00004  *   This library is free software; you can redistribute it and/or
00005  *   modify it under the terms of the GNU Lesser General Public
00006  *   License as published by the Free Software Foundation; either
00007  *   version 2.1 of the License, or any later version.
00008  *
00009  *   This library is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  *   Lesser General Public License for more details.
00013  *
00014  *   You should have received a copy of the GNU Lesser General Public
00015  *   License along with this library; if not, write to the Free Software
00016  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00017  *
00018  *   Bruce Forsberg  forsberg@tns.net
00019  *
00020  */
00021 
00022 
00023 #ifndef _AFLIBAUDIOMEMORYINPUT_H_
00024 #define _AFLIBAUDIOMEMORYINPUT_H_
00025 
00026 #ifdef HAVE_CONFIG_H
00027 #include <config.h>
00028 #endif
00029 
00030 #include "aflibAudio.h"
00031 
00032 
00033 typedef long (*samples_callback)(aflibAudio *, void *, long, long, long long);
00034 
00035 
00069 class aflibAudioMemoryInput: public aflibAudio {
00070 
00071 public:
00072 
00073    // Available contructors and destructors
00074    aflibAudioMemoryInput(const aflibConfig& config);
00075 
00076    ~aflibAudioMemoryInput();
00077 
00078    void
00079    setAudioMemoryInputCallback( samples_callback func_ptr);
00080 
00081    aflibStatus
00082    compute_segment(
00083       list<aflibData *>& data,
00084       long long position = -1) ;
00085 
00087    const char *
00088    getName() const { return "aflibAudioMemoryInput";};
00089 
00090 private:
00091 
00092    aflibAudioMemoryInput();
00093    aflibAudioMemoryInput(const aflibAudioMemoryInput& op);
00094 
00095    const aflibAudioMemoryInput&
00096    operator=(const aflibAudioMemoryInput& op);
00097 
00098 samples_callback  _samples_func_ptr;
00099 
00100 };
00101 
00102 #endif

Generated on Sat Feb 23 13:56:37 2008 for Open Source Audio Library Project by  doxygen 1.5.1