Main Page | Modules | Data Structures | File List | Data Fields | Globals

constants.h

Go to the documentation of this file.
00001 /*
00002    Copyright (c) 2002, 2003, Xiph.org Foundation
00003 
00004    Redistribution and use in source and binary forms, with or without
00005    modification, are permitted provided that the following conditions
00006    are met:
00007 
00008    - Redistributions of source code must retain the above copyright
00009    notice, this list of conditions and the following disclaimer.
00010 
00011    - Redistributions in binary form must reproduce the above copyright
00012    notice, this list of conditions and the following disclaimer in the
00013    documentation and/or other materials provided with the distribution.
00014 
00015    - Neither the name of the Xiph.org Foundation nor the names of its
00016    contributors may be used to endorse or promote products derived from
00017    this software without specific prior written permission.
00018 
00019    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00022    A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR
00023    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00024    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00025    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00026    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00027    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00028    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00029    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030 */
00031 
00032 #ifndef __FISH_SOUND_CONSTANTS_H__
00033 #define __FISH_SOUND_CONSTANTS_H__
00034 
00040 typedef enum _FishSoundMode {
00042   FISH_SOUND_DECODE = 0x10,
00043 
00045   FISH_SOUND_ENCODE = 0x20
00046 } FishSoundMode;
00047 
00049 typedef enum _FishSoundCodecID {
00051   FISH_SOUND_UNKNOWN = 0x00,
00052 
00054   FISH_SOUND_VORBIS  = 0x01,
00055 
00057   FISH_SOUND_SPEEX   = 0x02
00058 } FishSoundCodecID;
00059 
00061 typedef enum _FishSoundCommand {
00063   FISH_SOUND_COMMAND_NOP                = 0x0000,
00064 
00066   FISH_SOUND_GET_INFO                   = 0x1000,
00067 
00069   FISH_SOUND_GET_INTERLEAVE      = 0x2000,
00070 
00072   FISH_SOUND_SET_INTERLEAVE      = 0x2001,
00073 
00074   FISH_SOUND_SET_ENCODE_VBR             = 0x4000,
00075   
00076   FISH_SOUND_COMMAND_MAX
00077 } FishSoundCommand;
00078 
00080 typedef enum _FishSoundError {
00082   FISH_SOUND_OK                         = 0,
00083 
00085   FISH_SOUND_ERR_DISABLED               = -10,
00086 
00088   FISH_SOUND_ERR_SHORT_IDENTIFY         = -20
00089 } FishSoundError;
00090 
00091 #endif /* __FISH_SOUND_CONSTANTS_H__ */

Generated on Wed Mar 10 16:48:22 2004 for libfishsound by doxygen 1.3.5