Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

aflib.h

Go to the documentation of this file.
00001 /*
00002  * Copyright: (C) 1999-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 // aflib
00023 // This file contains all of the common definitions used throughout the
00024 // library.
00025 
00026 #ifndef _AFLIB_H
00027 #define _AFLIB_H
00028 
00029 #ifdef HAVE_CONFIG_H
00030 #include <config.h>
00031 #endif
00032 
00033 #define FALSE 0
00034 #define TRUE  1
00035 
00036 
00037 enum aflib_data_size
00038 {
00039    AFLIB_SIZE_UNDEFINED,
00040    AFLIB_DATA_8S,
00041    AFLIB_DATA_8U,
00042    AFLIB_DATA_16S,
00043    AFLIB_DATA_16U,
00044    AFLIB_DATA_32S
00045 };
00046 
00047 enum aflib_data_endian
00048 {
00049    AFLIB_ENDIAN_UNDEFINED,
00050    AFLIB_ENDIAN_LITTLE,
00051    AFLIB_ENDIAN_BIG
00052 };
00053 
00054 enum aflib_data_orientation
00055 {
00056    AFLIB_ORIENTATION_UNDEFINED,
00057    AFLIB_SEQUENTIAL,
00058    AFLIB_INTERLEAVE
00059 };
00060 
00061 enum aflibStatus
00062 {
00063    AFLIB_SUCCESS = 0,
00064    AFLIB_ERROR_OPEN = 1,
00065    AFLIB_ERROR_UNSUPPORTED = 2,
00066    AFLIB_ERROR_INITIALIZATION_FAILURE = 3,
00067    AFLIB_NOT_FOUND = 4,
00068    AFLIB_END_OF_FILE = 5,
00069    AFLIB_NO_DATA = 6,
00070    AFLIB_CANT_AUTO_TYPE = 7
00071 };
00072 
00073 // Currently supported types
00074 enum aflibFileType
00075 {
00076    AFLIB_AUTO_TYPE,
00077    AFLIB_DEV_TYPE,
00078    AFLIB_MPEG_TYPE,
00079    AFLIB_WAV_TYPE,
00080    AFLIB_AU_TYPE
00081 };
00082 
00083 enum aflibUndoRedo
00084 {
00085    AFLIB_UNDO_MODE,
00086    AFLIB_REDO_MODE,
00087    AFLIB_NONE_MODE
00088 };
00089 
00090 
00091 
00092 #endif
00093 

Generated on Wed May 8 20:51:04 2002 for Open Source Audio Library Project by doxygen1.2.15