Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
55bc5870
Commit
55bc5870
authored
Oct 16, 2002
by
Josh Coalson
Browse files
tweaks to build libs as DLLs under windows
parent
fc701471
Changes
23
Expand all
Hide whitespace changes
Inline
Side-by-side
include/FLAC++/all.h
View file @
55bc5870
...
...
@@ -20,6 +20,8 @@
#ifndef FLACPP__ALL_H
#define FLACPP__ALL_H
#include "export.h"
#include "encoder.h"
#include "decoder.h"
#include "metadata.h"
...
...
include/FLAC++/decoder.h
View file @
55bc5870
...
...
@@ -20,6 +20,8 @@
#ifndef FLACPP__DECODER_H
#define FLACPP__DECODER_H
#include "export.h"
#include "FLAC/file_decoder.h"
#include "FLAC/seekable_stream_decoder.h"
#include "FLAC/stream_decoder.h"
...
...
@@ -74,9 +76,9 @@ namespace FLAC {
/** This class wraps the ::FLAC__StreamDecoder.
*/
class
Stream
{
class
FLACPP_API
Stream
{
public:
class
State
{
class
FLACPP_API
State
{
public:
inline
State
(
::
FLAC__StreamDecoderState
state
)
:
state_
(
state
)
{
}
inline
operator
::
FLAC__StreamDecoderState
()
const
{
return
state_
;
}
...
...
@@ -160,9 +162,9 @@ namespace FLAC {
/** This class wraps the ::FLAC__SeekableStreamDecoder.
*/
class
SeekableStream
{
class
FLACPP_API
SeekableStream
{
public:
class
State
{
class
FLACPP_API
State
{
public:
inline
State
(
::
FLAC__SeekableStreamDecoderState
state
)
:
state_
(
state
)
{
}
inline
operator
::
FLAC__SeekableStreamDecoderState
()
const
{
return
state_
;
}
...
...
@@ -255,9 +257,9 @@ namespace FLAC {
/** This class wraps the ::FLAC__FileDecoder.
*/
class
File
{
class
FLACPP_API
File
{
public:
class
State
{
class
FLACPP_API
State
{
public:
inline
State
(
::
FLAC__FileDecoderState
state
)
:
state_
(
state
)
{
}
inline
operator
::
FLAC__FileDecoderState
()
const
{
return
state_
;
}
...
...
include/FLAC++/encoder.h
View file @
55bc5870
...
...
@@ -20,6 +20,8 @@
#ifndef FLACPP__ENCODER_H
#define FLACPP__ENCODER_H
#include "export.h"
#include "FLAC/file_encoder.h"
#include "FLAC/seekable_stream_encoder.h"
#include "FLAC/stream_encoder.h"
...
...
@@ -75,9 +77,9 @@ namespace FLAC {
/** This class wraps the ::FLAC__StreamEncoder.
*/
class
Stream
{
class
FLACPP_API
Stream
{
public:
class
State
{
class
FLACPP_API
State
{
public:
inline
State
(
::
FLAC__StreamEncoderState
state
)
:
state_
(
state
)
{
}
inline
operator
::
FLAC__StreamEncoderState
()
const
{
return
state_
;
}
...
...
@@ -168,9 +170,9 @@ namespace FLAC {
/** This class wraps the ::FLAC__SeekableStreamEncoder.
*/
class
SeekableStream
{
class
FLACPP_API
SeekableStream
{
public:
class
State
{
class
FLACPP_API
State
{
public:
inline
State
(
::
FLAC__SeekableStreamEncoderState
state
)
:
state_
(
state
)
{
}
inline
operator
::
FLAC__SeekableStreamEncoderState
()
const
{
return
state_
;
}
...
...
@@ -262,9 +264,9 @@ namespace FLAC {
/** This class wraps the ::FLAC__FileEncoder.
*/
class
File
{
class
FLACPP_API
File
{
public:
class
State
{
class
FLACPP_API
State
{
public:
inline
State
(
::
FLAC__FileEncoderState
state
)
:
state_
(
state
)
{
}
inline
operator
::
FLAC__FileEncoderState
()
const
{
return
state_
;
}
...
...
include/FLAC++/metadata.h
View file @
55bc5870
...
...
@@ -20,6 +20,8 @@
#ifndef FLACPP__METADATA_H
#define FLACPP__METADATA_H
#include "export.h"
#include "FLAC/metadata.h"
// ===============================================================
...
...
@@ -87,7 +89,7 @@ namespace FLAC {
/** Base class for all metadata block types.
*/
class
Prototype
{
class
FLACPP_API
Prototype
{
protected:
//@{
/** Constructs a copy of the given object. This form
...
...
@@ -214,13 +216,13 @@ namespace FLAC {
{
return
0
!=
object_
;
}
/** Create a deep copy of an object and return it. */
Prototype
*
clone
(
const
Prototype
*
);
FLACPP_API
Prototype
*
clone
(
const
Prototype
*
);
/** STREAMINFO metadata block.
* See <A HREF="../format.html#metadata_block_streaminfo">format specification</A>.
*/
class
StreamInfo
:
public
Prototype
{
class
FLACPP_API
StreamInfo
:
public
Prototype
{
public:
StreamInfo
();
...
...
@@ -288,7 +290,7 @@ namespace FLAC {
/** PADDING metadata block.
* See <A HREF="../format.html#metadata_block_padding">format specification</A>.
*/
class
Padding
:
public
Prototype
{
class
FLACPP_API
Padding
:
public
Prototype
{
public:
Padding
();
...
...
@@ -335,7 +337,7 @@ namespace FLAC {
/** APPLICATION metadata block.
* See <A HREF="../format.html#metadata_block_application">format specification</A>.
*/
class
Application
:
public
Prototype
{
class
FLACPP_API
Application
:
public
Prototype
{
public:
Application
();
//
...
...
@@ -388,7 +390,7 @@ namespace FLAC {
/** SEEKTABLE metadata block.
* See <A HREF="../format.html#metadata_block_seektable">format specification</A>.
*/
class
SeekTable
:
public
Prototype
{
class
FLACPP_API
SeekTable
:
public
Prototype
{
public:
SeekTable
();
...
...
@@ -448,7 +450,7 @@ namespace FLAC {
/** VORBIS_COMMENT metadata block.
* See <A HREF="../format.html#metadata_block_vorbis_comment">format specification</A>.
*/
class
VorbisComment
:
public
Prototype
{
class
FLACPP_API
VorbisComment
:
public
Prototype
{
public:
/** Convenience class for encapsulating Vorbis comment
* entries. An entry is a vendor string or a comment
...
...
@@ -474,7 +476,7 @@ namespace FLAC {
* Always check is_valid() after the constructor or operator=
* to make sure memory was properly allocated.
*/
class
Entry
{
class
FLACPP_API
Entry
{
public:
Entry
();
Entry
(
const
char
*
field
,
unsigned
field_length
);
...
...
@@ -590,7 +592,7 @@ namespace FLAC {
*/
//! See FLAC__metadata_get_streaminfo().
bool
get_streaminfo
(
const
char
*
filename
,
StreamInfo
&
streaminfo
);
FLACPP_API
bool
get_streaminfo
(
const
char
*
filename
,
StreamInfo
&
streaminfo
);
/* \} */
...
...
@@ -627,9 +629,9 @@ namespace FLAC {
/** This class is a wrapper around the FLAC__metadata_simple_iterator
* structures and methods; see ::FLAC__Metadata_SimpleIterator.
*/
class
SimpleIterator
{
class
FLACPP_API
SimpleIterator
{
public:
class
Status
{
class
FLACPP_API
Status
{
public:
inline
Status
(
::
FLAC__Metadata_SimpleIteratorStatus
status
)
:
status_
(
status
)
{
}
inline
operator
::
FLAC__Metadata_SimpleIteratorStatus
()
const
{
return
status_
;
}
...
...
@@ -704,9 +706,9 @@ namespace FLAC {
/** This class is a wrapper around the FLAC__metadata_chain
* structures and methods; see ::FLAC__Metadata_Chain.
*/
class
Chain
{
class
FLACPP_API
Chain
{
public:
class
Status
{
class
FLACPP_API
Status
{
public:
inline
Status
(
::
FLAC__Metadata_ChainStatus
status
)
:
status_
(
status
)
{
}
inline
operator
::
FLAC__Metadata_ChainStatus
()
const
{
return
status_
;
}
...
...
@@ -737,7 +739,7 @@ namespace FLAC {
/** This class is a wrapper around the FLAC__metadata_iterator
* structures and methods; see ::FLAC__Metadata_Iterator.
*/
class
Iterator
{
class
FLACPP_API
Iterator
{
public:
Iterator
();
virtual
~
Iterator
();
...
...
include/FLAC/all.h
View file @
55bc5870
...
...
@@ -20,6 +20,8 @@
#ifndef FLAC__ALL_H
#define FLAC__ALL_H
#include "export.h"
#include "assert.h"
#include "file_decoder.h"
#include "file_encoder.h"
...
...
include/FLAC/file_decoder.h
View file @
55bc5870
...
...
@@ -20,6 +20,7 @@
#ifndef FLAC__FILE_DECODER_H
#define FLAC__FILE_DECODER_H
#include "export.h"
#include "seekable_stream_decoder.h"
#ifdef __cplusplus
...
...
@@ -146,7 +147,7 @@ typedef enum {
* Using a FLAC__FileDecoderState as the index to this array
* will give the string equivalent. The contents should not be modified.
*/
extern
const
char
*
const
FLAC__FileDecoderStateString
[];
extern
FLAC_API
const
char
*
const
FLAC__FileDecoderStateString
[];
/***********************************************************************
...
...
@@ -216,7 +217,7 @@ typedef void (*FLAC__FileDecoderErrorCallback)(const FLAC__FileDecoder *decoder,
* \retval FLAC__FileDecoder*
* \c NULL if there was an error allocating memory, else the new instance.
*/
FLAC__FileDecoder
*
FLAC__file_decoder_new
();
FLAC_API
FLAC__FileDecoder
*
FLAC__file_decoder_new
();
/** Free a decoder instance. Deletes the object pointed to by \a decoder.
*
...
...
@@ -224,7 +225,7 @@ FLAC__FileDecoder *FLAC__file_decoder_new();
* \assert
* \code decoder != NULL \endcode
*/
void
FLAC__file_decoder_delete
(
FLAC__FileDecoder
*
decoder
);
FLAC_API
void
FLAC__file_decoder_delete
(
FLAC__FileDecoder
*
decoder
);
/***********************************************************************
...
...
@@ -245,7 +246,7 @@ void FLAC__file_decoder_delete(FLAC__FileDecoder *decoder);
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_md5_checking
(
FLAC__FileDecoder
*
decoder
,
FLAC__bool
value
);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_md5_checking
(
FLAC__FileDecoder
*
decoder
,
FLAC__bool
value
);
/** Set the input file name to decode.
*
...
...
@@ -259,7 +260,7 @@ FLAC__bool FLAC__file_decoder_set_md5_checking(FLAC__FileDecoder *decoder, FLAC_
* \c false if the decoder is already initialized, or there was a memory
* allocation error, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_filename
(
FLAC__FileDecoder
*
decoder
,
const
char
*
value
);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_filename
(
FLAC__FileDecoder
*
decoder
,
const
char
*
value
);
/** Set the write callback.
* This is inherited from FLAC__SeekableStreamDecoder; see
...
...
@@ -277,7 +278,7 @@ FLAC__bool FLAC__file_decoder_set_filename(FLAC__FileDecoder *decoder, const cha
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_write_callback
(
FLAC__FileDecoder
*
decoder
,
FLAC__FileDecoderWriteCallback
value
);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_write_callback
(
FLAC__FileDecoder
*
decoder
,
FLAC__FileDecoderWriteCallback
value
);
/** Set the metadata callback.
* This is inherited from FLAC__SeekableStreamDecoder; see
...
...
@@ -295,7 +296,7 @@ FLAC__bool FLAC__file_decoder_set_write_callback(FLAC__FileDecoder *decoder, FLA
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_metadata_callback
(
FLAC__FileDecoder
*
decoder
,
FLAC__FileDecoderMetadataCallback
value
);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_metadata_callback
(
FLAC__FileDecoder
*
decoder
,
FLAC__FileDecoderMetadataCallback
value
);
/** Set the error callback.
* This is inherited from FLAC__SeekableStreamDecoder; see
...
...
@@ -313,7 +314,7 @@ FLAC__bool FLAC__file_decoder_set_metadata_callback(FLAC__FileDecoder *decoder,
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_error_callback
(
FLAC__FileDecoder
*
decoder
,
FLAC__FileDecoderErrorCallback
value
);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_error_callback
(
FLAC__FileDecoder
*
decoder
,
FLAC__FileDecoderErrorCallback
value
);
/** Set the client data to be passed back to callbacks.
* This value will be supplied to callbacks in their \a client_data
...
...
@@ -327,7 +328,7 @@ FLAC__bool FLAC__file_decoder_set_error_callback(FLAC__FileDecoder *decoder, FLA
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_client_data
(
FLAC__FileDecoder
*
decoder
,
void
*
value
);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_client_data
(
FLAC__FileDecoder
*
decoder
,
void
*
value
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_set_metadata_respond().
...
...
@@ -342,7 +343,7 @@ FLAC__bool FLAC__file_decoder_set_client_data(FLAC__FileDecoder *decoder, void *
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_metadata_respond
(
FLAC__FileDecoder
*
decoder
,
FLAC__MetadataType
type
);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_metadata_respond
(
FLAC__FileDecoder
*
decoder
,
FLAC__MetadataType
type
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_set_metadata_respond_application().
...
...
@@ -357,7 +358,7 @@ FLAC__bool FLAC__file_decoder_set_metadata_respond(FLAC__FileDecoder *decoder, F
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_metadata_respond_application
(
FLAC__FileDecoder
*
decoder
,
const
FLAC__byte
id
[
4
]);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_metadata_respond_application
(
FLAC__FileDecoder
*
decoder
,
const
FLAC__byte
id
[
4
]);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_set_metadata_respond_all().
...
...
@@ -370,7 +371,7 @@ FLAC__bool FLAC__file_decoder_set_metadata_respond_application(FLAC__FileDecoder
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_metadata_respond_all
(
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_metadata_respond_all
(
FLAC__FileDecoder
*
decoder
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_set_metadata_ignore().
...
...
@@ -385,7 +386,7 @@ FLAC__bool FLAC__file_decoder_set_metadata_respond_all(FLAC__FileDecoder *decode
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_metadata_ignore
(
FLAC__FileDecoder
*
decoder
,
FLAC__MetadataType
type
);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_metadata_ignore
(
FLAC__FileDecoder
*
decoder
,
FLAC__MetadataType
type
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_set_metadata_ignore_application().
...
...
@@ -400,7 +401,7 @@ FLAC__bool FLAC__file_decoder_set_metadata_ignore(FLAC__FileDecoder *decoder, FL
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_metadata_ignore_application
(
FLAC__FileDecoder
*
decoder
,
const
FLAC__byte
id
[
4
]);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_metadata_ignore_application
(
FLAC__FileDecoder
*
decoder
,
const
FLAC__byte
id
[
4
]);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_set_metadata_ignore_all().
...
...
@@ -413,7 +414,7 @@ FLAC__bool FLAC__file_decoder_set_metadata_ignore_application(FLAC__FileDecoder
* \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true.
*/
FLAC__bool
FLAC__file_decoder_set_metadata_ignore_all
(
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__bool
FLAC__file_decoder_set_metadata_ignore_all
(
FLAC__FileDecoder
*
decoder
);
/** Get the current decoder state.
*
...
...
@@ -423,7 +424,7 @@ FLAC__bool FLAC__file_decoder_set_metadata_ignore_all(FLAC__FileDecoder *decoder
* \retval FLAC__FileDecoderState
* The current decoder state.
*/
FLAC__FileDecoderState
FLAC__file_decoder_get_state
(
const
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__FileDecoderState
FLAC__file_decoder_get_state
(
const
FLAC__FileDecoder
*
decoder
);
/** Get the state of the underlying seekable stream decoder.
* Useful when the file decoder state is
...
...
@@ -435,7 +436,7 @@ FLAC__FileDecoderState FLAC__file_decoder_get_state(const FLAC__FileDecoder *dec
* \retval FLAC__SeekableStreamDecoderState
* The seekable stream decoder state.
*/
FLAC__SeekableStreamDecoderState
FLAC__file_decoder_get_seekable_stream_decoder_state
(
const
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__SeekableStreamDecoderState
FLAC__file_decoder_get_seekable_stream_decoder_state
(
const
FLAC__FileDecoder
*
decoder
);
/** Get the state of the underlying stream decoder.
* Useful when the file decoder state is
...
...
@@ -448,7 +449,7 @@ FLAC__SeekableStreamDecoderState FLAC__file_decoder_get_seekable_stream_decoder_
* \retval FLAC__StreamDecoderState
* The seekable stream decoder state.
*/
FLAC__StreamDecoderState
FLAC__file_decoder_get_stream_decoder_state
(
const
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__StreamDecoderState
FLAC__file_decoder_get_stream_decoder_state
(
const
FLAC__FileDecoder
*
decoder
);
/** Get the "MD5 signature checking" flag.
* This is inherited from FLAC__SeekableStreamDecoder; see
...
...
@@ -460,7 +461,7 @@ FLAC__StreamDecoderState FLAC__file_decoder_get_stream_decoder_state(const FLAC_
* \retval FLAC__bool
* See above.
*/
FLAC__bool
FLAC__file_decoder_get_md5_checking
(
const
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__bool
FLAC__file_decoder_get_md5_checking
(
const
FLAC__FileDecoder
*
decoder
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_get_channels().
...
...
@@ -471,7 +472,7 @@ FLAC__bool FLAC__file_decoder_get_md5_checking(const FLAC__FileDecoder *decoder)
* \retval unsigned
* See above.
*/
unsigned
FLAC__file_decoder_get_channels
(
const
FLAC__FileDecoder
*
decoder
);
FLAC_API
unsigned
FLAC__file_decoder_get_channels
(
const
FLAC__FileDecoder
*
decoder
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_get_channel_assignment().
...
...
@@ -482,7 +483,7 @@ unsigned FLAC__file_decoder_get_channels(const FLAC__FileDecoder *decoder);
* \retval FLAC__ChannelAssignment
* See above.
*/
FLAC__ChannelAssignment
FLAC__file_decoder_get_channel_assignment
(
const
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__ChannelAssignment
FLAC__file_decoder_get_channel_assignment
(
const
FLAC__FileDecoder
*
decoder
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_get_bits_per_sample().
...
...
@@ -493,7 +494,7 @@ FLAC__ChannelAssignment FLAC__file_decoder_get_channel_assignment(const FLAC__Fi
* \retval unsigned
* See above.
*/
unsigned
FLAC__file_decoder_get_bits_per_sample
(
const
FLAC__FileDecoder
*
decoder
);
FLAC_API
unsigned
FLAC__file_decoder_get_bits_per_sample
(
const
FLAC__FileDecoder
*
decoder
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_get_sample_rate().
...
...
@@ -504,7 +505,7 @@ unsigned FLAC__file_decoder_get_bits_per_sample(const FLAC__FileDecoder *decoder
* \retval unsigned
* See above.
*/
unsigned
FLAC__file_decoder_get_sample_rate
(
const
FLAC__FileDecoder
*
decoder
);
FLAC_API
unsigned
FLAC__file_decoder_get_sample_rate
(
const
FLAC__FileDecoder
*
decoder
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_get_blocksize().
...
...
@@ -515,7 +516,7 @@ unsigned FLAC__file_decoder_get_sample_rate(const FLAC__FileDecoder *decoder);
* \retval unsigned
* See above.
*/
unsigned
FLAC__file_decoder_get_blocksize
(
const
FLAC__FileDecoder
*
decoder
);
FLAC_API
unsigned
FLAC__file_decoder_get_blocksize
(
const
FLAC__FileDecoder
*
decoder
);
/** Initialize the decoder instance.
* Should be called after FLAC__file_decoder_new() and
...
...
@@ -531,7 +532,7 @@ unsigned FLAC__file_decoder_get_blocksize(const FLAC__FileDecoder *decoder);
* \c FLAC__FILE_DECODER_OK if initialization was successful; see
* FLAC__FileDecoderState for the meanings of other return values.
*/
FLAC__FileDecoderState
FLAC__file_decoder_init
(
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__FileDecoderState
FLAC__file_decoder_init
(
FLAC__FileDecoder
*
decoder
);
/** Finish the decoding process.
* Flushes the decoding buffer, releases resources, resets the decoder
...
...
@@ -552,7 +553,7 @@ FLAC__FileDecoderState FLAC__file_decoder_init(FLAC__FileDecoder *decoder);
* signature does not match the one computed by the decoder; else
* \c true.
*/
FLAC__bool
FLAC__file_decoder_finish
(
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__bool
FLAC__file_decoder_finish
(
FLAC__FileDecoder
*
decoder
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_process_single().
...
...
@@ -563,7 +564,7 @@ FLAC__bool FLAC__file_decoder_finish(FLAC__FileDecoder *decoder);
* \retval FLAC__bool
* See above.
*/
FLAC__bool
FLAC__file_decoder_process_single
(
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__bool
FLAC__file_decoder_process_single
(
FLAC__FileDecoder
*
decoder
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_process_until_end_of_metadata().
...
...
@@ -574,7 +575,7 @@ FLAC__bool FLAC__file_decoder_process_single(FLAC__FileDecoder *decoder);
* \retval FLAC__bool
* See above.
*/
FLAC__bool
FLAC__file_decoder_process_until_end_of_metadata
(
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__bool
FLAC__file_decoder_process_until_end_of_metadata
(
FLAC__FileDecoder
*
decoder
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_process_until_end_of_stream().
...
...
@@ -585,7 +586,7 @@ FLAC__bool FLAC__file_decoder_process_until_end_of_metadata(FLAC__FileDecoder *d
* \retval FLAC__bool
* See above.
*/
FLAC__bool
FLAC__file_decoder_process_until_end_of_file
(
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__bool
FLAC__file_decoder_process_until_end_of_file
(
FLAC__FileDecoder
*
decoder
);
/** This is inherited from FLAC__SeekableStreamDecoder; see
* FLAC__seekable_stream_decoder_process_remaining_frames().
...
...
@@ -596,7 +597,7 @@ FLAC__bool FLAC__file_decoder_process_until_end_of_file(FLAC__FileDecoder *decod
* \retval FLAC__bool
* See above.
*/
FLAC__bool
FLAC__file_decoder_process_remaining_frames
(
FLAC__FileDecoder
*
decoder
);
FLAC_API
FLAC__bool
FLAC__file_decoder_process_remaining_frames
(
FLAC__FileDecoder
*
decoder
);
/** Flush the input and seek to an absolute sample.
* This is inherited from FLAC__SeekableStreamDecoder; see
...
...
@@ -609,7 +610,7 @@ FLAC__bool FLAC__file_decoder_process_remaining_frames(FLAC__FileDecoder *decode
* \retval FLAC__bool
* \c true if successful, else \c false.
*/
FLAC__bool
FLAC__file_decoder_seek_absolute
(
FLAC__FileDecoder
*
decoder
,
FLAC__uint64
sample
);
FLAC_API
FLAC__bool
FLAC__file_decoder_seek_absolute
(
FLAC__FileDecoder
*
decoder
,
FLAC__uint64
sample
);
/* \} */
...
...
include/FLAC/file_encoder.h
View file @
55bc5870
This diff is collapsed.
Click to expand it.
include/FLAC/format.h
View file @
55bc5870
...
...
@@ -20,6 +20,7 @@
#ifndef FLAC__FORMAT_H
#define FLAC__FORMAT_H
#include "export.h"
#include "ordinals.h"
#ifdef __cplusplus
...
...
@@ -134,24 +135,24 @@ extern "C" {
* This does not correspond to the shared library version number, which
* is used to determine binary compatibility.
*/
extern
const
char
*
FLAC__VERSION_STRING
;
extern
FLAC_API
const
char
*
FLAC__VERSION_STRING
;
/** The vendor string inserted by the encoder into the VORBIS_COMMENT block.
* This is a nulL-terminated ASCII string; when inserted into the
* VORBIS_COMMENT the trailing null is stripped.
*/
extern
const
char
*
FLAC__VENDOR_STRING
;
extern
FLAC_API
const
char
*
FLAC__VENDOR_STRING
;
/** The byte string representation of the beginning of a FLAC stream. */
extern
const
FLAC__byte
FLAC__STREAM_SYNC_STRING
[
4
];
/* = "fLaC" */
extern
FLAC_API
const
FLAC__byte
FLAC__STREAM_SYNC_STRING
[
4
];
/* = "fLaC" */
/** The 32-bit integer big-endian representation of the beginning of
* a FLAC stream.
*/
extern
const
unsigned
FLAC__STREAM_SYNC
;
/* = 0x664C6143 */
extern
FLAC_API
const
unsigned
FLAC__STREAM_SYNC
;
/* = 0x664C6143 */
/** The length of the FLAC signature in bits. */
extern
const
unsigned
FLAC__STREAM_SYNC_LEN
;
/* = 32 bits */
extern
FLAC_API
const
unsigned
FLAC__STREAM_SYNC_LEN
;
/* = 32 bits */
/** The length of the FLAC signature in bytes. */
#define FLAC__STREAM_SYNC_LENGTH (4u)
...
...
@@ -177,7 +178,7 @@ typedef enum {
* Using a FLAC__EntropyCodingMethodType as the index to this array will
* give the string equivalent. The contents should not be modified.
*/
extern
const
char
*
const
FLAC__EntropyCodingMethodTypeString
[];
extern
FLAC_API
const
char
*
const
FLAC__EntropyCodingMethodTypeString
[];
/** Contents of a Rice partitioned residual
...
...
@@ -209,11 +210,11 @@ typedef struct {
}
FLAC__EntropyCodingMethod_PartitionedRice
;
extern
const
unsigned
FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN
;
/**< == 4 (bits) */
extern
const
unsigned
FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN
;
/**< == 4 (bits) */
extern
const
unsigned
FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN
;
/**< == 5 (bits) */
extern
FLAC_API
const
unsigned
FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN
;
/**< == 4 (bits) */
extern
FLAC_API
const
unsigned
FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN
;
/**< == 4 (bits) */
extern
FLAC_API
const
unsigned
FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN
;
/**< == 5 (bits) */
extern
const
unsigned
FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER
;
extern
FLAC_API
const
unsigned
FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER
;
/**< == (1<<FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN)-1 */
/** Header for the entropy coding method. (c.f. <A HREF="../format.html#residual">format specification</A>)
...
...
@@ -225,7 +226,7 @@ typedef struct {
}
data
;
}
FLAC__EntropyCodingMethod
;
extern
const
unsigned
FLAC__ENTROPY_CODING_METHOD_TYPE_LEN
;
/**< == 2 (bits) */
extern
FLAC_API
const
unsigned
FLAC__ENTROPY_CODING_METHOD_TYPE_LEN
;
/**< == 2 (bits) */
/*****************************************************************************/
...
...
@@ -242,7 +243,7 @@ typedef enum {
* Using a FLAC__SubframeType as the index to this array will
* give the string equivalent. The contents should not be modified.
*/
extern
const
char
*
const
FLAC__SubframeTypeString
[];
extern
FLAC_API
const
char
*
const
FLAC__SubframeTypeString
[];
/** CONSTANT subframe. (c.f. <A HREF="../format.html#subframe_constant">format specification</A>)
...
...
@@ -301,8 +302,8 @@ typedef struct {
/**< The residual signal, length == (blocksize minus order) samples. */
}
FLAC__Subframe_LPC
;
extern
const
unsigned
FLAC__SUBFRAME_LPC_QLP_COEFF_PRECISION_LEN
;
/**< == 4 (bits) */
extern
const
unsigned
FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN
;
/**< == 5 (bits) */
extern
FLAC_API
const
unsigned
FLAC__SUBFRAME_LPC_QLP_COEFF_PRECISION_LEN
;
/**< == 4 (bits) */
extern
FLAC_API
const
unsigned
FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN
;
/**< == 5 (bits) */
/** FLAC subframe structure. (c.f. <A HREF="../format.html#subframe">format specification</A>)
...
...
@@ -318,14 +319,14 @@ typedef struct {
unsigned
wasted_bits
;
}
FLAC__Subframe
;
extern
const
unsigned
FLAC__SUBFRAME_ZERO_PAD_LEN
;
/**< == 1 (bit) */
extern
const
unsigned
FLAC__SUBFRAME_TYPE_LEN
;
/**< == 6 (bits) */
extern
const
unsigned
FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN
;
/**< == 1 (bit) */
extern
FLAC_API
const
unsigned
FLAC__SUBFRAME_ZERO_PAD_LEN
;
/**< == 1 (bit) */
extern
FLAC_API
const
unsigned
FLAC__SUBFRAME_TYPE_LEN
;
/**< == 6 (bits) */
extern
FLAC_API
const
unsigned
FLAC__SUBFRAME_WASTED_BITS_FLAG_LEN
;
/**< == 1 (bit) */
extern
const
unsigned
FLAC__SUBFRAME_TYPE_CONSTANT_BYTE_ALIGNED_MASK
;
/* = 0x00 */
extern
const
unsigned
FLAC__SUBFRAME_TYPE_VERBATIM_BYTE_ALIGNED_MASK
;
/* = 0x02 */
extern
const
unsigned
FLAC__SUBFRAME_TYPE_FIXED_BYTE_ALIGNED_MASK
;
/* = 0x10 */
extern
const
unsigned
FLAC__SUBFRAME_TYPE_LPC_BYTE_ALIGNED_MASK
;
/* = 0x40 */
extern
FLAC_API
const
unsigned
FLAC__SUBFRAME_TYPE_CONSTANT_BYTE_ALIGNED_MASK
;
/* = 0x00 */
extern
FLAC_API
const
unsigned
FLAC__SUBFRAME_TYPE_VERBATIM_BYTE_ALIGNED_MASK
;
/* = 0x02 */
extern
FLAC_API
const
unsigned
FLAC__SUBFRAME_TYPE_FIXED_BYTE_ALIGNED_MASK
;
/* = 0x10 */
extern
FLAC_API
const
unsigned
FLAC__SUBFRAME_TYPE_LPC_BYTE_ALIGNED_MASK
;
/* = 0x40 */
/*****************************************************************************/
...
...
@@ -349,7 +350,7 @@ typedef enum {
* Using a FLAC__ChannelAssignment as the index to this array will
* give the string equivalent. The contents should not be modified.
*/
extern
const
char
*
const
FLAC__ChannelAssignmentString
[];
extern
FLAC_API
const
char
*
const
FLAC__ChannelAssignmentString
[];
/** An enumeration of the possible frame numbering methods. */
typedef
enum
{
...
...
@@ -362,7 +363,7 @@ typedef enum {
* Using a FLAC__FrameNumberType as the index to this array will
* give the string equivalent. The contents should not be modified.
*/
extern
const
char
*
const
FLAC__FrameNumberTypeString
[];
extern
FLAC_API
const
char
*
const
FLAC__FrameNumberTypeString
[];
/** FLAC frame header structure. (c.f. <A HREF="../format.html#frame_header">format specification</A>)
...
...
@@ -400,15 +401,15 @@ typedef struct {
*/
}
FLAC__FrameHeader
;
extern
const
unsigned
FLAC__FRAME_HEADER_SYNC
;
/**< == 0x3ffe; the frame header sync code */
extern
const
unsigned
FLAC__FRAME_HEADER_SYNC_LEN
;
/**< == 14 (bits) */
extern
const
unsigned
FLAC__FRAME_HEADER_RESERVED_LEN
;
/**< == 2 (bits) */
extern
const
unsigned
FLAC__FRAME_HEADER_BLOCK_SIZE_LEN
;
/**< == 4 (bits) */
extern
const
unsigned
FLAC__FRAME_HEADER_SAMPLE_RATE_LEN
;
/**< == 4 (bits) */
extern
const
unsigned
FLAC__FRAME_HEADER_CHANNEL_ASSIGNMENT_LEN
;
/**< == 4 (bits) */
extern
const
unsigned
FLAC__FRAME_HEADER_BITS_PER_SAMPLE_LEN
;
/**< == 3 (bits) */
extern
const
unsigned
FLAC__FRAME_HEADER_ZERO_PAD_LEN
;
/**< == 1 (bit) */
extern
const
unsigned
FLAC__FRAME_HEADER_CRC_LEN
;
/**< == 8 (bits) */
extern
FLAC_API
const
unsigned
FLAC__FRAME_HEADER_SYNC
;
/**< == 0x3ffe; the frame header sync code */
extern
FLAC_API
const
unsigned
FLAC__FRAME_HEADER_SYNC_LEN
;
/**< == 14 (bits) */