libfishsound 1.0.0
constants.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2003 Commonwealth Scientific and Industrial Research
3 Organisation (CSIRO) Australia
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8
9 - Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer.
11
12 - Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15
16 - Neither the name of CSIRO Australia nor the names of its
17 contributors may be used to endorse or promote products derived from
18 this software without specific prior written permission.
19
20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
23 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ORGANISATION OR
24 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*/
32
33#ifndef __FISH_SOUND_CONSTANTS_H__
34#define __FISH_SOUND_CONSTANTS_H__
35
48
63
75
77typedef enum _FishSoundCommand {
80
83
86
89
90 FISH_SOUND_SET_ENCODE_VBR = 0x4000,
91
92 FISH_SOUND_COMMAND_MAX
94
121
122#endif /* __FISH_SOUND_CONSTANTS_H__ */
enum _FishSoundCommand FishSoundCommand
Command codes.
enum _FishSoundError FishSoundError
Error values.
_FishSoundCommand
Command codes.
Definition constants.h:77
@ FISH_SOUND_GET_INTERLEAVE
Query if multichannel audio should be interpreted as interleaved.
Definition constants.h:85
@ FISH_SOUND_COMMAND_NOP
No operation.
Definition constants.h:79
@ FISH_SOUND_GET_INFO
Retrieve the FishSoundInfo.
Definition constants.h:82
@ FISH_SOUND_SET_INTERLEAVE
Set to 1 to interleave, 0 to non-interleave.
Definition constants.h:88
_FishSoundStopCtl
Decode callback return values.
Definition constants.h:65
@ FISH_SOUND_CONTINUE
Continue calling decode callbacks.
Definition constants.h:67
@ FISH_SOUND_STOP_ERR
Stop calling callbacks, and purge buffered data.
Definition constants.h:73
@ FISH_SOUND_STOP_OK
Stop calling callbacks, but retain buffered data.
Definition constants.h:70
_FishSoundError
Error values.
Definition constants.h:96
@ FISH_SOUND_ERR_SHORT_IDENTIFY
Too few bytes passed to fish_sound_identify()
Definition constants.h:116
@ FISH_SOUND_ERR_OUT_OF_MEMORY
Out of memory.
Definition constants.h:110
@ FISH_SOUND_ERR_COMMENT_INVALID
Comment violates VorbisComment restrictions.
Definition constants.h:119
@ FISH_SOUND_OK
No error.
Definition constants.h:98
@ FISH_SOUND_ERR_DISABLED
Functionality disabled at build time.
Definition constants.h:113
@ FISH_SOUND_ERR_BAD
Not a valid FishSound* handle.
Definition constants.h:104
@ FISH_SOUND_ERR_GENERIC
generic error
Definition constants.h:101
@ FISH_SOUND_ERR_INVALID
The requested operation is not suitable for this FishSound* handle.
Definition constants.h:107
enum _FishSoundMode FishSoundMode
Mode of operation (encode or decode)
_FishSoundMode
Mode of operation (encode or decode)
Definition constants.h:41
@ FISH_SOUND_ENCODE
Encode.
Definition constants.h:46
@ FISH_SOUND_DECODE
Decode.
Definition constants.h:43
enum _FishSoundCodecID FishSoundCodecID
Identifiers for supported codecs.
enum _FishSoundStopCtl FishSoundStopCtl
Decode callback return values.
_FishSoundCodecID
Identifiers for supported codecs.
Definition constants.h:50
@ FISH_SOUND_UNKNOWN
Unknown.
Definition constants.h:52
@ FISH_SOUND_VORBIS
Vorbis.
Definition constants.h:55
@ FISH_SOUND_FLAC
Flac.
Definition constants.h:61
@ FISH_SOUND_SPEEX
Speex.
Definition constants.h:58