~ubuntu-branches/ubuntu/precise/flac/precise-updates

« back to all changes in this revision

Viewing changes to doc/html/api/group__flac__stream__decoder.html

  • Committer: Bazaar Package Importer
  • Author(s): Joshua Kwan
  • Date: 2007-05-29 22:56:36 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529225636-ljeff8xxip09qaap
Tags: 1.1.4-1
* New upstream release. closes: #405167, #411311
  - libOggFLAC and libOggFLAC++ have been merged into libFLAC, so
    remove their corresponding packages.
  - Because of the API changes required to effect the above, there has
    been yet another soname bump. libflac7 -> libflac8 and
    libflac++5 -> libflac++6. Emails have been dispatched to the
    maintainers of dependent packages.
* Some notes on patches that were removed:
  - 02_stdin_stdout, 06_manpage_mention_utf8_convert: merged upstream
  - 08_manpage_warnings: Upstream has changed the manpage so it defintely
    can't fit in in 80 cols, so just forget about it. We'll live.
  - 05_eof_warnings_are_errors: Upstream decided to add a -w option to
    flac to treat all warnings as errors. I am going to defer to that
    for now, but if people think it's stupid let me know and I'll port
    the patch forward.
  - 04_stack_smasher: was a backport from 1.1.3, so it's obsolete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
 
<title>FLAC/stream_decoder.h: stream decoder interface</title>
 
3
<title>FLAC: FLAC/stream_decoder.h: stream decoder interface</title>
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
5
</head><body>
6
 
<!-- Generated by Doxygen 1.2.14 -->
7
 
<center>
8
 
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
9
 
<hr><h1>FLAC/stream_decoder.h: stream decoder interface<br>
 
6
<!-- Generated by Doxygen 1.4.2 -->
 
7
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
 
8
<h1>FLAC/stream_decoder.h: stream decoder interface<br>
10
9
<small>
11
10
[<a class="el" href="group__flac__decoder.html">FLAC/_decoder.h: decoder interfaces</a>]</small>
12
 
</h1>This module contains the functions which implement the stream decoder. 
13
 
<a href="#_details">More...</a><table border=0 cellpadding=0 cellspacing=0>
14
 
<tr><td colspan=2><br><h2>Compounds</h2></td></tr>
15
 
<tr><td nowrap align=right valign=top>struct &nbsp;</td><td valign=bottom><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a></td></tr>
16
 
<tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
17
 
<tr><td nowrap align=right valign=top>typedef <a class="el" href="group__flac__stream__decoder.html#a37">FLAC__StreamDecoderReadStatus</a>(*&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a4">FLAC__StreamDecoderReadCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data)</td></tr>
18
 
<tr><td nowrap align=right valign=top>typedef <a class="el" href="group__flac__stream__decoder.html#a38">FLAC__StreamDecoderWriteStatus</a>(*&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a5">FLAC__StreamDecoderWriteCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const <a class="el" href="structFLAC____Frame.html">FLAC__Frame</a> *frame, const FLAC__int32 *const buffer[], void *client_data)</td></tr>
19
 
<tr><td nowrap align=right valign=top>typedef void(*&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a6">FLAC__StreamDecoderMetadataCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const <a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *metadata, void *client_data)</td></tr>
20
 
<tr><td nowrap align=right valign=top>typedef void(*&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a7">FLAC__StreamDecoderErrorCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__stream__decoder.html#a39">FLAC__StreamDecoderErrorStatus</a> status, void *client_data)</td></tr>
21
 
<tr><td colspan=2><br><h2>Enumerations</h2></td></tr>
22
 
<tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a36">FLAC__StreamDecoderState</a> { <br>
23
 
&nbsp;&nbsp;<a class="el" href="group__flac__stream__decoder.html#a36a8">FLAC__STREAM_DECODER_SEARCH_FOR_METADATA</a> =  0, 
24
 
<a class="el" href="group__flac__stream__decoder.html#a36a9">FLAC__STREAM_DECODER_READ_METADATA</a>, 
25
 
<a class="el" href="group__flac__stream__decoder.html#a36a10">FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC</a>, 
26
 
<a class="el" href="group__flac__stream__decoder.html#a36a11">FLAC__STREAM_DECODER_READ_FRAME</a>, 
27
 
<br>
28
 
&nbsp;&nbsp;<a class="el" href="group__flac__stream__decoder.html#a36a12">FLAC__STREAM_DECODER_END_OF_STREAM</a>, 
29
 
<a class="el" href="group__flac__stream__decoder.html#a36a13">FLAC__STREAM_DECODER_ABORTED</a>, 
30
 
<a class="el" href="group__flac__stream__decoder.html#a36a14">FLAC__STREAM_DECODER_UNPARSEABLE_STREAM</a>, 
31
 
<a class="el" href="group__flac__stream__decoder.html#a36a15">FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR</a>, 
32
 
<br>
33
 
&nbsp;&nbsp;<a class="el" href="group__flac__stream__decoder.html#a36a16">FLAC__STREAM_DECODER_ALREADY_INITIALIZED</a>, 
34
 
<a class="el" href="group__flac__stream__decoder.html#a36a17">FLAC__STREAM_DECODER_INVALID_CALLBACK</a>, 
35
 
<a class="el" href="group__flac__stream__decoder.html#a36a18">FLAC__STREAM_DECODER_UNINITIALIZED</a>
36
 
<br>
37
 
 }</td></tr>
38
 
<tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a37">FLAC__StreamDecoderReadStatus</a> { <a class="el" href="group__flac__stream__decoder.html#a37a19">FLAC__STREAM_DECODER_READ_STATUS_CONTINUE</a>, 
39
 
<a class="el" href="group__flac__stream__decoder.html#a37a20">FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</a>, 
40
 
<a class="el" href="group__flac__stream__decoder.html#a37a21">FLAC__STREAM_DECODER_READ_STATUS_ABORT</a>
41
 
 }</td></tr>
42
 
<tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a38">FLAC__StreamDecoderWriteStatus</a> { <a class="el" href="group__flac__stream__decoder.html#a38a22">FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE</a>, 
43
 
<a class="el" href="group__flac__stream__decoder.html#a38a23">FLAC__STREAM_DECODER_WRITE_STATUS_ABORT</a>
44
 
 }</td></tr>
45
 
<tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a39">FLAC__StreamDecoderErrorStatus</a> { <a class="el" href="group__flac__stream__decoder.html#a39a24">FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC</a>, 
46
 
<a class="el" href="group__flac__stream__decoder.html#a39a25">FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER</a>, 
47
 
<a class="el" href="group__flac__stream__decoder.html#a39a26">FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH</a>
48
 
 }</td></tr>
49
 
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
50
 
<tr><td nowrap align=right valign=top><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a8">FLAC__stream_decoder_new</a> ()</td></tr>
51
 
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a9">FLAC__stream_decoder_delete</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
52
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a10">FLAC__stream_decoder_set_read_callback</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__stream__decoder.html#a4">FLAC__StreamDecoderReadCallback</a> value)</td></tr>
53
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a11">FLAC__stream_decoder_set_write_callback</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__stream__decoder.html#a5">FLAC__StreamDecoderWriteCallback</a> value)</td></tr>
54
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a12">FLAC__stream_decoder_set_metadata_callback</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__stream__decoder.html#a6">FLAC__StreamDecoderMetadataCallback</a> value)</td></tr>
55
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a13">FLAC__stream_decoder_set_error_callback</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__stream__decoder.html#a7">FLAC__StreamDecoderErrorCallback</a> value)</td></tr>
56
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a14">FLAC__stream_decoder_set_client_data</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, void *value)</td></tr>
57
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a15">FLAC__stream_decoder_set_metadata_respond</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__format.html#a97">FLAC__MetadataType</a> type)</td></tr>
58
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a16">FLAC__stream_decoder_set_metadata_respond_application</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const FLAC__byte id[4])</td></tr>
59
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a17">FLAC__stream_decoder_set_metadata_respond_all</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
60
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a18">FLAC__stream_decoder_set_metadata_ignore</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__format.html#a97">FLAC__MetadataType</a> type)</td></tr>
61
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a19">FLAC__stream_decoder_set_metadata_ignore_application</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const FLAC__byte id[4])</td></tr>
62
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a20">FLAC__stream_decoder_set_metadata_ignore_all</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
63
 
<tr><td nowrap align=right valign=top><a class="el" href="group__flac__stream__decoder.html#a36">FLAC__StreamDecoderState</a>&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a21">FLAC__stream_decoder_get_state</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
64
 
<tr><td nowrap align=right valign=top>const char *&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a22">FLAC__stream_decoder_get_resolved_state_string</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
65
 
<tr><td nowrap align=right valign=top>unsigned&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a23">FLAC__stream_decoder_get_channels</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
66
 
<tr><td nowrap align=right valign=top><a class="el" href="group__flac__format.html#a95">FLAC__ChannelAssignment</a>&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a24">FLAC__stream_decoder_get_channel_assignment</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
67
 
<tr><td nowrap align=right valign=top>unsigned&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a25">FLAC__stream_decoder_get_bits_per_sample</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
68
 
<tr><td nowrap align=right valign=top>unsigned&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a26">FLAC__stream_decoder_get_sample_rate</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
69
 
<tr><td nowrap align=right valign=top>unsigned&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a27">FLAC__stream_decoder_get_blocksize</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
70
 
<tr><td nowrap align=right valign=top><a class="el" href="group__flac__stream__decoder.html#a36">FLAC__StreamDecoderState</a>&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a28">FLAC__stream_decoder_init</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
71
 
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a29">FLAC__stream_decoder_finish</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
72
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a30">FLAC__stream_decoder_flush</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
73
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a31">FLAC__stream_decoder_reset</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
74
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a32">FLAC__stream_decoder_process_single</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
75
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a33">FLAC__stream_decoder_process_until_end_of_metadata</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
76
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a34">FLAC__stream_decoder_process_until_end_of_stream</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
77
 
<tr><td nowrap align=right valign=top>FLAC__bool&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a35">FLAC__stream_decoder_skip_single_frame</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
78
 
<tr><td colspan=2><br><h2>Variables</h2></td></tr>
79
 
<tr><td nowrap align=right valign=top>const char *const&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a0">FLAC__StreamDecoderStateString</a> []</td></tr>
80
 
<tr><td nowrap align=right valign=top>const char *const&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a1">FLAC__StreamDecoderReadStatusString</a> []</td></tr>
81
 
<tr><td nowrap align=right valign=top>const char *const&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a2">FLAC__StreamDecoderWriteStatusString</a> []</td></tr>
82
 
<tr><td nowrap align=right valign=top>const char *const&nbsp;</td><td valign=bottom><a class="el" href="group__flac__stream__decoder.html#a3">FLAC__StreamDecoderErrorStatusString</a> []</td></tr>
83
 
</table>
84
 
<hr><a name="_details"></a><h2>Detailed Description</h2>
85
 
This module contains the functions which implement the stream decoder.
86
 
<p>
87
 
 
88
 
<p>
89
 
 The basic usage of this decoder is as follows:<ul>
90
 
<li>The program creates an instance of a decoder using <a class="el" href="group__flac__stream__decoder.html#a8">FLAC__stream_decoder_new</a>().<li>The program overrides the default settings and sets callbacks for reading, writing, error reporting, and metadata reporting using FLAC__stream_decoder_set_*() functions.<li>The program initializes the instance to validate the settings and prepare for decoding using <a class="el" href="group__flac__stream__decoder.html#a28">FLAC__stream_decoder_init</a>().<li>The program calls the FLAC__stream_decoder_process_*() functions to decode data, which subsequently calls the callbacks.<li>The program finishes the decoding with <a class="el" href="group__flac__stream__decoder.html#a29">FLAC__stream_decoder_finish</a>(), which flushes the input and output and resets the decoder to the uninitialized state.<li>The instance may be used again or deleted with <a class="el" href="group__flac__stream__decoder.html#a9">FLAC__stream_decoder_delete</a>().</ul>
91
 
In more detail, the program will create a new instance by calling <a class="el" href="group__flac__stream__decoder.html#a8">FLAC__stream_decoder_new</a>(), then call FLAC__stream_decoder_set_*() functions to set the callbacks and client data, and call <a class="el" href="group__flac__stream__decoder.html#a28">FLAC__stream_decoder_init</a>(). The required callbacks are:
92
 
<p>
93
 
<ul>
94
 
<li>Read callback - This function will be called when the decoder needs more input data. The address of the buffer to be filled is supplied, along with the number of bytes the buffer can hold. The callback may choose to supply less data and modify the byte count but must be careful not to overflow the buffer. The callback then returns a status code chosen from FLAC__StreamDecoderReadStatus.<li>Write callback - This function will be called when the decoder has decoded a single frame of data. The decoder will pass the frame metadata as well as an array of pointers (one for each channel) pointing to the decoded audio.<li>Metadata callback - This function will be called when the decoder has decoded a metadata block. In a valid FLAC file there will always be one STREAMINFO block, followed by zero or more other metadata blocks. These will be supplied by the decoder in the same order as they appear in the stream and always before the first audio frame (i.e. write callback). The metadata block that is passed in must not be modified, and it doesn't live beyond the callback, so you should make a copy of it with <a class="el" href="group__flac__metadata__object.html#a1">FLAC__metadata_object_clone</a>() if you will need it elsewhere. Since metadata blocks can potentially be large, by default the decoder only calls the metadata callback for the STREAMINFO block; you can instruct the decoder to pass or filter other blocks with FLAC__stream_decoder_set_metadata_*() calls.<li>Error callback - This function will be called whenever an error occurs during decoding.</ul>
95
 
Once the decoder is initialized, your program will call one of several functions to start the decoding process:
96
 
<p>
97
 
<ul>
98
 
<li><a class="el" href="group__flac__stream__decoder.html#a32">FLAC__stream_decoder_process_single</a>() - Tells the decoder to process at most one metadata block or audio frame and return, calling either the metadata callback or write callback, respectively, once. If the decoder loses sync it will return with only the error callback being called.<li><a class="el" href="group__flac__stream__decoder.html#a33">FLAC__stream_decoder_process_until_end_of_metadata</a>() - Tells the decoder to process the stream from the current location and stop upon reaching the first audio frame. The user will get one metadata, write, or error callback per metadata block, audio frame, or sync error, respectively.<li><a class="el" href="group__flac__stream__decoder.html#a34">FLAC__stream_decoder_process_until_end_of_stream</a>() - Tells the decoder to process the stream from the current location until the read callback returns FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM or FLAC__STREAM_DECODER_READ_STATUS_ABORT. The user will get one metadata, write, or error callback per metadata block, audio frame, or sync error, respectively.</ul>
99
 
When the decoder has finished decoding (normally or through an abort), the instance is finished by calling <a class="el" href="group__flac__stream__decoder.html#a29">FLAC__stream_decoder_finish</a>(), which ensures the decoder is in the correct state and frees memory. Then the instance may be deleted with <a class="el" href="group__flac__stream__decoder.html#a9">FLAC__stream_decoder_delete</a>() or initialized again to decode another stream.
100
 
<p>
101
 
Note that the stream decoder has no real concept of stream position, it just converts data. To seek within a stream the callbacks have only to flush the decoder using <a class="el" href="group__flac__stream__decoder.html#a30">FLAC__stream_decoder_flush</a>() and start feeding data from the new position through the read callback. The seekable stream decoder does just this.
102
 
<p>
103
 
The FLAC__stream_decoder_set_metadata_*() functions deserve special attention. By default, the decoder only calls the metadata_callback for the STREAMINFO block. These functions allow you to tell the decoder explicitly which blocks to parse and return via the metadata_callback and/or which to skip. Use a <a class="el" href="group__flac__stream__decoder.html#a17">FLAC__stream_decoder_set_metadata_respond_all</a>(), <a class="el" href="group__flac__stream__decoder.html#a18">FLAC__stream_decoder_set_metadata_ignore</a>() ... or <a class="el" href="group__flac__stream__decoder.html#a20">FLAC__stream_decoder_set_metadata_ignore_all</a>(), <a class="el" href="group__flac__stream__decoder.html#a15">FLAC__stream_decoder_set_metadata_respond</a>() ... sequence to exactly specify which blocks to return. Remember that some metadata blocks can be big so filtering out the ones you don't use can reduce the memory requirements of the decoder. Also note the special forms FLAC__stream_decoder_set_metadata_respond_application(id) and FLAC__stream_decoder_set_metadata_ignore_application(id) for filtering APPLICATION blocks based on the application ID.
104
 
<p>
105
 
STREAMINFO and SEEKTABLE blocks are always parsed and used internally, but they still can legally be filtered from the metadata_callback.
106
 
<p>
107
 
<dl compact><dt><b>
108
 
Note: </b><dd>
109
 
 The "set" functions may only be called when the decoder is in the state FLAC__STREAM_DECODER_UNINITIALIZED, i.e. after <a class="el" href="group__flac__stream__decoder.html#a8">FLAC__stream_decoder_new</a>() or <a class="el" href="group__flac__stream__decoder.html#a29">FLAC__stream_decoder_finish</a>(), but before <a class="el" href="group__flac__stream__decoder.html#a28">FLAC__stream_decoder_init</a>(). If this is the case they will return <code>true</code>, otherwise <code>false</code>.</dl><dl compact><dt><b>
110
 
Note: </b><dd>
111
 
 <a class="el" href="group__flac__stream__decoder.html#a29">FLAC__stream_decoder_finish</a>() resets all settings to the constructor defaults, including the callbacks. </dl><hr><h2>Typedef Documentation</h2>
112
 
<a name="a4" doxytag="stream_decoder.h::FLAC__StreamDecoderReadCallback"></a><p>
113
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
114
 
  <tr>
115
 
    <td class="md">
116
 
      <table cellpadding="0" cellspacing="0" border="0">
117
 
        <tr>
118
 
          <td class="md" nowrap valign="top"> typedef <a class="el" href="group__flac__stream__decoder.html#a37">FLAC__StreamDecoderReadStatus</a>(* FLAC__StreamDecoderReadCallback)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data)
119
 
      </table>
120
 
    </td>
121
 
  </tr>
122
 
</table>
123
 
<table cellspacing=5 cellpadding=0 border=0>
124
 
  <tr>
125
 
    <td>
126
 
      &nbsp;
127
 
    </td>
128
 
    <td>
129
 
 
130
 
<p>
131
 
Signature for the read callback. See <a class="el" href="group__flac__stream__decoder.html#a10">FLAC__stream_decoder_set_read_callback</a>() for more info.<dl compact><dt><b>
132
 
Parameters: </b><dd>
133
 
<table border=0 cellspacing=2 cellpadding=0>
134
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
135
 
The decoder instance calling the callback. </td></tr>
136
 
<tr><td valign=top><em>buffer</em>&nbsp;</td><td>
137
 
A pointer to a location for the callee to store data to be decoded. </td></tr>
138
 
<tr><td valign=top><em>bytes</em>&nbsp;</td><td>
139
 
A pointer to the size of the buffer. On entry to the callback, it contains the maximum number of bytes that may be stored in <em>buffer</em>. The callee must set it to the actual number of bytes stored (0 in case of error or end-of-stream) before returning. </td></tr>
140
 
<tr><td valign=top><em>client_data</em>&nbsp;</td><td>
141
 
The callee's client data set through <a class="el" href="group__flac__stream__decoder.html#a14">FLAC__stream_decoder_set_client_data</a>(). </td></tr>
142
 
</table>
143
 
</dl><dl compact><dt><b>
144
 
Return values: </b><dd>
145
 
<table border=0 cellspacing=2 cellpadding=0>
146
 
<tr><td valign=top><em>FLAC__StreamDecoderReadStatus</em>&nbsp;</td><td>
147
 
The callee's return status. </td></tr>
148
 
</table>
149
 
</dl>    </td>
150
 
  </tr>
151
 
</table>
152
 
<a name="a5" doxytag="stream_decoder.h::FLAC__StreamDecoderWriteCallback"></a><p>
153
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
154
 
  <tr>
155
 
    <td class="md">
156
 
      <table cellpadding="0" cellspacing="0" border="0">
157
 
        <tr>
158
 
          <td class="md" nowrap valign="top"> typedef <a class="el" href="group__flac__stream__decoder.html#a38">FLAC__StreamDecoderWriteStatus</a>(* FLAC__StreamDecoderWriteCallback)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const <a class="el" href="structFLAC____Frame.html">FLAC__Frame</a> *frame, const FLAC__int32 * const buffer[], void *client_data)
159
 
      </table>
160
 
    </td>
161
 
  </tr>
162
 
</table>
163
 
<table cellspacing=5 cellpadding=0 border=0>
164
 
  <tr>
165
 
    <td>
166
 
      &nbsp;
167
 
    </td>
168
 
    <td>
169
 
 
170
 
<p>
171
 
Signature for the write callback. See <a class="el" href="group__flac__stream__decoder.html#a11">FLAC__stream_decoder_set_write_callback</a>() for more info.<dl compact><dt><b>
172
 
Parameters: </b><dd>
173
 
<table border=0 cellspacing=2 cellpadding=0>
174
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
175
 
The decoder instance calling the callback. </td></tr>
176
 
<tr><td valign=top><em>frame</em>&nbsp;</td><td>
177
 
The description of the decoded frame. See <a class="el" href="structFLAC____Frame.html">FLAC__Frame</a>. </td></tr>
178
 
<tr><td valign=top><em>buffer</em>&nbsp;</td><td>
179
 
An array of pointers to decoded channels of data. Each pointer will point to an array of signed samples of length <em>frame-&gt;header.blocksize</em>. Currently, the channel order has no meaning except for stereo streams; in this case channel 0 is left and 1 is right. </td></tr>
180
 
<tr><td valign=top><em>client_data</em>&nbsp;</td><td>
181
 
The callee's client data set through <a class="el" href="group__flac__stream__decoder.html#a14">FLAC__stream_decoder_set_client_data</a>(). </td></tr>
182
 
</table>
183
 
</dl><dl compact><dt><b>
184
 
Return values: </b><dd>
185
 
<table border=0 cellspacing=2 cellpadding=0>
186
 
<tr><td valign=top><em>FLAC__StreamDecoderWriteStatus</em>&nbsp;</td><td>
187
 
The callee's return status. </td></tr>
188
 
</table>
189
 
</dl>    </td>
190
 
  </tr>
191
 
</table>
192
 
<a name="a6" doxytag="stream_decoder.h::FLAC__StreamDecoderMetadataCallback"></a><p>
193
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
194
 
  <tr>
195
 
    <td class="md">
196
 
      <table cellpadding="0" cellspacing="0" border="0">
197
 
        <tr>
198
 
          <td class="md" nowrap valign="top"> typedef void(* FLAC__StreamDecoderMetadataCallback)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const <a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *metadata, void *client_data)
199
 
      </table>
200
 
    </td>
201
 
  </tr>
202
 
</table>
203
 
<table cellspacing=5 cellpadding=0 border=0>
204
 
  <tr>
205
 
    <td>
206
 
      &nbsp;
207
 
    </td>
208
 
    <td>
209
 
 
210
 
<p>
211
 
Signature for the metadata callback. See <a class="el" href="group__flac__stream__decoder.html#a12">FLAC__stream_decoder_set_metadata_callback</a>() for more info.<dl compact><dt><b>
212
 
Parameters: </b><dd>
213
 
<table border=0 cellspacing=2 cellpadding=0>
214
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
215
 
The decoder instance calling the callback. </td></tr>
216
 
<tr><td valign=top><em>metadata</em>&nbsp;</td><td>
217
 
The decoded metadata block. </td></tr>
218
 
<tr><td valign=top><em>client_data</em>&nbsp;</td><td>
219
 
The callee's client data set through <a class="el" href="group__flac__stream__decoder.html#a14">FLAC__stream_decoder_set_client_data</a>(). </td></tr>
220
 
</table>
221
 
</dl>    </td>
222
 
  </tr>
223
 
</table>
224
 
<a name="a7" doxytag="stream_decoder.h::FLAC__StreamDecoderErrorCallback"></a><p>
225
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
226
 
  <tr>
227
 
    <td class="md">
228
 
      <table cellpadding="0" cellspacing="0" border="0">
229
 
        <tr>
230
 
          <td class="md" nowrap valign="top"> typedef void(* FLAC__StreamDecoderErrorCallback)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__stream__decoder.html#a39">FLAC__StreamDecoderErrorStatus</a> status, void *client_data)
231
 
      </table>
232
 
    </td>
233
 
  </tr>
234
 
</table>
235
 
<table cellspacing=5 cellpadding=0 border=0>
236
 
  <tr>
237
 
    <td>
238
 
      &nbsp;
239
 
    </td>
240
 
    <td>
241
 
 
242
 
<p>
243
 
Signature for the error callback. See <a class="el" href="group__flac__stream__decoder.html#a13">FLAC__stream_decoder_set_error_callback</a>() for more info.<dl compact><dt><b>
244
 
Parameters: </b><dd>
245
 
<table border=0 cellspacing=2 cellpadding=0>
246
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
247
 
The decoder instance calling the callback. </td></tr>
248
 
<tr><td valign=top><em>status</em>&nbsp;</td><td>
249
 
The error encountered by the decoder. </td></tr>
250
 
<tr><td valign=top><em>client_data</em>&nbsp;</td><td>
251
 
The callee's client data set through <a class="el" href="group__flac__stream__decoder.html#a14">FLAC__stream_decoder_set_client_data</a>(). </td></tr>
252
 
</table>
253
 
</dl>    </td>
 
11
</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
 
12
This module contains the functions which implement the stream decoder. 
 
13
<p>
 
14
The stream decoder can decode native FLAC, and optionally Ogg FLAC (check FLAC_API_SUPPORTS_OGG_FLAC) streams and files.<p>
 
15
The basic usage of this decoder is as follows:<ul>
 
16
<li>The program creates an instance of a decoder using <a class="el" href="group__flac__stream__decoder.html#ga16">FLAC__stream_decoder_new()</a>.</li><li>The program overrides the default settings using FLAC__stream_decoder_set_*() functions.</li><li>The program initializes the instance to validate the settings and prepare for decoding using<ul>
 
17
<li><a class="el" href="group__flac__stream__decoder.html#ga36">FLAC__stream_decoder_init_stream()</a> or <a class="el" href="group__flac__stream__decoder.html#ga38">FLAC__stream_decoder_init_FILE()</a> or <a class="el" href="group__flac__stream__decoder.html#ga40">FLAC__stream_decoder_init_file()</a> for native FLAC,</li><li><a class="el" href="group__flac__stream__decoder.html#ga37">FLAC__stream_decoder_init_ogg_stream()</a> or <a class="el" href="group__flac__stream__decoder.html#ga39">FLAC__stream_decoder_init_ogg_FILE()</a> or <a class="el" href="group__flac__stream__decoder.html#ga41">FLAC__stream_decoder_init_ogg_file()</a> for Ogg FLAC</li></ul>
 
18
</li><li>The program calls the FLAC__stream_decoder_process_*() functions to decode data, which subsequently calls the callbacks.</li><li>The program finishes the decoding with <a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish()</a>, which flushes the input and output and resets the decoder to the uninitialized state.</li><li>The instance may be used again or deleted with <a class="el" href="group__flac__stream__decoder.html#ga17">FLAC__stream_decoder_delete()</a>.</li></ul>
 
19
<p>
 
20
In more detail, the program will create a new instance by calling <a class="el" href="group__flac__stream__decoder.html#ga16">FLAC__stream_decoder_new()</a>, then call FLAC__stream_decoder_set_*() functions to override the default decoder options, and call one of the FLAC__stream_decoder_init_*() functions.<p>
 
21
There are three initialization functions for native FLAC, one for setting up the decoder to decode FLAC data from the client via callbacks, and two for decoding directly from a FLAC file.<p>
 
22
For decoding via callbacks, use <a class="el" href="group__flac__stream__decoder.html#ga36">FLAC__stream_decoder_init_stream()</a>. You must also supply several callbacks for handling I/O. Some (like seeking) are optional, depending on the capabilities of the input.<p>
 
23
For decoding directly from a file, use <a class="el" href="group__flac__stream__decoder.html#ga38">FLAC__stream_decoder_init_FILE()</a> or <a class="el" href="group__flac__stream__decoder.html#ga40">FLAC__stream_decoder_init_file()</a>. Then you must only supply an open <code>FILE*</code> or filename and fewer callbacks; the decoder will handle the other callbacks internally.<p>
 
24
There are three similarly-named init functions for decoding from Ogg FLAC streams. Check <code>FLAC_API_SUPPORTS_OGG_FLAC</code> to find out if the library has been built with Ogg support.<p>
 
25
Once the decoder is initialized, your program will call one of several functions to start the decoding process:<p>
 
26
<ul>
 
27
<li><a class="el" href="group__flac__stream__decoder.html#ga45">FLAC__stream_decoder_process_single()</a> - Tells the decoder to process at most one metadata block or audio frame and return, calling either the metadata callback or write callback, respectively, once. If the decoder loses sync it will return with only the error callback being called.</li><li><a class="el" href="group__flac__stream__decoder.html#ga46">FLAC__stream_decoder_process_until_end_of_metadata()</a> - Tells the decoder to process the stream from the current location and stop upon reaching the first audio frame. The client will get one metadata, write, or error callback per metadata block, audio frame, or sync error, respectively.</li><li><a class="el" href="group__flac__stream__decoder.html#ga47">FLAC__stream_decoder_process_until_end_of_stream()</a> - Tells the decoder to process the stream from the current location until the read callback returns FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM or FLAC__STREAM_DECODER_READ_STATUS_ABORT. The client will get one metadata, write, or error callback per metadata block, audio frame, or sync error, respectively.</li></ul>
 
28
<p>
 
29
When the decoder has finished decoding (normally or through an abort), the instance is finished by calling <a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish()</a>, which ensures the decoder is in the correct state and frees memory. Then the instance may be deleted with <a class="el" href="group__flac__stream__decoder.html#ga17">FLAC__stream_decoder_delete()</a> or initialized again to decode another stream.<p>
 
30
Seeking is exposed through the <a class="el" href="group__flac__stream__decoder.html#ga49">FLAC__stream_decoder_seek_absolute()</a> method. At any point after the stream decoder has been initialized, the client can call this function to seek to an exact sample within the stream. Subsequently, the first time the write callback is called it will be passed a (possibly partial) block starting at that sample.<p>
 
31
If the client cannot seek via the callback interface provided, but still has another way of seeking, it can flush the decoder using <a class="el" href="group__flac__stream__decoder.html#ga43">FLAC__stream_decoder_flush()</a> and start feeding data from the new position through the read callback.<p>
 
32
The stream decoder also provides MD5 signature checking. If this is turned on before initialization, <a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish()</a> will report when the decoded MD5 signature does not match the one stored in the STREAMINFO block. MD5 checking is automatically turned off (until the next <a class="el" href="group__flac__stream__decoder.html#ga44">FLAC__stream_decoder_reset()</a>) if there is no signature in the STREAMINFO block or when a seek is attempted.<p>
 
33
The FLAC__stream_decoder_set_metadata_*() functions deserve special attention. By default, the decoder only calls the metadata_callback for the STREAMINFO block. These functions allow you to tell the decoder explicitly which blocks to parse and return via the metadata_callback and/or which to skip. Use a <a class="el" href="group__flac__stream__decoder.html#ga22">FLAC__stream_decoder_set_metadata_respond_all()</a>, <a class="el" href="group__flac__stream__decoder.html#ga23">FLAC__stream_decoder_set_metadata_ignore()</a> ... or <a class="el" href="group__flac__stream__decoder.html#ga25">FLAC__stream_decoder_set_metadata_ignore_all()</a>, <a class="el" href="group__flac__stream__decoder.html#ga20">FLAC__stream_decoder_set_metadata_respond()</a> ... sequence to exactly specify which blocks to return. Remember that metadata blocks can potentially be big (for example, cover art) so filtering out the ones you don't use can reduce the memory requirements of the decoder. Also note the special forms FLAC__stream_decoder_set_metadata_respond_application(id) and FLAC__stream_decoder_set_metadata_ignore_application(id) for filtering APPLICATION blocks based on the application ID.<p>
 
34
STREAMINFO and SEEKTABLE blocks are always parsed and used internally, but they still can legally be filtered from the metadata_callback.<p>
 
35
<dl compact><dt><b>Note:</b></dt><dd>The "set" functions may only be called when the decoder is in the state FLAC__STREAM_DECODER_UNINITIALIZED, i.e. after <a class="el" href="group__flac__stream__decoder.html#ga16">FLAC__stream_decoder_new()</a> or <a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish()</a>, but before FLAC__stream_decoder_init_*(). If this is the case they will return <code>true</code>, otherwise <code>false</code>.<p>
 
36
<a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish()</a> resets all settings to the constructor defaults, including the callbacks. </dd></dl>
 
37
 
 
38
<p>
 
39
<table border="0" cellpadding="0" cellspacing="0">
 
40
<tr><td></td></tr>
 
41
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
 
42
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a></td></tr>
 
43
 
 
44
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
 
45
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="group__flac__stream__decoder.html#ga52">FLAC__StreamDecoderReadStatus</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga8">FLAC__StreamDecoderReadCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data)</td></tr>
 
46
 
 
47
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="group__flac__stream__decoder.html#ga53">FLAC__StreamDecoderSeekStatus</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga9">FLAC__StreamDecoderSeekCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__uint64 absolute_byte_offset, void *client_data)</td></tr>
 
48
 
 
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="group__flac__stream__decoder.html#ga54">FLAC__StreamDecoderTellStatus</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga10">FLAC__StreamDecoderTellCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__uint64 *absolute_byte_offset, void *client_data)</td></tr>
 
50
 
 
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="group__flac__stream__decoder.html#ga55">FLAC__StreamDecoderLengthStatus</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga11">FLAC__StreamDecoderLengthCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__uint64 *stream_length, void *client_data)</td></tr>
 
52
 
 
53
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef FLAC__bool(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga12">FLAC__StreamDecoderEofCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, void *client_data)</td></tr>
 
54
 
 
55
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="group__flac__stream__decoder.html#ga56">FLAC__StreamDecoderWriteStatus</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const <a class="el" href="structFLAC____Frame.html">FLAC__Frame</a> *frame, const FLAC__int32 *const buffer[], void *client_data)</td></tr>
 
56
 
 
57
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const <a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *metadata, void *client_data)</td></tr>
 
58
 
 
59
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a> )(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__stream__decoder.html#ga57">FLAC__StreamDecoderErrorStatus</a> status, void *client_data)</td></tr>
 
60
 
 
61
<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
 
62
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga50">FLAC__StreamDecoderState</a> { <br>
 
63
&nbsp;&nbsp;<a class="el" href="group__flac__stream__decoder.html#gga50a16">FLAC__STREAM_DECODER_SEARCH_FOR_METADATA</a> =  0, 
 
64
<a class="el" href="group__flac__stream__decoder.html#gga50a17">FLAC__STREAM_DECODER_READ_METADATA</a>, 
 
65
<a class="el" href="group__flac__stream__decoder.html#gga50a18">FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC</a>, 
 
66
<a class="el" href="group__flac__stream__decoder.html#gga50a19">FLAC__STREAM_DECODER_READ_FRAME</a>, 
 
67
<br>
 
68
&nbsp;&nbsp;<a class="el" href="group__flac__stream__decoder.html#gga50a20">FLAC__STREAM_DECODER_END_OF_STREAM</a>, 
 
69
<a class="el" href="group__flac__stream__decoder.html#gga50a21">FLAC__STREAM_DECODER_OGG_ERROR</a>, 
 
70
<a class="el" href="group__flac__stream__decoder.html#gga50a22">FLAC__STREAM_DECODER_SEEK_ERROR</a>, 
 
71
<a class="el" href="group__flac__stream__decoder.html#gga50a23">FLAC__STREAM_DECODER_ABORTED</a>, 
 
72
<br>
 
73
&nbsp;&nbsp;<a class="el" href="group__flac__stream__decoder.html#gga50a24">FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR</a>, 
 
74
<a class="el" href="group__flac__stream__decoder.html#gga50a25">FLAC__STREAM_DECODER_UNINITIALIZED</a>
 
75
<br>
 
76
 }</td></tr>
 
77
 
 
78
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a> { <br>
 
79
&nbsp;&nbsp;<a class="el" href="group__flac__stream__decoder.html#gga51a26">FLAC__STREAM_DECODER_INIT_STATUS_OK</a> =  0, 
 
80
<a class="el" href="group__flac__stream__decoder.html#gga51a27">FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER</a>, 
 
81
<a class="el" href="group__flac__stream__decoder.html#gga51a28">FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS</a>, 
 
82
<a class="el" href="group__flac__stream__decoder.html#gga51a29">FLAC__STREAM_DECODER_INIT_STATUS_MEMORY_ALLOCATION_ERROR</a>, 
 
83
<br>
 
84
&nbsp;&nbsp;<a class="el" href="group__flac__stream__decoder.html#gga51a30">FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE</a>, 
 
85
<a class="el" href="group__flac__stream__decoder.html#gga51a31">FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED</a>
 
86
<br>
 
87
 }</td></tr>
 
88
 
 
89
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga52">FLAC__StreamDecoderReadStatus</a> { <a class="el" href="group__flac__stream__decoder.html#gga52a32">FLAC__STREAM_DECODER_READ_STATUS_CONTINUE</a>, 
 
90
<a class="el" href="group__flac__stream__decoder.html#gga52a33">FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</a>, 
 
91
<a class="el" href="group__flac__stream__decoder.html#gga52a34">FLAC__STREAM_DECODER_READ_STATUS_ABORT</a>
 
92
 }</td></tr>
 
93
 
 
94
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga53">FLAC__StreamDecoderSeekStatus</a> { <a class="el" href="group__flac__stream__decoder.html#gga53a35">FLAC__STREAM_DECODER_SEEK_STATUS_OK</a>, 
 
95
<a class="el" href="group__flac__stream__decoder.html#gga53a36">FLAC__STREAM_DECODER_SEEK_STATUS_ERROR</a>, 
 
96
<a class="el" href="group__flac__stream__decoder.html#gga53a37">FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED</a>
 
97
 }</td></tr>
 
98
 
 
99
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga54">FLAC__StreamDecoderTellStatus</a> { <a class="el" href="group__flac__stream__decoder.html#gga54a38">FLAC__STREAM_DECODER_TELL_STATUS_OK</a>, 
 
100
<a class="el" href="group__flac__stream__decoder.html#gga54a39">FLAC__STREAM_DECODER_TELL_STATUS_ERROR</a>, 
 
101
<a class="el" href="group__flac__stream__decoder.html#gga54a40">FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED</a>
 
102
 }</td></tr>
 
103
 
 
104
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga55">FLAC__StreamDecoderLengthStatus</a> { <a class="el" href="group__flac__stream__decoder.html#gga55a41">FLAC__STREAM_DECODER_LENGTH_STATUS_OK</a>, 
 
105
<a class="el" href="group__flac__stream__decoder.html#gga55a42">FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR</a>, 
 
106
<a class="el" href="group__flac__stream__decoder.html#gga55a43">FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED</a>
 
107
 }</td></tr>
 
108
 
 
109
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga56">FLAC__StreamDecoderWriteStatus</a> { <a class="el" href="group__flac__stream__decoder.html#gga56a44">FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE</a>, 
 
110
<a class="el" href="group__flac__stream__decoder.html#gga56a45">FLAC__STREAM_DECODER_WRITE_STATUS_ABORT</a>
 
111
 }</td></tr>
 
112
 
 
113
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga57">FLAC__StreamDecoderErrorStatus</a> { <a class="el" href="group__flac__stream__decoder.html#gga57a46">FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC</a>, 
 
114
<a class="el" href="group__flac__stream__decoder.html#gga57a47">FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER</a>, 
 
115
<a class="el" href="group__flac__stream__decoder.html#gga57a48">FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH</a>, 
 
116
<a class="el" href="group__flac__stream__decoder.html#gga57a49">FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM</a>
 
117
 }</td></tr>
 
118
 
 
119
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
 
120
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga16">FLAC__stream_decoder_new</a> (void)</td></tr>
 
121
 
 
122
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga17">FLAC__stream_decoder_delete</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
123
 
 
124
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga18">FLAC__stream_decoder_set_ogg_serial_number</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, long serial_number)</td></tr>
 
125
 
 
126
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga19">FLAC__stream_decoder_set_md5_checking</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__bool value)</td></tr>
 
127
 
 
128
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga20">FLAC__stream_decoder_set_metadata_respond</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__format.html#ga109">FLAC__MetadataType</a> type)</td></tr>
 
129
 
 
130
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga21">FLAC__stream_decoder_set_metadata_respond_application</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const FLAC__byte id[4])</td></tr>
 
131
 
 
132
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga22">FLAC__stream_decoder_set_metadata_respond_all</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
133
 
 
134
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga23">FLAC__stream_decoder_set_metadata_ignore</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__format.html#ga109">FLAC__MetadataType</a> type)</td></tr>
 
135
 
 
136
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga24">FLAC__stream_decoder_set_metadata_ignore_application</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const FLAC__byte id[4])</td></tr>
 
137
 
 
138
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga25">FLAC__stream_decoder_set_metadata_ignore_all</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
139
 
 
140
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__flac__stream__decoder.html#ga50">FLAC__StreamDecoderState</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga26">FLAC__stream_decoder_get_state</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
141
 
 
142
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga27">FLAC__stream_decoder_get_resolved_state_string</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
143
 
 
144
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga28">FLAC__stream_decoder_get_md5_checking</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
145
 
 
146
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__uint64&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga29">FLAC__stream_decoder_get_total_samples</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
147
 
 
148
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga30">FLAC__stream_decoder_get_channels</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
149
 
 
150
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__flac__format.html#ga107">FLAC__ChannelAssignment</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga31">FLAC__stream_decoder_get_channel_assignment</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
151
 
 
152
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga32">FLAC__stream_decoder_get_bits_per_sample</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
153
 
 
154
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga33">FLAC__stream_decoder_get_sample_rate</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
155
 
 
156
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga34">FLAC__stream_decoder_get_blocksize</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
157
 
 
158
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga35">FLAC__stream_decoder_get_decode_position</a> (const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__uint64 *position)</td></tr>
 
159
 
 
160
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga36">FLAC__stream_decoder_init_stream</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__stream__decoder.html#ga8">FLAC__StreamDecoderReadCallback</a> read_callback, <a class="el" href="group__flac__stream__decoder.html#ga9">FLAC__StreamDecoderSeekCallback</a> seek_callback, <a class="el" href="group__flac__stream__decoder.html#ga10">FLAC__StreamDecoderTellCallback</a> tell_callback, <a class="el" href="group__flac__stream__decoder.html#ga11">FLAC__StreamDecoderLengthCallback</a> length_callback, <a class="el" href="group__flac__stream__decoder.html#ga12">FLAC__StreamDecoderEofCallback</a> eof_callback, <a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a> write_callback, <a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a> metadata_callback, <a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a> error_callback, void *client_data)</td></tr>
 
161
 
 
162
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga37">FLAC__stream_decoder_init_ogg_stream</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__stream__decoder.html#ga8">FLAC__StreamDecoderReadCallback</a> read_callback, <a class="el" href="group__flac__stream__decoder.html#ga9">FLAC__StreamDecoderSeekCallback</a> seek_callback, <a class="el" href="group__flac__stream__decoder.html#ga10">FLAC__StreamDecoderTellCallback</a> tell_callback, <a class="el" href="group__flac__stream__decoder.html#ga11">FLAC__StreamDecoderLengthCallback</a> length_callback, <a class="el" href="group__flac__stream__decoder.html#ga12">FLAC__StreamDecoderEofCallback</a> eof_callback, <a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a> write_callback, <a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a> metadata_callback, <a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a> error_callback, void *client_data)</td></tr>
 
163
 
 
164
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga38">FLAC__stream_decoder_init_FILE</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FILE *file, <a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a> write_callback, <a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a> metadata_callback, <a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a> error_callback, void *client_data)</td></tr>
 
165
 
 
166
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga39">FLAC__stream_decoder_init_ogg_FILE</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FILE *file, <a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a> write_callback, <a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a> metadata_callback, <a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a> error_callback, void *client_data)</td></tr>
 
167
 
 
168
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga40">FLAC__stream_decoder_init_file</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const char *filename, <a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a> write_callback, <a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a> metadata_callback, <a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a> error_callback, void *client_data)</td></tr>
 
169
 
 
170
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga41">FLAC__stream_decoder_init_ogg_file</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const char *filename, <a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a> write_callback, <a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a> metadata_callback, <a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a> error_callback, void *client_data)</td></tr>
 
171
 
 
172
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
173
 
 
174
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga43">FLAC__stream_decoder_flush</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
175
 
 
176
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga44">FLAC__stream_decoder_reset</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
177
 
 
178
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga45">FLAC__stream_decoder_process_single</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
179
 
 
180
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga46">FLAC__stream_decoder_process_until_end_of_metadata</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
181
 
 
182
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga47">FLAC__stream_decoder_process_until_end_of_stream</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
183
 
 
184
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga48">FLAC__stream_decoder_skip_single_frame</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder)</td></tr>
 
185
 
 
186
<tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga49">FLAC__stream_decoder_seek_absolute</a> (<a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__uint64 sample)</td></tr>
 
187
 
 
188
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
 
189
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga0">FLAC__StreamDecoderStateString</a> []</td></tr>
 
190
 
 
191
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga1">FLAC__StreamDecoderInitStatusString</a> []</td></tr>
 
192
 
 
193
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga2">FLAC__StreamDecoderReadStatusString</a> []</td></tr>
 
194
 
 
195
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga3">FLAC__StreamDecoderSeekStatusString</a> []</td></tr>
 
196
 
 
197
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga4">FLAC__StreamDecoderTellStatusString</a> []</td></tr>
 
198
 
 
199
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga5">FLAC__StreamDecoderLengthStatusString</a> []</td></tr>
 
200
 
 
201
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga6">FLAC__StreamDecoderWriteStatusString</a> []</td></tr>
 
202
 
 
203
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__stream__decoder.html#ga7">FLAC__StreamDecoderErrorStatusString</a> []</td></tr>
 
204
 
 
205
</table>
 
206
<hr><h2>Typedef Documentation</h2>
 
207
<a class="anchor" name="ga8" doxytag="stream_decoder.h::FLAC__StreamDecoderReadCallback"></a><p>
 
208
<table class="mdTable" cellpadding="2" cellspacing="0">
 
209
  <tr>
 
210
    <td class="mdRow">
 
211
      <table cellpadding="0" cellspacing="0" border="0">
 
212
        <tr>
 
213
          <td class="md" nowrap valign="top">typedef <a class="el" href="group__flac__stream__decoder.html#ga52">FLAC__StreamDecoderReadStatus</a>(* <a class="el" href="group__flac__stream__decoder.html#ga8">FLAC__StreamDecoderReadCallback</a>)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data)          </td>
 
214
        </tr>
 
215
      </table>
 
216
    </td>
 
217
  </tr>
 
218
</table>
 
219
<table cellspacing="5" cellpadding="0" border="0">
 
220
  <tr>
 
221
    <td>
 
222
      &nbsp;
 
223
    </td>
 
224
    <td>
 
225
 
 
226
<p>
 
227
Signature for the read callback.<p>
 
228
A function pointer matching this signature must be passed to FLAC__stream_decoder_init*_stream(). The supplied function will be called when the decoder needs more input data. The address of the buffer to be filled is supplied, along with the number of bytes the buffer can hold. The callback may choose to supply less data and modify the byte count but must be careful not to overflow the buffer. The callback then returns a status code chosen from FLAC__StreamDecoderReadStatus.<p>
 
229
Here is an example of a read callback for stdio streams: <div class="fragment"><pre class="fragment"> <a class="code" href="group__flac__stream__decoder.html#ga52">FLAC__StreamDecoderReadStatus</a> read_cb(<span class="keyword">const</span> <a class="code" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__byte buffer[], size_t *bytes, <span class="keywordtype">void</span> *client_data)
 
230
 {
 
231
   FILE *file = ((MyClientData*)client_data)-&gt;file;
 
232
   <span class="keywordflow">if</span>(*bytes &gt; 0) {
 
233
     *bytes = fread(buffer, <span class="keyword">sizeof</span>(FLAC__byte), *bytes, file);
 
234
     <span class="keywordflow">if</span>(ferror(file))
 
235
       <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga52a34">FLAC__STREAM_DECODER_READ_STATUS_ABORT</a>;
 
236
     <span class="keywordflow">else</span> <span class="keywordflow">if</span>(*bytes == 0)
 
237
       <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga52a33">FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</a>;
 
238
     <span class="keywordflow">else</span>
 
239
       <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga52a32">FLAC__STREAM_DECODER_READ_STATUS_CONTINUE</a>;
 
240
   }
 
241
   <span class="keywordflow">else</span>
 
242
     <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga52a34">FLAC__STREAM_DECODER_READ_STATUS_ABORT</a>;
 
243
 }
 
244
</pre></div><p>
 
245
<dl compact><dt><b>Note:</b></dt><dd>In general, <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> functions which change the state should not be called on the <em>decoder</em> while in the callback.</dd></dl>
 
246
<dl compact><dt><b>Parameters:</b></dt><dd>
 
247
  <table border="0" cellspacing="2" cellpadding="0">
 
248
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>The decoder instance calling the callback. </td></tr>
 
249
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>A pointer to a location for the callee to store data to be decoded. </td></tr>
 
250
    <tr><td valign="top"></td><td valign="top"><em>bytes</em>&nbsp;</td><td>A pointer to the size of the buffer. On entry to the callback, it contains the maximum number of bytes that may be stored in <em>buffer</em>. The callee must set it to the actual number of bytes stored (0 in case of error or end-of-stream) before returning. </td></tr>
 
251
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>The callee's client data set through FLAC__stream_decoder_init_*(). </td></tr>
 
252
  </table>
 
253
</dl>
 
254
<dl compact><dt><b>Return values:</b></dt><dd>
 
255
  <table border="0" cellspacing="2" cellpadding="0">
 
256
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderReadStatus</em>&nbsp;</td><td>The callee's return status. Note that the callback should return <code>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</code> if and only if zero bytes were read and there is no more data to be read. </td></tr>
 
257
  </table>
 
258
</dl>
 
259
    </td>
 
260
  </tr>
 
261
</table>
 
262
<a class="anchor" name="ga9" doxytag="stream_decoder.h::FLAC__StreamDecoderSeekCallback"></a><p>
 
263
<table class="mdTable" cellpadding="2" cellspacing="0">
 
264
  <tr>
 
265
    <td class="mdRow">
 
266
      <table cellpadding="0" cellspacing="0" border="0">
 
267
        <tr>
 
268
          <td class="md" nowrap valign="top">typedef <a class="el" href="group__flac__stream__decoder.html#ga53">FLAC__StreamDecoderSeekStatus</a>(* <a class="el" href="group__flac__stream__decoder.html#ga9">FLAC__StreamDecoderSeekCallback</a>)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__uint64 absolute_byte_offset, void *client_data)          </td>
 
269
        </tr>
 
270
      </table>
 
271
    </td>
 
272
  </tr>
 
273
</table>
 
274
<table cellspacing="5" cellpadding="0" border="0">
 
275
  <tr>
 
276
    <td>
 
277
      &nbsp;
 
278
    </td>
 
279
    <td>
 
280
 
 
281
<p>
 
282
Signature for the seek callback.<p>
 
283
A function pointer matching this signature may be passed to FLAC__stream_decoder_init*_stream(). The supplied function will be called when the decoder needs to seek the input stream. The decoder will pass the absolute byte offset to seek to, 0 meaning the beginning of the stream.<p>
 
284
Here is an example of a seek callback for stdio streams: <div class="fragment"><pre class="fragment"> <a class="code" href="group__flac__stream__decoder.html#ga53">FLAC__StreamDecoderSeekStatus</a> seek_cb(<span class="keyword">const</span> <a class="code" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__uint64 absolute_byte_offset, <span class="keywordtype">void</span> *client_data)
 
285
 {
 
286
   FILE *file = ((MyClientData*)client_data)-&gt;file;
 
287
   <span class="keywordflow">if</span>(file == stdin)
 
288
     <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga53a37">FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED</a>;
 
289
   <span class="keywordflow">else</span> <span class="keywordflow">if</span>(fseeko(file, (off_t)absolute_byte_offset, SEEK_SET) &lt; 0)
 
290
     <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga53a36">FLAC__STREAM_DECODER_SEEK_STATUS_ERROR</a>;
 
291
   <span class="keywordflow">else</span>
 
292
     <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga53a35">FLAC__STREAM_DECODER_SEEK_STATUS_OK</a>;
 
293
 }
 
294
</pre></div><p>
 
295
<dl compact><dt><b>Note:</b></dt><dd>In general, <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> functions which change the state should not be called on the <em>decoder</em> while in the callback.</dd></dl>
 
296
<dl compact><dt><b>Parameters:</b></dt><dd>
 
297
  <table border="0" cellspacing="2" cellpadding="0">
 
298
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>The decoder instance calling the callback. </td></tr>
 
299
    <tr><td valign="top"></td><td valign="top"><em>absolute_byte_offset</em>&nbsp;</td><td>The offset from the beginning of the stream to seek to. </td></tr>
 
300
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>The callee's client data set through FLAC__stream_decoder_init_*(). </td></tr>
 
301
  </table>
 
302
</dl>
 
303
<dl compact><dt><b>Return values:</b></dt><dd>
 
304
  <table border="0" cellspacing="2" cellpadding="0">
 
305
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderSeekStatus</em>&nbsp;</td><td>The callee's return status. </td></tr>
 
306
  </table>
 
307
</dl>
 
308
    </td>
 
309
  </tr>
 
310
</table>
 
311
<a class="anchor" name="ga10" doxytag="stream_decoder.h::FLAC__StreamDecoderTellCallback"></a><p>
 
312
<table class="mdTable" cellpadding="2" cellspacing="0">
 
313
  <tr>
 
314
    <td class="mdRow">
 
315
      <table cellpadding="0" cellspacing="0" border="0">
 
316
        <tr>
 
317
          <td class="md" nowrap valign="top">typedef <a class="el" href="group__flac__stream__decoder.html#ga54">FLAC__StreamDecoderTellStatus</a>(* <a class="el" href="group__flac__stream__decoder.html#ga10">FLAC__StreamDecoderTellCallback</a>)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__uint64 *absolute_byte_offset, void *client_data)          </td>
 
318
        </tr>
 
319
      </table>
 
320
    </td>
 
321
  </tr>
 
322
</table>
 
323
<table cellspacing="5" cellpadding="0" border="0">
 
324
  <tr>
 
325
    <td>
 
326
      &nbsp;
 
327
    </td>
 
328
    <td>
 
329
 
 
330
<p>
 
331
Signature for the tell callback.<p>
 
332
A function pointer matching this signature may be passed to FLAC__stream_decoder_init*_stream(). The supplied function will be called when the decoder wants to know the current position of the stream. The callback should return the byte offset from the beginning of the stream.<p>
 
333
Here is an example of a tell callback for stdio streams: <div class="fragment"><pre class="fragment"> <a class="code" href="group__flac__stream__decoder.html#ga54">FLAC__StreamDecoderTellStatus</a> tell_cb(<span class="keyword">const</span> <a class="code" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__uint64 *absolute_byte_offset, <span class="keywordtype">void</span> *client_data)
 
334
 {
 
335
   FILE *file = ((MyClientData*)client_data)-&gt;file;
 
336
   off_t pos;
 
337
   <span class="keywordflow">if</span>(file == stdin)
 
338
     <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga54a40">FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED</a>;
 
339
   <span class="keywordflow">else</span> <span class="keywordflow">if</span>((pos = ftello(file)) &lt; 0)
 
340
     <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga54a39">FLAC__STREAM_DECODER_TELL_STATUS_ERROR</a>;
 
341
   <span class="keywordflow">else</span> {
 
342
     *absolute_byte_offset = (FLAC__uint64)pos;
 
343
     <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga54a38">FLAC__STREAM_DECODER_TELL_STATUS_OK</a>;
 
344
   }
 
345
 }
 
346
</pre></div><p>
 
347
<dl compact><dt><b>Note:</b></dt><dd>In general, <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> functions which change the state should not be called on the <em>decoder</em> while in the callback.</dd></dl>
 
348
<dl compact><dt><b>Parameters:</b></dt><dd>
 
349
  <table border="0" cellspacing="2" cellpadding="0">
 
350
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>The decoder instance calling the callback. </td></tr>
 
351
    <tr><td valign="top"></td><td valign="top"><em>absolute_byte_offset</em>&nbsp;</td><td>A pointer to storage for the current offset from the beginning of the stream. </td></tr>
 
352
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>The callee's client data set through FLAC__stream_decoder_init_*(). </td></tr>
 
353
  </table>
 
354
</dl>
 
355
<dl compact><dt><b>Return values:</b></dt><dd>
 
356
  <table border="0" cellspacing="2" cellpadding="0">
 
357
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderTellStatus</em>&nbsp;</td><td>The callee's return status. </td></tr>
 
358
  </table>
 
359
</dl>
 
360
    </td>
 
361
  </tr>
 
362
</table>
 
363
<a class="anchor" name="ga11" doxytag="stream_decoder.h::FLAC__StreamDecoderLengthCallback"></a><p>
 
364
<table class="mdTable" cellpadding="2" cellspacing="0">
 
365
  <tr>
 
366
    <td class="mdRow">
 
367
      <table cellpadding="0" cellspacing="0" border="0">
 
368
        <tr>
 
369
          <td class="md" nowrap valign="top">typedef <a class="el" href="group__flac__stream__decoder.html#ga55">FLAC__StreamDecoderLengthStatus</a>(* <a class="el" href="group__flac__stream__decoder.html#ga11">FLAC__StreamDecoderLengthCallback</a>)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__uint64 *stream_length, void *client_data)          </td>
 
370
        </tr>
 
371
      </table>
 
372
    </td>
 
373
  </tr>
 
374
</table>
 
375
<table cellspacing="5" cellpadding="0" border="0">
 
376
  <tr>
 
377
    <td>
 
378
      &nbsp;
 
379
    </td>
 
380
    <td>
 
381
 
 
382
<p>
 
383
Signature for the length callback.<p>
 
384
A function pointer matching this signature may be passed to FLAC__stream_decoder_init*_stream(). The supplied function will be called when the decoder wants to know the total length of the stream in bytes.<p>
 
385
Here is an example of a length callback for stdio streams: <div class="fragment"><pre class="fragment"> <a class="code" href="group__flac__stream__decoder.html#ga55">FLAC__StreamDecoderLengthStatus</a> length_cb(<span class="keyword">const</span> <a class="code" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, FLAC__uint64 *stream_length, <span class="keywordtype">void</span> *client_data)
 
386
 {
 
387
   FILE *file = ((MyClientData*)client_data)-&gt;file;
 
388
   <span class="keyword">struct </span>stat filestats;
 
389
 
 
390
   <span class="keywordflow">if</span>(file == stdin)
 
391
     <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga55a43">FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED</a>;
 
392
   <span class="keywordflow">else</span> <span class="keywordflow">if</span>(fstat(fileno(file), &amp;filestats) != 0)
 
393
     <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga55a42">FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR</a>;
 
394
   <span class="keywordflow">else</span> {
 
395
     *stream_length = (FLAC__uint64)filestats.st_size;
 
396
     <span class="keywordflow">return</span> <a class="code" href="group__flac__stream__decoder.html#gga55a41">FLAC__STREAM_DECODER_LENGTH_STATUS_OK</a>;
 
397
   }
 
398
 }
 
399
</pre></div><p>
 
400
<dl compact><dt><b>Note:</b></dt><dd>In general, <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> functions which change the state should not be called on the <em>decoder</em> while in the callback.</dd></dl>
 
401
<dl compact><dt><b>Parameters:</b></dt><dd>
 
402
  <table border="0" cellspacing="2" cellpadding="0">
 
403
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>The decoder instance calling the callback. </td></tr>
 
404
    <tr><td valign="top"></td><td valign="top"><em>stream_length</em>&nbsp;</td><td>A pointer to storage for the length of the stream in bytes. </td></tr>
 
405
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>The callee's client data set through FLAC__stream_decoder_init_*(). </td></tr>
 
406
  </table>
 
407
</dl>
 
408
<dl compact><dt><b>Return values:</b></dt><dd>
 
409
  <table border="0" cellspacing="2" cellpadding="0">
 
410
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderLengthStatus</em>&nbsp;</td><td>The callee's return status. </td></tr>
 
411
  </table>
 
412
</dl>
 
413
    </td>
 
414
  </tr>
 
415
</table>
 
416
<a class="anchor" name="ga12" doxytag="stream_decoder.h::FLAC__StreamDecoderEofCallback"></a><p>
 
417
<table class="mdTable" cellpadding="2" cellspacing="0">
 
418
  <tr>
 
419
    <td class="mdRow">
 
420
      <table cellpadding="0" cellspacing="0" border="0">
 
421
        <tr>
 
422
          <td class="md" nowrap valign="top">typedef FLAC__bool(* <a class="el" href="group__flac__stream__decoder.html#ga12">FLAC__StreamDecoderEofCallback</a>)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, void *client_data)          </td>
 
423
        </tr>
 
424
      </table>
 
425
    </td>
 
426
  </tr>
 
427
</table>
 
428
<table cellspacing="5" cellpadding="0" border="0">
 
429
  <tr>
 
430
    <td>
 
431
      &nbsp;
 
432
    </td>
 
433
    <td>
 
434
 
 
435
<p>
 
436
Signature for the EOF callback.<p>
 
437
A function pointer matching this signature may be passed to FLAC__stream_decoder_init*_stream(). The supplied function will be called when the decoder needs to know if the end of the stream has been reached.<p>
 
438
Here is an example of a EOF callback for stdio streams: FLAC__bool eof_cb(const FLAC__StreamDecoder *decoder, void *client_data) <div class="fragment"><pre class="fragment"> {
 
439
   FILE *file = ((MyClientData*)client_data)-&gt;file;
 
440
   <span class="keywordflow">return</span> feof(file)? <span class="keyword">true</span> : <span class="keyword">false</span>;
 
441
 }
 
442
</pre></div><p>
 
443
<dl compact><dt><b>Note:</b></dt><dd>In general, <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> functions which change the state should not be called on the <em>decoder</em> while in the callback.</dd></dl>
 
444
<dl compact><dt><b>Parameters:</b></dt><dd>
 
445
  <table border="0" cellspacing="2" cellpadding="0">
 
446
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>The decoder instance calling the callback. </td></tr>
 
447
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>The callee's client data set through FLAC__stream_decoder_init_*(). </td></tr>
 
448
  </table>
 
449
</dl>
 
450
<dl compact><dt><b>Return values:</b></dt><dd>
 
451
  <table border="0" cellspacing="2" cellpadding="0">
 
452
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>true</code> if the currently at the end of the stream, else <code>false</code>. </td></tr>
 
453
  </table>
 
454
</dl>
 
455
    </td>
 
456
  </tr>
 
457
</table>
 
458
<a class="anchor" name="ga13" doxytag="stream_decoder.h::FLAC__StreamDecoderWriteCallback"></a><p>
 
459
<table class="mdTable" cellpadding="2" cellspacing="0">
 
460
  <tr>
 
461
    <td class="mdRow">
 
462
      <table cellpadding="0" cellspacing="0" border="0">
 
463
        <tr>
 
464
          <td class="md" nowrap valign="top">typedef <a class="el" href="group__flac__stream__decoder.html#ga56">FLAC__StreamDecoderWriteStatus</a>(* <a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a>)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const <a class="el" href="structFLAC____Frame.html">FLAC__Frame</a> *frame, const FLAC__int32 *const buffer[], void *client_data)          </td>
 
465
        </tr>
 
466
      </table>
 
467
    </td>
 
468
  </tr>
 
469
</table>
 
470
<table cellspacing="5" cellpadding="0" border="0">
 
471
  <tr>
 
472
    <td>
 
473
      &nbsp;
 
474
    </td>
 
475
    <td>
 
476
 
 
477
<p>
 
478
Signature for the write callback.<p>
 
479
A function pointer matching this signature must be passed to one of the FLAC__stream_decoder_init_*() functions. The supplied function will be called when the decoder has decoded a single audio frame. The decoder will pass the frame metadata as well as an array of pointers (one for each channel) pointing to the decoded audio.<p>
 
480
<dl compact><dt><b>Note:</b></dt><dd>In general, <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> functions which change the state should not be called on the <em>decoder</em> while in the callback.</dd></dl>
 
481
<dl compact><dt><b>Parameters:</b></dt><dd>
 
482
  <table border="0" cellspacing="2" cellpadding="0">
 
483
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>The decoder instance calling the callback. </td></tr>
 
484
    <tr><td valign="top"></td><td valign="top"><em>frame</em>&nbsp;</td><td>The description of the decoded frame. See <a class="el" href="structFLAC____Frame.html">FLAC__Frame</a>. </td></tr>
 
485
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>An array of pointers to decoded channels of data. Each pointer will point to an array of signed samples of length <em>frame-&gt;header.blocksize</em>. Channels will be ordered according to the FLAC specification; see the documentation for the <a href="../format.html#frame_header">frame header</a>. </td></tr>
 
486
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>The callee's client data set through FLAC__stream_decoder_init_*(). </td></tr>
 
487
  </table>
 
488
</dl>
 
489
<dl compact><dt><b>Return values:</b></dt><dd>
 
490
  <table border="0" cellspacing="2" cellpadding="0">
 
491
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderWriteStatus</em>&nbsp;</td><td>The callee's return status. </td></tr>
 
492
  </table>
 
493
</dl>
 
494
    </td>
 
495
  </tr>
 
496
</table>
 
497
<a class="anchor" name="ga14" doxytag="stream_decoder.h::FLAC__StreamDecoderMetadataCallback"></a><p>
 
498
<table class="mdTable" cellpadding="2" cellspacing="0">
 
499
  <tr>
 
500
    <td class="mdRow">
 
501
      <table cellpadding="0" cellspacing="0" border="0">
 
502
        <tr>
 
503
          <td class="md" nowrap valign="top">typedef void(* <a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a>)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, const <a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *metadata, void *client_data)          </td>
 
504
        </tr>
 
505
      </table>
 
506
    </td>
 
507
  </tr>
 
508
</table>
 
509
<table cellspacing="5" cellpadding="0" border="0">
 
510
  <tr>
 
511
    <td>
 
512
      &nbsp;
 
513
    </td>
 
514
    <td>
 
515
 
 
516
<p>
 
517
Signature for the metadata callback.<p>
 
518
A function pointer matching this signature must be passed to one of the FLAC__stream_decoder_init_*() functions. The supplied function will be called when the decoder has decoded a metadata block. In a valid FLAC file there will always be one <code>STREAMINFO</code> block, followed by zero or more other metadata blocks. These will be supplied by the decoder in the same order as they appear in the stream and always before the first audio frame (i.e. write callback). The metadata block that is passed in must not be modified, and it doesn't live beyond the callback, so you should make a copy of it with <a class="el" href="group__flac__metadata__object.html#ga1">FLAC__metadata_object_clone()</a> if you will need it elsewhere. Since metadata blocks can potentially be large, by default the decoder only calls the metadata callback for the <code>STREAMINFO</code> block; you can instruct the decoder to pass or filter other blocks with FLAC__stream_decoder_set_metadata_*() calls.<p>
 
519
<dl compact><dt><b>Note:</b></dt><dd>In general, <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> functions which change the state should not be called on the <em>decoder</em> while in the callback.</dd></dl>
 
520
<dl compact><dt><b>Parameters:</b></dt><dd>
 
521
  <table border="0" cellspacing="2" cellpadding="0">
 
522
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>The decoder instance calling the callback. </td></tr>
 
523
    <tr><td valign="top"></td><td valign="top"><em>metadata</em>&nbsp;</td><td>The decoded metadata block. </td></tr>
 
524
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>The callee's client data set through FLAC__stream_decoder_init_*(). </td></tr>
 
525
  </table>
 
526
</dl>
 
527
    </td>
 
528
  </tr>
 
529
</table>
 
530
<a class="anchor" name="ga15" doxytag="stream_decoder.h::FLAC__StreamDecoderErrorCallback"></a><p>
 
531
<table class="mdTable" cellpadding="2" cellspacing="0">
 
532
  <tr>
 
533
    <td class="mdRow">
 
534
      <table cellpadding="0" cellspacing="0" border="0">
 
535
        <tr>
 
536
          <td class="md" nowrap valign="top">typedef void(* <a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a>)(const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *decoder, <a class="el" href="group__flac__stream__decoder.html#ga57">FLAC__StreamDecoderErrorStatus</a> status, void *client_data)          </td>
 
537
        </tr>
 
538
      </table>
 
539
    </td>
 
540
  </tr>
 
541
</table>
 
542
<table cellspacing="5" cellpadding="0" border="0">
 
543
  <tr>
 
544
    <td>
 
545
      &nbsp;
 
546
    </td>
 
547
    <td>
 
548
 
 
549
<p>
 
550
Signature for the error callback.<p>
 
551
A function pointer matching this signature must be passed to one of the FLAC__stream_decoder_init_*() functions. The supplied function will be called whenever an error occurs during decoding.<p>
 
552
<dl compact><dt><b>Note:</b></dt><dd>In general, <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> functions which change the state should not be called on the <em>decoder</em> while in the callback.</dd></dl>
 
553
<dl compact><dt><b>Parameters:</b></dt><dd>
 
554
  <table border="0" cellspacing="2" cellpadding="0">
 
555
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>The decoder instance calling the callback. </td></tr>
 
556
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>The error encountered by the decoder. </td></tr>
 
557
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>The callee's client data set through FLAC__stream_decoder_init_*(). </td></tr>
 
558
  </table>
 
559
</dl>
 
560
    </td>
254
561
  </tr>
255
562
</table>
256
563
<hr><h2>Enumeration Type Documentation</h2>
257
 
<a name="a36" doxytag="stream_decoder.h::FLAC__StreamDecoderState"></a><p>
258
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
564
<a class="anchor" name="ga50" doxytag="stream_decoder.h::FLAC__StreamDecoderState"></a><p>
 
565
<table class="mdTable" cellpadding="2" cellspacing="0">
259
566
  <tr>
260
 
    <td class="md">
 
567
    <td class="mdRow">
261
568
      <table cellpadding="0" cellspacing="0" border="0">
262
569
        <tr>
263
 
          <td class="md" nowrap valign="top"> enum FLAC__StreamDecoderState
 
570
          <td class="md" nowrap valign="top">enum <a class="el" href="group__flac__stream__decoder.html#ga50">FLAC__StreamDecoderState</a>          </td>
 
571
        </tr>
264
572
      </table>
265
573
    </td>
266
574
  </tr>
267
575
</table>
268
 
<table cellspacing=5 cellpadding=0 border=0>
 
576
<table cellspacing="5" cellpadding="0" border="0">
269
577
  <tr>
270
578
    <td>
271
579
      &nbsp;
273
581
    <td>
274
582
 
275
583
<p>
276
 
State values for a <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a>
277
 
<p>
278
 
The decoder's state can be obtained by calling <a class="el" href="group__flac__stream__decoder.html#a21">FLAC__stream_decoder_get_state</a>(). <dl compact><dt><b>
279
 
Enumeration values:</b><dd>
280
 
<table border=0 cellspacing=2 cellpadding=0>
281
 
<tr><td valign=top><em><a name="a36a8" doxytag="FLAC__STREAM_DECODER_SEARCH_FOR_METADATA"></a><em>FLAC__STREAM_DECODER_SEARCH_FOR_METADATA</em></em>&nbsp;</td><td>
 
584
State values for a <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a><p>
 
585
The decoder's state can be obtained by calling <a class="el" href="group__flac__stream__decoder.html#ga26">FLAC__stream_decoder_get_state()</a>. <dl compact><dt><b>Enumeration values: </b></dt><dd>
 
586
<table border="0" cellspacing="2" cellpadding="0">
 
587
<tr><td valign="top"><em><a class="anchor" name="gga50a16" doxytag="FLAC__STREAM_DECODER_SEARCH_FOR_METADATA"></a>FLAC__STREAM_DECODER_SEARCH_FOR_METADATA</em>&nbsp;</td><td>
282
588
The decoder is ready to search for metadata. </td></tr>
283
 
<tr><td valign=top><em><a name="a36a9" doxytag="FLAC__STREAM_DECODER_READ_METADATA"></a><em>FLAC__STREAM_DECODER_READ_METADATA</em></em>&nbsp;</td><td>
 
589
<tr><td valign="top"><em><a class="anchor" name="gga50a17" doxytag="FLAC__STREAM_DECODER_READ_METADATA"></a>FLAC__STREAM_DECODER_READ_METADATA</em>&nbsp;</td><td>
284
590
The decoder is ready to or is in the process of reading metadata. </td></tr>
285
 
<tr><td valign=top><em><a name="a36a10" doxytag="FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC"></a><em>FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC</em></em>&nbsp;</td><td>
 
591
<tr><td valign="top"><em><a class="anchor" name="gga50a18" doxytag="FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC"></a>FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC</em>&nbsp;</td><td>
286
592
The decoder is ready to or is in the process of searching for the frame sync code. </td></tr>
287
 
<tr><td valign=top><em><a name="a36a11" doxytag="FLAC__STREAM_DECODER_READ_FRAME"></a><em>FLAC__STREAM_DECODER_READ_FRAME</em></em>&nbsp;</td><td>
 
593
<tr><td valign="top"><em><a class="anchor" name="gga50a19" doxytag="FLAC__STREAM_DECODER_READ_FRAME"></a>FLAC__STREAM_DECODER_READ_FRAME</em>&nbsp;</td><td>
288
594
The decoder is ready to or is in the process of reading a frame. </td></tr>
289
 
<tr><td valign=top><em><a name="a36a12" doxytag="FLAC__STREAM_DECODER_END_OF_STREAM"></a><em>FLAC__STREAM_DECODER_END_OF_STREAM</em></em>&nbsp;</td><td>
 
595
<tr><td valign="top"><em><a class="anchor" name="gga50a20" doxytag="FLAC__STREAM_DECODER_END_OF_STREAM"></a>FLAC__STREAM_DECODER_END_OF_STREAM</em>&nbsp;</td><td>
290
596
The decoder has reached the end of the stream. </td></tr>
291
 
<tr><td valign=top><em><a name="a36a13" doxytag="FLAC__STREAM_DECODER_ABORTED"></a><em>FLAC__STREAM_DECODER_ABORTED</em></em>&nbsp;</td><td>
 
597
<tr><td valign="top"><em><a class="anchor" name="gga50a21" doxytag="FLAC__STREAM_DECODER_OGG_ERROR"></a>FLAC__STREAM_DECODER_OGG_ERROR</em>&nbsp;</td><td>
 
598
An error occurred in the underlying Ogg layer. </td></tr>
 
599
<tr><td valign="top"><em><a class="anchor" name="gga50a22" doxytag="FLAC__STREAM_DECODER_SEEK_ERROR"></a>FLAC__STREAM_DECODER_SEEK_ERROR</em>&nbsp;</td><td>
 
600
An error occurred while seeking. The decoder must be flushed with <a class="el" href="group__flac__stream__decoder.html#ga43">FLAC__stream_decoder_flush()</a> or reset with <a class="el" href="group__flac__stream__decoder.html#ga44">FLAC__stream_decoder_reset()</a> before decoding can continue. </td></tr>
 
601
<tr><td valign="top"><em><a class="anchor" name="gga50a23" doxytag="FLAC__STREAM_DECODER_ABORTED"></a>FLAC__STREAM_DECODER_ABORTED</em>&nbsp;</td><td>
292
602
The decoder was aborted by the read callback. </td></tr>
293
 
<tr><td valign=top><em><a name="a36a14" doxytag="FLAC__STREAM_DECODER_UNPARSEABLE_STREAM"></a><em>FLAC__STREAM_DECODER_UNPARSEABLE_STREAM</em></em>&nbsp;</td><td>
294
 
The decoder encountered reserved fields in use in the stream. </td></tr>
295
 
<tr><td valign=top><em><a name="a36a15" doxytag="FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR"></a><em>FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR</em></em>&nbsp;</td><td>
 
603
<tr><td valign="top"><em><a class="anchor" name="gga50a24" doxytag="FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR"></a>FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR</em>&nbsp;</td><td>
 
604
An error occurred allocating memory. The decoder is in an invalid state and can no longer be used. </td></tr>
 
605
<tr><td valign="top"><em><a class="anchor" name="gga50a25" doxytag="FLAC__STREAM_DECODER_UNINITIALIZED"></a>FLAC__STREAM_DECODER_UNINITIALIZED</em>&nbsp;</td><td>
 
606
The decoder is in the uninitialized state; one of the FLAC__stream_decoder_init_*() functions must be called before samples can be processed.</td></tr>
 
607
</table>
 
608
</dl>
 
609
    </td>
 
610
  </tr>
 
611
</table>
 
612
<a class="anchor" name="ga51" doxytag="stream_decoder.h::FLAC__StreamDecoderInitStatus"></a><p>
 
613
<table class="mdTable" cellpadding="2" cellspacing="0">
 
614
  <tr>
 
615
    <td class="mdRow">
 
616
      <table cellpadding="0" cellspacing="0" border="0">
 
617
        <tr>
 
618
          <td class="md" nowrap valign="top">enum <a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a>          </td>
 
619
        </tr>
 
620
      </table>
 
621
    </td>
 
622
  </tr>
 
623
</table>
 
624
<table cellspacing="5" cellpadding="0" border="0">
 
625
  <tr>
 
626
    <td>
 
627
      &nbsp;
 
628
    </td>
 
629
    <td>
 
630
 
 
631
<p>
 
632
Possible return values for the FLAC__stream_decoder_init_*() functions. <dl compact><dt><b>Enumeration values: </b></dt><dd>
 
633
<table border="0" cellspacing="2" cellpadding="0">
 
634
<tr><td valign="top"><em><a class="anchor" name="gga51a26" doxytag="FLAC__STREAM_DECODER_INIT_STATUS_OK"></a>FLAC__STREAM_DECODER_INIT_STATUS_OK</em>&nbsp;</td><td>
 
635
Initialization was successful. </td></tr>
 
636
<tr><td valign="top"><em><a class="anchor" name="gga51a27" doxytag="FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER"></a>FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER</em>&nbsp;</td><td>
 
637
The library was not compiled with support for the given container format. </td></tr>
 
638
<tr><td valign="top"><em><a class="anchor" name="gga51a28" doxytag="FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS"></a>FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS</em>&nbsp;</td><td>
 
639
A required callback was not supplied. </td></tr>
 
640
<tr><td valign="top"><em><a class="anchor" name="gga51a29" doxytag="FLAC__STREAM_DECODER_INIT_STATUS_MEMORY_ALLOCATION_ERROR"></a>FLAC__STREAM_DECODER_INIT_STATUS_MEMORY_ALLOCATION_ERROR</em>&nbsp;</td><td>
296
641
An error occurred allocating memory. </td></tr>
297
 
<tr><td valign=top><em><a name="a36a16" doxytag="FLAC__STREAM_DECODER_ALREADY_INITIALIZED"></a><em>FLAC__STREAM_DECODER_ALREADY_INITIALIZED</em></em>&nbsp;</td><td>
298
 
<a class="el" href="group__flac__stream__decoder.html#a28">FLAC__stream_decoder_init</a>() was called when the decoder was already initialized, usually because <a class="el" href="group__flac__stream__decoder.html#a29">FLAC__stream_decoder_finish</a>() was not called. </td></tr>
299
 
<tr><td valign=top><em><a name="a36a17" doxytag="FLAC__STREAM_DECODER_INVALID_CALLBACK"></a><em>FLAC__STREAM_DECODER_INVALID_CALLBACK</em></em>&nbsp;</td><td>
300
 
<a class="el" href="group__flac__stream__decoder.html#a28">FLAC__stream_decoder_init</a>() was called without all callbacks being set. </td></tr>
301
 
<tr><td valign=top><em><a name="a36a18" doxytag="FLAC__STREAM_DECODER_UNINITIALIZED"></a><em>FLAC__STREAM_DECODER_UNINITIALIZED</em></em>&nbsp;</td><td>
302
 
The decoder is in the uninitialized state. </td></tr>
 
642
<tr><td valign="top"><em><a class="anchor" name="gga51a30" doxytag="FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE"></a>FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE</em>&nbsp;</td><td>
 
643
fopen() failed in <a class="el" href="group__flac__stream__decoder.html#ga40">FLAC__stream_decoder_init_file()</a> or <a class="el" href="group__flac__stream__decoder.html#ga41">FLAC__stream_decoder_init_ogg_file()</a>. </td></tr>
 
644
<tr><td valign="top"><em><a class="anchor" name="gga51a31" doxytag="FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED"></a>FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED</em>&nbsp;</td><td>
 
645
FLAC__stream_decoder_init_*() was called when the decoder was already initialized, usually because <a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish()</a> was not called.</td></tr>
303
646
</table>
304
647
</dl>
305
648
    </td>
306
649
  </tr>
307
650
</table>
308
 
<a name="a37" doxytag="stream_decoder.h::FLAC__StreamDecoderReadStatus"></a><p>
309
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
651
<a class="anchor" name="ga52" doxytag="stream_decoder.h::FLAC__StreamDecoderReadStatus"></a><p>
 
652
<table class="mdTable" cellpadding="2" cellspacing="0">
310
653
  <tr>
311
 
    <td class="md">
 
654
    <td class="mdRow">
312
655
      <table cellpadding="0" cellspacing="0" border="0">
313
656
        <tr>
314
 
          <td class="md" nowrap valign="top"> enum FLAC__StreamDecoderReadStatus
 
657
          <td class="md" nowrap valign="top">enum <a class="el" href="group__flac__stream__decoder.html#ga52">FLAC__StreamDecoderReadStatus</a>          </td>
 
658
        </tr>
315
659
      </table>
316
660
    </td>
317
661
  </tr>
318
662
</table>
319
 
<table cellspacing=5 cellpadding=0 border=0>
 
663
<table cellspacing="5" cellpadding="0" border="0">
320
664
  <tr>
321
665
    <td>
322
666
      &nbsp;
324
668
    <td>
325
669
 
326
670
<p>
327
 
Return values for the <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> read callback. <dl compact><dt><b>
328
 
Enumeration values:</b><dd>
329
 
<table border=0 cellspacing=2 cellpadding=0>
330
 
<tr><td valign=top><em><a name="a37a19" doxytag="FLAC__STREAM_DECODER_READ_STATUS_CONTINUE"></a><em>FLAC__STREAM_DECODER_READ_STATUS_CONTINUE</em></em>&nbsp;</td><td>
 
671
Return values for the <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> read callback. <dl compact><dt><b>Enumeration values: </b></dt><dd>
 
672
<table border="0" cellspacing="2" cellpadding="0">
 
673
<tr><td valign="top"><em><a class="anchor" name="gga52a32" doxytag="FLAC__STREAM_DECODER_READ_STATUS_CONTINUE"></a>FLAC__STREAM_DECODER_READ_STATUS_CONTINUE</em>&nbsp;</td><td>
331
674
The read was OK and decoding can continue. </td></tr>
332
 
<tr><td valign=top><em><a name="a37a20" doxytag="FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM"></a><em>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</em></em>&nbsp;</td><td>
333
 
The read was attempted at the end of the stream. </td></tr>
334
 
<tr><td valign=top><em><a name="a37a21" doxytag="FLAC__STREAM_DECODER_READ_STATUS_ABORT"></a><em>FLAC__STREAM_DECODER_READ_STATUS_ABORT</em></em>&nbsp;</td><td>
335
 
An unrecoverable error occurred. The decoder will return from the process call. </td></tr>
336
 
</table>
337
 
</dl>
338
 
    </td>
339
 
  </tr>
340
 
</table>
341
 
<a name="a38" doxytag="stream_decoder.h::FLAC__StreamDecoderWriteStatus"></a><p>
342
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
343
 
  <tr>
344
 
    <td class="md">
345
 
      <table cellpadding="0" cellspacing="0" border="0">
346
 
        <tr>
347
 
          <td class="md" nowrap valign="top"> enum FLAC__StreamDecoderWriteStatus
348
 
      </table>
349
 
    </td>
350
 
  </tr>
351
 
</table>
352
 
<table cellspacing=5 cellpadding=0 border=0>
353
 
  <tr>
354
 
    <td>
355
 
      &nbsp;
356
 
    </td>
357
 
    <td>
358
 
 
359
 
<p>
360
 
Return values for the <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> write callback. <dl compact><dt><b>
361
 
Enumeration values:</b><dd>
362
 
<table border=0 cellspacing=2 cellpadding=0>
363
 
<tr><td valign=top><em><a name="a38a22" doxytag="FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE"></a><em>FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE</em></em>&nbsp;</td><td>
 
675
<tr><td valign="top"><em><a class="anchor" name="gga52a33" doxytag="FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM"></a>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</em>&nbsp;</td><td>
 
676
The read was attempted while at the end of the stream. Note that the client must only return this value when the read callback was called when already at the end of the stream. Otherwise, if the read itself moves to the end of the stream, the client should still return the data and <code>FLAC__STREAM_DECODER_READ_STATUS_CONTINUE</code>, and then on the next read callback it should return <code>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</code> with a byte count of <code>0</code>. </td></tr>
 
677
<tr><td valign="top"><em><a class="anchor" name="gga52a34" doxytag="FLAC__STREAM_DECODER_READ_STATUS_ABORT"></a>FLAC__STREAM_DECODER_READ_STATUS_ABORT</em>&nbsp;</td><td>
 
678
An unrecoverable error occurred. The decoder will return from the process call. </td></tr>
 
679
</table>
 
680
</dl>
 
681
    </td>
 
682
  </tr>
 
683
</table>
 
684
<a class="anchor" name="ga53" doxytag="stream_decoder.h::FLAC__StreamDecoderSeekStatus"></a><p>
 
685
<table class="mdTable" cellpadding="2" cellspacing="0">
 
686
  <tr>
 
687
    <td class="mdRow">
 
688
      <table cellpadding="0" cellspacing="0" border="0">
 
689
        <tr>
 
690
          <td class="md" nowrap valign="top">enum <a class="el" href="group__flac__stream__decoder.html#ga53">FLAC__StreamDecoderSeekStatus</a>          </td>
 
691
        </tr>
 
692
      </table>
 
693
    </td>
 
694
  </tr>
 
695
</table>
 
696
<table cellspacing="5" cellpadding="0" border="0">
 
697
  <tr>
 
698
    <td>
 
699
      &nbsp;
 
700
    </td>
 
701
    <td>
 
702
 
 
703
<p>
 
704
Return values for the <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> seek callback. <dl compact><dt><b>Enumeration values: </b></dt><dd>
 
705
<table border="0" cellspacing="2" cellpadding="0">
 
706
<tr><td valign="top"><em><a class="anchor" name="gga53a35" doxytag="FLAC__STREAM_DECODER_SEEK_STATUS_OK"></a>FLAC__STREAM_DECODER_SEEK_STATUS_OK</em>&nbsp;</td><td>
 
707
The seek was OK and decoding can continue. </td></tr>
 
708
<tr><td valign="top"><em><a class="anchor" name="gga53a36" doxytag="FLAC__STREAM_DECODER_SEEK_STATUS_ERROR"></a>FLAC__STREAM_DECODER_SEEK_STATUS_ERROR</em>&nbsp;</td><td>
 
709
An unrecoverable error occurred. The decoder will return from the process call. </td></tr>
 
710
<tr><td valign="top"><em><a class="anchor" name="gga53a37" doxytag="FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED"></a>FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED</em>&nbsp;</td><td>
 
711
Client does not support seeking. </td></tr>
 
712
</table>
 
713
</dl>
 
714
    </td>
 
715
  </tr>
 
716
</table>
 
717
<a class="anchor" name="ga54" doxytag="stream_decoder.h::FLAC__StreamDecoderTellStatus"></a><p>
 
718
<table class="mdTable" cellpadding="2" cellspacing="0">
 
719
  <tr>
 
720
    <td class="mdRow">
 
721
      <table cellpadding="0" cellspacing="0" border="0">
 
722
        <tr>
 
723
          <td class="md" nowrap valign="top">enum <a class="el" href="group__flac__stream__decoder.html#ga54">FLAC__StreamDecoderTellStatus</a>          </td>
 
724
        </tr>
 
725
      </table>
 
726
    </td>
 
727
  </tr>
 
728
</table>
 
729
<table cellspacing="5" cellpadding="0" border="0">
 
730
  <tr>
 
731
    <td>
 
732
      &nbsp;
 
733
    </td>
 
734
    <td>
 
735
 
 
736
<p>
 
737
Return values for the <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> tell callback. <dl compact><dt><b>Enumeration values: </b></dt><dd>
 
738
<table border="0" cellspacing="2" cellpadding="0">
 
739
<tr><td valign="top"><em><a class="anchor" name="gga54a38" doxytag="FLAC__STREAM_DECODER_TELL_STATUS_OK"></a>FLAC__STREAM_DECODER_TELL_STATUS_OK</em>&nbsp;</td><td>
 
740
The tell was OK and decoding can continue. </td></tr>
 
741
<tr><td valign="top"><em><a class="anchor" name="gga54a39" doxytag="FLAC__STREAM_DECODER_TELL_STATUS_ERROR"></a>FLAC__STREAM_DECODER_TELL_STATUS_ERROR</em>&nbsp;</td><td>
 
742
An unrecoverable error occurred. The decoder will return from the process call. </td></tr>
 
743
<tr><td valign="top"><em><a class="anchor" name="gga54a40" doxytag="FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED"></a>FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED</em>&nbsp;</td><td>
 
744
Client does not support telling the position. </td></tr>
 
745
</table>
 
746
</dl>
 
747
    </td>
 
748
  </tr>
 
749
</table>
 
750
<a class="anchor" name="ga55" doxytag="stream_decoder.h::FLAC__StreamDecoderLengthStatus"></a><p>
 
751
<table class="mdTable" cellpadding="2" cellspacing="0">
 
752
  <tr>
 
753
    <td class="mdRow">
 
754
      <table cellpadding="0" cellspacing="0" border="0">
 
755
        <tr>
 
756
          <td class="md" nowrap valign="top">enum <a class="el" href="group__flac__stream__decoder.html#ga55">FLAC__StreamDecoderLengthStatus</a>          </td>
 
757
        </tr>
 
758
      </table>
 
759
    </td>
 
760
  </tr>
 
761
</table>
 
762
<table cellspacing="5" cellpadding="0" border="0">
 
763
  <tr>
 
764
    <td>
 
765
      &nbsp;
 
766
    </td>
 
767
    <td>
 
768
 
 
769
<p>
 
770
Return values for the <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> length callback. <dl compact><dt><b>Enumeration values: </b></dt><dd>
 
771
<table border="0" cellspacing="2" cellpadding="0">
 
772
<tr><td valign="top"><em><a class="anchor" name="gga55a41" doxytag="FLAC__STREAM_DECODER_LENGTH_STATUS_OK"></a>FLAC__STREAM_DECODER_LENGTH_STATUS_OK</em>&nbsp;</td><td>
 
773
The length call was OK and decoding can continue. </td></tr>
 
774
<tr><td valign="top"><em><a class="anchor" name="gga55a42" doxytag="FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR"></a>FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR</em>&nbsp;</td><td>
 
775
An unrecoverable error occurred. The decoder will return from the process call. </td></tr>
 
776
<tr><td valign="top"><em><a class="anchor" name="gga55a43" doxytag="FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED"></a>FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED</em>&nbsp;</td><td>
 
777
Client does not support reporting the length. </td></tr>
 
778
</table>
 
779
</dl>
 
780
    </td>
 
781
  </tr>
 
782
</table>
 
783
<a class="anchor" name="ga56" doxytag="stream_decoder.h::FLAC__StreamDecoderWriteStatus"></a><p>
 
784
<table class="mdTable" cellpadding="2" cellspacing="0">
 
785
  <tr>
 
786
    <td class="mdRow">
 
787
      <table cellpadding="0" cellspacing="0" border="0">
 
788
        <tr>
 
789
          <td class="md" nowrap valign="top">enum <a class="el" href="group__flac__stream__decoder.html#ga56">FLAC__StreamDecoderWriteStatus</a>          </td>
 
790
        </tr>
 
791
      </table>
 
792
    </td>
 
793
  </tr>
 
794
</table>
 
795
<table cellspacing="5" cellpadding="0" border="0">
 
796
  <tr>
 
797
    <td>
 
798
      &nbsp;
 
799
    </td>
 
800
    <td>
 
801
 
 
802
<p>
 
803
Return values for the <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> write callback. <dl compact><dt><b>Enumeration values: </b></dt><dd>
 
804
<table border="0" cellspacing="2" cellpadding="0">
 
805
<tr><td valign="top"><em><a class="anchor" name="gga56a44" doxytag="FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE"></a>FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE</em>&nbsp;</td><td>
364
806
The write was OK and decoding can continue. </td></tr>
365
 
<tr><td valign=top><em><a name="a38a23" doxytag="FLAC__STREAM_DECODER_WRITE_STATUS_ABORT"></a><em>FLAC__STREAM_DECODER_WRITE_STATUS_ABORT</em></em>&nbsp;</td><td>
 
807
<tr><td valign="top"><em><a class="anchor" name="gga56a45" doxytag="FLAC__STREAM_DECODER_WRITE_STATUS_ABORT"></a>FLAC__STREAM_DECODER_WRITE_STATUS_ABORT</em>&nbsp;</td><td>
366
808
An unrecoverable error occurred. The decoder will return from the process call. </td></tr>
367
809
</table>
368
810
</dl>
369
811
    </td>
370
812
  </tr>
371
813
</table>
372
 
<a name="a39" doxytag="stream_decoder.h::FLAC__StreamDecoderErrorStatus"></a><p>
373
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
814
<a class="anchor" name="ga57" doxytag="stream_decoder.h::FLAC__StreamDecoderErrorStatus"></a><p>
 
815
<table class="mdTable" cellpadding="2" cellspacing="0">
374
816
  <tr>
375
 
    <td class="md">
 
817
    <td class="mdRow">
376
818
      <table cellpadding="0" cellspacing="0" border="0">
377
819
        <tr>
378
 
          <td class="md" nowrap valign="top"> enum FLAC__StreamDecoderErrorStatus
 
820
          <td class="md" nowrap valign="top">enum <a class="el" href="group__flac__stream__decoder.html#ga57">FLAC__StreamDecoderErrorStatus</a>          </td>
 
821
        </tr>
379
822
      </table>
380
823
    </td>
381
824
  </tr>
382
825
</table>
383
 
<table cellspacing=5 cellpadding=0 border=0>
 
826
<table cellspacing="5" cellpadding="0" border="0">
384
827
  <tr>
385
828
    <td>
386
829
      &nbsp;
388
831
    <td>
389
832
 
390
833
<p>
391
 
Possible values passed in to the <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> error callback. <dl compact><dt><b>
392
 
Enumeration values:</b><dd>
393
 
<table border=0 cellspacing=2 cellpadding=0>
394
 
<tr><td valign=top><em><a name="a39a24" doxytag="FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC"></a><em>FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC</em></em>&nbsp;</td><td>
 
834
Possible values passed back to the <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> error callback. <code>FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC</code> is the generic catch- all. The rest could be caused by bad sync (false synchronization on data that is not the start of a frame) or corrupted data. The error itself is the decoder's best guess at what happened assuming a correct sync. For example <code>FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER</code> could be caused by a correct sync on the start of a frame, but some data in the frame header was corrupted. Or it could be the result of syncing on a point the stream that looked like the starting of a frame but was not. <code>FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM</code> could be because the decoder encountered a valid frame made by a future version of the encoder which it cannot parse, or because of a false sync making it appear as though an encountered frame was generated by a future encoder. <dl compact><dt><b>Enumeration values: </b></dt><dd>
 
835
<table border="0" cellspacing="2" cellpadding="0">
 
836
<tr><td valign="top"><em><a class="anchor" name="gga57a46" doxytag="FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC"></a>FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC</em>&nbsp;</td><td>
395
837
An error in the stream caused the decoder to lose synchronization. </td></tr>
396
 
<tr><td valign=top><em><a name="a39a25" doxytag="FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER"></a><em>FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER</em></em>&nbsp;</td><td>
 
838
<tr><td valign="top"><em><a class="anchor" name="gga57a47" doxytag="FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER"></a>FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER</em>&nbsp;</td><td>
397
839
The decoder encountered a corrupted frame header. </td></tr>
398
 
<tr><td valign=top><em><a name="a39a26" doxytag="FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH"></a><em>FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH</em></em>&nbsp;</td><td>
 
840
<tr><td valign="top"><em><a class="anchor" name="gga57a48" doxytag="FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH"></a>FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH</em>&nbsp;</td><td>
399
841
The frame's data did not match the CRC in the footer. </td></tr>
 
842
<tr><td valign="top"><em><a class="anchor" name="gga57a49" doxytag="FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM"></a>FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM</em>&nbsp;</td><td>
 
843
The decoder encountered reserved fields in use in the stream. </td></tr>
400
844
</table>
401
845
</dl>
402
846
    </td>
403
847
  </tr>
404
848
</table>
405
849
<hr><h2>Function Documentation</h2>
406
 
<a name="a8" doxytag="stream_decoder.h::FLAC__stream_decoder_new"></a><p>
407
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
408
 
  <tr>
409
 
    <td class="md">
410
 
      <table cellpadding="0" cellspacing="0" border="0">
411
 
        <tr>
412
 
          <td class="md" nowrap valign="top"> <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a>* FLAC__stream_decoder_new </td>
413
 
          <td class="md" valign="top">(&nbsp;</td>
414
 
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
415
 
          <td class="md" valign="top">)&nbsp;</td>
416
 
          <td class="md" nowrap></td>
417
 
        </tr>
418
 
 
419
 
      </table>
420
 
    </td>
421
 
  </tr>
422
 
</table>
423
 
<table cellspacing=5 cellpadding=0 border=0>
424
 
  <tr>
425
 
    <td>
426
 
      &nbsp;
427
 
    </td>
428
 
    <td>
429
 
 
430
 
<p>
431
 
Create a new stream decoder instance. The instance is created with default settings; see the individual FLAC__stream_decoder_set_*() functions for each setting's default.<dl compact><dt><b>
432
 
Return values: </b><dd>
433
 
<table border=0 cellspacing=2 cellpadding=0>
434
 
<tr><td valign=top><em><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a></em>&nbsp;</td><td>
435
 
* <code>NULL</code> if there was an error allocating memory, else the new instance. </td></tr>
436
 
</table>
437
 
</dl>    </td>
438
 
  </tr>
439
 
</table>
440
 
<a name="a9" doxytag="stream_decoder.h::FLAC__stream_decoder_delete"></a><p>
441
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
442
 
  <tr>
443
 
    <td class="md">
444
 
      <table cellpadding="0" cellspacing="0" border="0">
445
 
        <tr>
446
 
          <td class="md" nowrap valign="top"> void FLAC__stream_decoder_delete </td>
447
 
          <td class="md" valign="top">(&nbsp;</td>
448
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
449
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
450
 
          <td class="md" valign="top">)&nbsp;</td>
451
 
          <td class="md" nowrap></td>
452
 
        </tr>
453
 
 
454
 
      </table>
455
 
    </td>
456
 
  </tr>
457
 
</table>
458
 
<table cellspacing=5 cellpadding=0 border=0>
459
 
  <tr>
460
 
    <td>
461
 
      &nbsp;
462
 
    </td>
463
 
    <td>
464
 
 
465
 
<p>
466
 
Free a decoder instance. Deletes the object pointed to by <em>decoder</em>.<dl compact><dt><b>
467
 
Parameters: </b><dd>
468
 
<table border=0 cellspacing=2 cellpadding=0>
469
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
470
 
A pointer to an existing decoder. </td></tr>
471
 
</table>
472
 
</dl><dl compact><dt><b>
473
 
Assertions:</b><dd>
474
 
 <div class="fragment"><pre>decoder != NULL 
475
 
</pre></div> </dl>    </td>
476
 
  </tr>
477
 
</table>
478
 
<a name="a10" doxytag="stream_decoder.h::FLAC__stream_decoder_set_read_callback"></a><p>
479
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
480
 
  <tr>
481
 
    <td class="md">
482
 
      <table cellpadding="0" cellspacing="0" border="0">
483
 
        <tr>
484
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_set_read_callback </td>
485
 
          <td class="md" valign="top">(&nbsp;</td>
486
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
487
 
          <td class="mdname" nowrap>&nbsp; <em>decoder</em>, </td>
488
 
        </tr>
489
 
        <tr>
490
 
          <td></td>
491
 
          <td></td>
492
 
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#a4">FLAC__StreamDecoderReadCallback</a>&nbsp;</td>
493
 
          <td class="mdname" nowrap>&nbsp; <em>value</em></td>
494
 
        </tr>
495
 
        <tr>
496
 
          <td></td>
497
 
          <td class="md">)&nbsp;</td>
498
 
          <td class="md" colspan="2"></td>
499
 
        </tr>
500
 
 
501
 
      </table>
502
 
    </td>
503
 
  </tr>
504
 
</table>
505
 
<table cellspacing=5 cellpadding=0 border=0>
506
 
  <tr>
507
 
    <td>
508
 
      &nbsp;
509
 
    </td>
510
 
    <td>
511
 
 
512
 
<p>
513
 
Set the read callback. The supplied function will be called when the decoder needs more input data. The address of the buffer to be filled is supplied, along with the number of bytes the buffer can hold. The callback may choose to supply less data and modify the byte count but must be careful not to overflow the buffer. The callback then returns a status code chosen from FLAC__StreamDecoderReadStatus.
514
 
<p>
515
 
<dl compact><dt><b>
516
 
Note: </b><dd>
517
 
 The callback is mandatory and must be set before initialization.</dl><dl compact><dt><b>
518
 
Default Value:</b><dd>
519
 
 <code>NULL</code> </dl><dl compact><dt><b>
520
 
Parameters: </b><dd>
521
 
<table border=0 cellspacing=2 cellpadding=0>
522
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
523
 
A decoder instance to set. </td></tr>
524
 
<tr><td valign=top><em>value</em>&nbsp;</td><td>
525
 
See above. </td></tr>
526
 
</table>
527
 
</dl><dl compact><dt><b>
528
 
Assertions:</b><dd>
529
 
 <div class="fragment"><pre>decoder != NULL 
530
 
</pre></div> <div class="fragment"><pre>value != NULL 
531
 
</pre></div> </dl><dl compact><dt><b>
532
 
Return values: </b><dd>
533
 
<table border=0 cellspacing=2 cellpadding=0>
534
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
535
 
<code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
536
 
</table>
537
 
</dl>    </td>
538
 
  </tr>
539
 
</table>
540
 
<a name="a11" doxytag="stream_decoder.h::FLAC__stream_decoder_set_write_callback"></a><p>
541
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
542
 
  <tr>
543
 
    <td class="md">
544
 
      <table cellpadding="0" cellspacing="0" border="0">
545
 
        <tr>
546
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_set_write_callback </td>
547
 
          <td class="md" valign="top">(&nbsp;</td>
548
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
549
 
          <td class="mdname" nowrap>&nbsp; <em>decoder</em>, </td>
550
 
        </tr>
551
 
        <tr>
552
 
          <td></td>
553
 
          <td></td>
554
 
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#a5">FLAC__StreamDecoderWriteCallback</a>&nbsp;</td>
555
 
          <td class="mdname" nowrap>&nbsp; <em>value</em></td>
556
 
        </tr>
557
 
        <tr>
558
 
          <td></td>
559
 
          <td class="md">)&nbsp;</td>
560
 
          <td class="md" colspan="2"></td>
561
 
        </tr>
562
 
 
563
 
      </table>
564
 
    </td>
565
 
  </tr>
566
 
</table>
567
 
<table cellspacing=5 cellpadding=0 border=0>
568
 
  <tr>
569
 
    <td>
570
 
      &nbsp;
571
 
    </td>
572
 
    <td>
573
 
 
574
 
<p>
575
 
Set the write callback. The supplied function will be called when the decoder has decoded a single frame of data. The decoder will pass the frame metadata as well as an array of pointers (one for each channel) pointing to the decoded audio.
576
 
<p>
577
 
<dl compact><dt><b>
578
 
Note: </b><dd>
579
 
 The callback is mandatory and must be set before initialization.</dl><dl compact><dt><b>
580
 
Default Value:</b><dd>
581
 
 <code>NULL</code> </dl><dl compact><dt><b>
582
 
Parameters: </b><dd>
583
 
<table border=0 cellspacing=2 cellpadding=0>
584
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
585
 
A decoder instance to set. </td></tr>
586
 
<tr><td valign=top><em>value</em>&nbsp;</td><td>
587
 
See above. </td></tr>
588
 
</table>
589
 
</dl><dl compact><dt><b>
590
 
Assertions:</b><dd>
591
 
 <div class="fragment"><pre>decoder != NULL 
592
 
</pre></div> <div class="fragment"><pre>value != NULL 
593
 
</pre></div> </dl><dl compact><dt><b>
594
 
Return values: </b><dd>
595
 
<table border=0 cellspacing=2 cellpadding=0>
596
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
597
 
<code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
598
 
</table>
599
 
</dl>    </td>
600
 
  </tr>
601
 
</table>
602
 
<a name="a12" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_callback"></a><p>
603
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
604
 
  <tr>
605
 
    <td class="md">
606
 
      <table cellpadding="0" cellspacing="0" border="0">
607
 
        <tr>
608
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_set_metadata_callback </td>
609
 
          <td class="md" valign="top">(&nbsp;</td>
610
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
611
 
          <td class="mdname" nowrap>&nbsp; <em>decoder</em>, </td>
612
 
        </tr>
613
 
        <tr>
614
 
          <td></td>
615
 
          <td></td>
616
 
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#a6">FLAC__StreamDecoderMetadataCallback</a>&nbsp;</td>
617
 
          <td class="mdname" nowrap>&nbsp; <em>value</em></td>
618
 
        </tr>
619
 
        <tr>
620
 
          <td></td>
621
 
          <td class="md">)&nbsp;</td>
622
 
          <td class="md" colspan="2"></td>
623
 
        </tr>
624
 
 
625
 
      </table>
626
 
    </td>
627
 
  </tr>
628
 
</table>
629
 
<table cellspacing=5 cellpadding=0 border=0>
630
 
  <tr>
631
 
    <td>
632
 
      &nbsp;
633
 
    </td>
634
 
    <td>
635
 
 
636
 
<p>
637
 
Set the metadata callback. The supplied function will be called when the decoder has decoded a metadata block. In a valid FLAC file there will always be one STREAMINFO block, followed by zero or more other metadata blocks. These will be supplied by the decoder in the same order as they appear in the stream and always before the first audio frame (i.e. write callback). The metadata block that is passed in must not be modified, and it doesn't live beyond the callback, so you should make a copy of it with <a class="el" href="group__flac__metadata__object.html#a1">FLAC__metadata_object_clone</a>() if you will need it elsewhere. Since metadata blocks can potentially be large, by default the decoder only calls the metadata callback for the STREAMINFO block; you can instruct the decoder to pass or filter other blocks with FLAC__stream_decoder_set_metadata_*() calls.
638
 
<p>
639
 
<dl compact><dt><b>
640
 
Note: </b><dd>
641
 
 The callback is mandatory and must be set before initialization.</dl><dl compact><dt><b>
642
 
Default Value:</b><dd>
643
 
 <code>NULL</code> </dl><dl compact><dt><b>
644
 
Parameters: </b><dd>
645
 
<table border=0 cellspacing=2 cellpadding=0>
646
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
647
 
A decoder instance to set. </td></tr>
648
 
<tr><td valign=top><em>value</em>&nbsp;</td><td>
649
 
See above. </td></tr>
650
 
</table>
651
 
</dl><dl compact><dt><b>
652
 
Assertions:</b><dd>
653
 
 <div class="fragment"><pre>decoder != NULL 
654
 
</pre></div> <div class="fragment"><pre>value != NULL 
655
 
</pre></div> </dl><dl compact><dt><b>
656
 
Return values: </b><dd>
657
 
<table border=0 cellspacing=2 cellpadding=0>
658
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
659
 
<code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
660
 
</table>
661
 
</dl>    </td>
662
 
  </tr>
663
 
</table>
664
 
<a name="a13" doxytag="stream_decoder.h::FLAC__stream_decoder_set_error_callback"></a><p>
665
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
666
 
  <tr>
667
 
    <td class="md">
668
 
      <table cellpadding="0" cellspacing="0" border="0">
669
 
        <tr>
670
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_set_error_callback </td>
671
 
          <td class="md" valign="top">(&nbsp;</td>
672
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
673
 
          <td class="mdname" nowrap>&nbsp; <em>decoder</em>, </td>
674
 
        </tr>
675
 
        <tr>
676
 
          <td></td>
677
 
          <td></td>
678
 
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#a7">FLAC__StreamDecoderErrorCallback</a>&nbsp;</td>
679
 
          <td class="mdname" nowrap>&nbsp; <em>value</em></td>
680
 
        </tr>
681
 
        <tr>
682
 
          <td></td>
683
 
          <td class="md">)&nbsp;</td>
684
 
          <td class="md" colspan="2"></td>
685
 
        </tr>
686
 
 
687
 
      </table>
688
 
    </td>
689
 
  </tr>
690
 
</table>
691
 
<table cellspacing=5 cellpadding=0 border=0>
692
 
  <tr>
693
 
    <td>
694
 
      &nbsp;
695
 
    </td>
696
 
    <td>
697
 
 
698
 
<p>
699
 
Set the error callback. The supplied function will be called whenever an error occurs during decoding.
700
 
<p>
701
 
<dl compact><dt><b>
702
 
Note: </b><dd>
703
 
 The callback is mandatory and must be set before initialization.</dl><dl compact><dt><b>
704
 
Default Value:</b><dd>
705
 
 <code>NULL</code> </dl><dl compact><dt><b>
706
 
Parameters: </b><dd>
707
 
<table border=0 cellspacing=2 cellpadding=0>
708
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
709
 
A decoder instance to set. </td></tr>
710
 
<tr><td valign=top><em>value</em>&nbsp;</td><td>
711
 
See above. </td></tr>
712
 
</table>
713
 
</dl><dl compact><dt><b>
714
 
Assertions:</b><dd>
715
 
 <div class="fragment"><pre>decoder != NULL 
716
 
</pre></div> <div class="fragment"><pre>value != NULL 
717
 
</pre></div> </dl><dl compact><dt><b>
718
 
Return values: </b><dd>
719
 
<table border=0 cellspacing=2 cellpadding=0>
720
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
721
 
<code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
722
 
</table>
723
 
</dl>    </td>
724
 
  </tr>
725
 
</table>
726
 
<a name="a14" doxytag="stream_decoder.h::FLAC__stream_decoder_set_client_data"></a><p>
727
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
728
 
  <tr>
729
 
    <td class="md">
730
 
      <table cellpadding="0" cellspacing="0" border="0">
731
 
        <tr>
732
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_set_client_data </td>
733
 
          <td class="md" valign="top">(&nbsp;</td>
734
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
735
 
          <td class="mdname" nowrap>&nbsp; <em>decoder</em>, </td>
736
 
        </tr>
737
 
        <tr>
738
 
          <td></td>
739
 
          <td></td>
740
 
          <td class="md" nowrap>void *&nbsp;</td>
741
 
          <td class="mdname" nowrap>&nbsp; <em>value</em></td>
742
 
        </tr>
743
 
        <tr>
744
 
          <td></td>
745
 
          <td class="md">)&nbsp;</td>
746
 
          <td class="md" colspan="2"></td>
747
 
        </tr>
748
 
 
749
 
      </table>
750
 
    </td>
751
 
  </tr>
752
 
</table>
753
 
<table cellspacing=5 cellpadding=0 border=0>
754
 
  <tr>
755
 
    <td>
756
 
      &nbsp;
757
 
    </td>
758
 
    <td>
759
 
 
760
 
<p>
761
 
Set the client data to be passed back to callbacks. This value will be supplied to callbacks in their <em>client_data</em> argument.<dl compact><dt><b>
762
 
Default Value:</b><dd>
763
 
 <code>NULL</code> </dl><dl compact><dt><b>
764
 
Parameters: </b><dd>
765
 
<table border=0 cellspacing=2 cellpadding=0>
766
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
767
 
A decoder instance to set. </td></tr>
768
 
<tr><td valign=top><em>value</em>&nbsp;</td><td>
769
 
See above. </td></tr>
770
 
</table>
771
 
</dl><dl compact><dt><b>
772
 
Assertions:</b><dd>
773
 
 <div class="fragment"><pre>decoder != NULL 
774
 
</pre></div> </dl><dl compact><dt><b>
775
 
Return values: </b><dd>
776
 
<table border=0 cellspacing=2 cellpadding=0>
777
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
778
 
<code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
779
 
</table>
780
 
</dl>    </td>
781
 
  </tr>
782
 
</table>
783
 
<a name="a15" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_respond"></a><p>
784
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
785
 
  <tr>
786
 
    <td class="md">
787
 
      <table cellpadding="0" cellspacing="0" border="0">
788
 
        <tr>
789
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_set_metadata_respond </td>
790
 
          <td class="md" valign="top">(&nbsp;</td>
791
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
792
 
          <td class="mdname" nowrap>&nbsp; <em>decoder</em>, </td>
793
 
        </tr>
794
 
        <tr>
795
 
          <td></td>
796
 
          <td></td>
797
 
          <td class="md" nowrap><a class="el" href="group__flac__format.html#a97">FLAC__MetadataType</a>&nbsp;</td>
798
 
          <td class="mdname" nowrap>&nbsp; <em>type</em></td>
799
 
        </tr>
800
 
        <tr>
801
 
          <td></td>
802
 
          <td class="md">)&nbsp;</td>
803
 
          <td class="md" colspan="2"></td>
804
 
        </tr>
805
 
 
806
 
      </table>
807
 
    </td>
808
 
  </tr>
809
 
</table>
810
 
<table cellspacing=5 cellpadding=0 border=0>
811
 
  <tr>
812
 
    <td>
813
 
      &nbsp;
814
 
    </td>
815
 
    <td>
816
 
 
817
 
<p>
818
 
Direct the decoder to pass on all metadata blocks of type <em>type</em>.<dl compact><dt><b>
819
 
Default Value:</b><dd>
820
 
 By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dl><dl compact><dt><b>
821
 
Parameters: </b><dd>
822
 
<table border=0 cellspacing=2 cellpadding=0>
823
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
824
 
A decoder instance to set. </td></tr>
825
 
<tr><td valign=top><em>type</em>&nbsp;</td><td>
826
 
See above. </td></tr>
827
 
</table>
828
 
</dl><dl compact><dt><b>
829
 
Assertions:</b><dd>
830
 
 <div class="fragment"><pre>decoder != NULL 
831
 
</pre></div> <em>type</em> is valid </dl><dl compact><dt><b>
832
 
Return values: </b><dd>
833
 
<table border=0 cellspacing=2 cellpadding=0>
834
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
835
 
<code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
836
 
</table>
837
 
</dl>    </td>
838
 
  </tr>
839
 
</table>
840
 
<a name="a16" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_respond_application"></a><p>
841
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
842
 
  <tr>
843
 
    <td class="md">
844
 
      <table cellpadding="0" cellspacing="0" border="0">
845
 
        <tr>
846
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_set_metadata_respond_application </td>
847
 
          <td class="md" valign="top">(&nbsp;</td>
848
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
849
 
          <td class="mdname" nowrap>&nbsp; <em>decoder</em>, </td>
850
 
        </tr>
851
 
        <tr>
852
 
          <td></td>
853
 
          <td></td>
854
 
          <td class="md" nowrap>const FLAC__byte&nbsp;</td>
855
 
          <td class="mdname" nowrap>&nbsp; <em>id</em>[4]</td>
856
 
        </tr>
857
 
        <tr>
858
 
          <td></td>
859
 
          <td class="md">)&nbsp;</td>
860
 
          <td class="md" colspan="2"></td>
861
 
        </tr>
862
 
 
863
 
      </table>
864
 
    </td>
865
 
  </tr>
866
 
</table>
867
 
<table cellspacing=5 cellpadding=0 border=0>
868
 
  <tr>
869
 
    <td>
870
 
      &nbsp;
871
 
    </td>
872
 
    <td>
873
 
 
874
 
<p>
875
 
Direct the decoder to pass on all APPLICATION metadata blocks of the given <em>id</em>.<dl compact><dt><b>
876
 
Default Value:</b><dd>
877
 
 By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dl><dl compact><dt><b>
878
 
Parameters: </b><dd>
879
 
<table border=0 cellspacing=2 cellpadding=0>
880
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
881
 
A decoder instance to set. </td></tr>
882
 
<tr><td valign=top><em>id</em>&nbsp;</td><td>
883
 
See above. </td></tr>
884
 
</table>
885
 
</dl><dl compact><dt><b>
886
 
Assertions:</b><dd>
887
 
 <div class="fragment"><pre>decoder != NULL 
888
 
</pre></div> <div class="fragment"><pre>id != NULL 
889
 
</pre></div> </dl><dl compact><dt><b>
890
 
Return values: </b><dd>
891
 
<table border=0 cellspacing=2 cellpadding=0>
892
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
893
 
<code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
894
 
</table>
895
 
</dl>    </td>
896
 
  </tr>
897
 
</table>
898
 
<a name="a17" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_respond_all"></a><p>
899
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
900
 
  <tr>
901
 
    <td class="md">
902
 
      <table cellpadding="0" cellspacing="0" border="0">
903
 
        <tr>
904
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_set_metadata_respond_all </td>
905
 
          <td class="md" valign="top">(&nbsp;</td>
906
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
907
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
908
 
          <td class="md" valign="top">)&nbsp;</td>
909
 
          <td class="md" nowrap></td>
910
 
        </tr>
911
 
 
912
 
      </table>
913
 
    </td>
914
 
  </tr>
915
 
</table>
916
 
<table cellspacing=5 cellpadding=0 border=0>
917
 
  <tr>
918
 
    <td>
919
 
      &nbsp;
920
 
    </td>
921
 
    <td>
922
 
 
923
 
<p>
924
 
Direct the decoder to pass on all metadata blocks of any type.<dl compact><dt><b>
925
 
Default Value:</b><dd>
926
 
 By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dl><dl compact><dt><b>
927
 
Parameters: </b><dd>
928
 
<table border=0 cellspacing=2 cellpadding=0>
929
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
930
 
A decoder instance to set. </td></tr>
931
 
</table>
932
 
</dl><dl compact><dt><b>
933
 
Assertions:</b><dd>
934
 
 <div class="fragment"><pre>decoder != NULL 
935
 
</pre></div> </dl><dl compact><dt><b>
936
 
Return values: </b><dd>
937
 
<table border=0 cellspacing=2 cellpadding=0>
938
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
939
 
<code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
940
 
</table>
941
 
</dl>    </td>
942
 
  </tr>
943
 
</table>
944
 
<a name="a18" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_ignore"></a><p>
945
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
946
 
  <tr>
947
 
    <td class="md">
948
 
      <table cellpadding="0" cellspacing="0" border="0">
949
 
        <tr>
950
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_set_metadata_ignore </td>
951
 
          <td class="md" valign="top">(&nbsp;</td>
952
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
953
 
          <td class="mdname" nowrap>&nbsp; <em>decoder</em>, </td>
954
 
        </tr>
955
 
        <tr>
956
 
          <td></td>
957
 
          <td></td>
958
 
          <td class="md" nowrap><a class="el" href="group__flac__format.html#a97">FLAC__MetadataType</a>&nbsp;</td>
959
 
          <td class="mdname" nowrap>&nbsp; <em>type</em></td>
960
 
        </tr>
961
 
        <tr>
962
 
          <td></td>
963
 
          <td class="md">)&nbsp;</td>
964
 
          <td class="md" colspan="2"></td>
965
 
        </tr>
966
 
 
967
 
      </table>
968
 
    </td>
969
 
  </tr>
970
 
</table>
971
 
<table cellspacing=5 cellpadding=0 border=0>
972
 
  <tr>
973
 
    <td>
974
 
      &nbsp;
975
 
    </td>
976
 
    <td>
977
 
 
978
 
<p>
979
 
Direct the decoder to filter out all metadata blocks of type <em>type</em>.<dl compact><dt><b>
980
 
Default Value:</b><dd>
981
 
 By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dl><dl compact><dt><b>
982
 
Parameters: </b><dd>
983
 
<table border=0 cellspacing=2 cellpadding=0>
984
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
985
 
A decoder instance to set. </td></tr>
986
 
<tr><td valign=top><em>type</em>&nbsp;</td><td>
987
 
See above. </td></tr>
988
 
</table>
989
 
</dl><dl compact><dt><b>
990
 
Assertions:</b><dd>
991
 
 <div class="fragment"><pre>decoder != NULL 
992
 
</pre></div> <em>type</em> is valid </dl><dl compact><dt><b>
993
 
Return values: </b><dd>
994
 
<table border=0 cellspacing=2 cellpadding=0>
995
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
996
 
<code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
997
 
</table>
998
 
</dl>    </td>
999
 
  </tr>
1000
 
</table>
1001
 
<a name="a19" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_ignore_application"></a><p>
1002
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1003
 
  <tr>
1004
 
    <td class="md">
1005
 
      <table cellpadding="0" cellspacing="0" border="0">
1006
 
        <tr>
1007
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_set_metadata_ignore_application </td>
1008
 
          <td class="md" valign="top">(&nbsp;</td>
1009
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1010
 
          <td class="mdname" nowrap>&nbsp; <em>decoder</em>, </td>
1011
 
        </tr>
1012
 
        <tr>
1013
 
          <td></td>
1014
 
          <td></td>
1015
 
          <td class="md" nowrap>const FLAC__byte&nbsp;</td>
1016
 
          <td class="mdname" nowrap>&nbsp; <em>id</em>[4]</td>
1017
 
        </tr>
1018
 
        <tr>
1019
 
          <td></td>
1020
 
          <td class="md">)&nbsp;</td>
1021
 
          <td class="md" colspan="2"></td>
1022
 
        </tr>
1023
 
 
1024
 
      </table>
1025
 
    </td>
1026
 
  </tr>
1027
 
</table>
1028
 
<table cellspacing=5 cellpadding=0 border=0>
1029
 
  <tr>
1030
 
    <td>
1031
 
      &nbsp;
1032
 
    </td>
1033
 
    <td>
1034
 
 
1035
 
<p>
1036
 
Direct the decoder to filter out all APPLICATION metadata blocks of the given <em>id</em>.<dl compact><dt><b>
1037
 
Default Value:</b><dd>
1038
 
 By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dl><dl compact><dt><b>
1039
 
Parameters: </b><dd>
1040
 
<table border=0 cellspacing=2 cellpadding=0>
1041
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1042
 
A decoder instance to set. </td></tr>
1043
 
<tr><td valign=top><em>id</em>&nbsp;</td><td>
1044
 
See above. </td></tr>
1045
 
</table>
1046
 
</dl><dl compact><dt><b>
1047
 
Assertions:</b><dd>
1048
 
 <div class="fragment"><pre>decoder != NULL 
1049
 
</pre></div> <div class="fragment"><pre>id != NULL 
1050
 
</pre></div> </dl><dl compact><dt><b>
1051
 
Return values: </b><dd>
1052
 
<table border=0 cellspacing=2 cellpadding=0>
1053
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
1054
 
<code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
1055
 
</table>
1056
 
</dl>    </td>
1057
 
  </tr>
1058
 
</table>
1059
 
<a name="a20" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_ignore_all"></a><p>
1060
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1061
 
  <tr>
1062
 
    <td class="md">
1063
 
      <table cellpadding="0" cellspacing="0" border="0">
1064
 
        <tr>
1065
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_set_metadata_ignore_all </td>
1066
 
          <td class="md" valign="top">(&nbsp;</td>
1067
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1068
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1069
 
          <td class="md" valign="top">)&nbsp;</td>
1070
 
          <td class="md" nowrap></td>
1071
 
        </tr>
1072
 
 
1073
 
      </table>
1074
 
    </td>
1075
 
  </tr>
1076
 
</table>
1077
 
<table cellspacing=5 cellpadding=0 border=0>
1078
 
  <tr>
1079
 
    <td>
1080
 
      &nbsp;
1081
 
    </td>
1082
 
    <td>
1083
 
 
1084
 
<p>
1085
 
Direct the decoder to filter out all metadata blocks of any type.<dl compact><dt><b>
1086
 
Default Value:</b><dd>
1087
 
 By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dl><dl compact><dt><b>
1088
 
Parameters: </b><dd>
1089
 
<table border=0 cellspacing=2 cellpadding=0>
1090
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1091
 
A decoder instance to set. </td></tr>
1092
 
</table>
1093
 
</dl><dl compact><dt><b>
1094
 
Assertions:</b><dd>
1095
 
 <div class="fragment"><pre>decoder != NULL 
1096
 
</pre></div> </dl><dl compact><dt><b>
1097
 
Return values: </b><dd>
1098
 
<table border=0 cellspacing=2 cellpadding=0>
1099
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
1100
 
<code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
1101
 
</table>
1102
 
</dl>    </td>
1103
 
  </tr>
1104
 
</table>
1105
 
<a name="a21" doxytag="stream_decoder.h::FLAC__stream_decoder_get_state"></a><p>
1106
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1107
 
  <tr>
1108
 
    <td class="md">
1109
 
      <table cellpadding="0" cellspacing="0" border="0">
1110
 
        <tr>
1111
 
          <td class="md" nowrap valign="top"> <a class="el" href="group__flac__stream__decoder.html#a36">FLAC__StreamDecoderState</a> FLAC__stream_decoder_get_state </td>
1112
 
          <td class="md" valign="top">(&nbsp;</td>
1113
 
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1114
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1115
 
          <td class="md" valign="top">)&nbsp;</td>
1116
 
          <td class="md" nowrap></td>
1117
 
        </tr>
1118
 
 
1119
 
      </table>
1120
 
    </td>
1121
 
  </tr>
1122
 
</table>
1123
 
<table cellspacing=5 cellpadding=0 border=0>
1124
 
  <tr>
1125
 
    <td>
1126
 
      &nbsp;
1127
 
    </td>
1128
 
    <td>
1129
 
 
1130
 
<p>
1131
 
Get the current decoder state.<dl compact><dt><b>
1132
 
Parameters: </b><dd>
1133
 
<table border=0 cellspacing=2 cellpadding=0>
1134
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1135
 
A decoder instance to query. </td></tr>
1136
 
</table>
1137
 
</dl><dl compact><dt><b>
1138
 
Assertions:</b><dd>
1139
 
 <div class="fragment"><pre>decoder != NULL 
1140
 
</pre></div> </dl><dl compact><dt><b>
1141
 
Return values: </b><dd>
1142
 
<table border=0 cellspacing=2 cellpadding=0>
1143
 
<tr><td valign=top><em>FLAC__StreamDecoderState</em>&nbsp;</td><td>
1144
 
The current decoder state. </td></tr>
1145
 
</table>
1146
 
</dl>    </td>
1147
 
  </tr>
1148
 
</table>
1149
 
<a name="a22" doxytag="stream_decoder.h::FLAC__stream_decoder_get_resolved_state_string"></a><p>
1150
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1151
 
  <tr>
1152
 
    <td class="md">
1153
 
      <table cellpadding="0" cellspacing="0" border="0">
1154
 
        <tr>
1155
 
          <td class="md" nowrap valign="top"> const char* FLAC__stream_decoder_get_resolved_state_string </td>
1156
 
          <td class="md" valign="top">(&nbsp;</td>
1157
 
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1158
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1159
 
          <td class="md" valign="top">)&nbsp;</td>
1160
 
          <td class="md" nowrap></td>
1161
 
        </tr>
1162
 
 
1163
 
      </table>
1164
 
    </td>
1165
 
  </tr>
1166
 
</table>
1167
 
<table cellspacing=5 cellpadding=0 border=0>
1168
 
  <tr>
1169
 
    <td>
1170
 
      &nbsp;
1171
 
    </td>
1172
 
    <td>
1173
 
 
1174
 
<p>
1175
 
Get the current decoder state as a C string.<dl compact><dt><b>
1176
 
Parameters: </b><dd>
1177
 
<table border=0 cellspacing=2 cellpadding=0>
1178
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1179
 
A decoder instance to query. </td></tr>
1180
 
</table>
1181
 
</dl><dl compact><dt><b>
1182
 
Assertions:</b><dd>
1183
 
 <div class="fragment"><pre>decoder != NULL 
1184
 
</pre></div> </dl><dl compact><dt><b>
1185
 
Return values: </b><dd>
1186
 
<table border=0 cellspacing=2 cellpadding=0>
1187
 
<tr><td valign=top><em>const</em>&nbsp;</td><td>
1188
 
char * The decoder state as a C string. Do not modify the contents. </td></tr>
1189
 
</table>
1190
 
</dl>    </td>
1191
 
  </tr>
1192
 
</table>
1193
 
<a name="a23" doxytag="stream_decoder.h::FLAC__stream_decoder_get_channels"></a><p>
1194
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1195
 
  <tr>
1196
 
    <td class="md">
1197
 
      <table cellpadding="0" cellspacing="0" border="0">
1198
 
        <tr>
1199
 
          <td class="md" nowrap valign="top"> unsigned FLAC__stream_decoder_get_channels </td>
1200
 
          <td class="md" valign="top">(&nbsp;</td>
1201
 
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1202
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1203
 
          <td class="md" valign="top">)&nbsp;</td>
1204
 
          <td class="md" nowrap></td>
1205
 
        </tr>
1206
 
 
1207
 
      </table>
1208
 
    </td>
1209
 
  </tr>
1210
 
</table>
1211
 
<table cellspacing=5 cellpadding=0 border=0>
1212
 
  <tr>
1213
 
    <td>
1214
 
      &nbsp;
1215
 
    </td>
1216
 
    <td>
1217
 
 
1218
 
<p>
1219
 
Get the current number of channels in the stream being decoded. Will only be valid after decoding has started and will contain the value from the most recently decoded frame header.<dl compact><dt><b>
1220
 
Parameters: </b><dd>
1221
 
<table border=0 cellspacing=2 cellpadding=0>
1222
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1223
 
A decoder instance to query. </td></tr>
1224
 
</table>
1225
 
</dl><dl compact><dt><b>
1226
 
Assertions:</b><dd>
1227
 
 <div class="fragment"><pre>decoder != NULL 
1228
 
</pre></div> </dl><dl compact><dt><b>
1229
 
Return values: </b><dd>
1230
 
<table border=0 cellspacing=2 cellpadding=0>
1231
 
<tr><td valign=top><em>unsigned</em>&nbsp;</td><td>
1232
 
See above. </td></tr>
1233
 
</table>
1234
 
</dl>    </td>
1235
 
  </tr>
1236
 
</table>
1237
 
<a name="a24" doxytag="stream_decoder.h::FLAC__stream_decoder_get_channel_assignment"></a><p>
1238
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1239
 
  <tr>
1240
 
    <td class="md">
1241
 
      <table cellpadding="0" cellspacing="0" border="0">
1242
 
        <tr>
1243
 
          <td class="md" nowrap valign="top"> <a class="el" href="group__flac__format.html#a95">FLAC__ChannelAssignment</a> FLAC__stream_decoder_get_channel_assignment </td>
1244
 
          <td class="md" valign="top">(&nbsp;</td>
1245
 
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1246
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1247
 
          <td class="md" valign="top">)&nbsp;</td>
1248
 
          <td class="md" nowrap></td>
1249
 
        </tr>
1250
 
 
1251
 
      </table>
1252
 
    </td>
1253
 
  </tr>
1254
 
</table>
1255
 
<table cellspacing=5 cellpadding=0 border=0>
1256
 
  <tr>
1257
 
    <td>
1258
 
      &nbsp;
1259
 
    </td>
1260
 
    <td>
1261
 
 
1262
 
<p>
1263
 
Get the current channel assignment in the stream being decoded. Will only be valid after decoding has started and will contain the value from the most recently decoded frame header.<dl compact><dt><b>
1264
 
Parameters: </b><dd>
1265
 
<table border=0 cellspacing=2 cellpadding=0>
1266
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1267
 
A decoder instance to query. </td></tr>
1268
 
</table>
1269
 
</dl><dl compact><dt><b>
1270
 
Assertions:</b><dd>
1271
 
 <div class="fragment"><pre>decoder != NULL 
1272
 
</pre></div> </dl><dl compact><dt><b>
1273
 
Return values: </b><dd>
1274
 
<table border=0 cellspacing=2 cellpadding=0>
1275
 
<tr><td valign=top><em>FLAC__ChannelAssignment</em>&nbsp;</td><td>
1276
 
See above. </td></tr>
1277
 
</table>
1278
 
</dl>    </td>
1279
 
  </tr>
1280
 
</table>
1281
 
<a name="a25" doxytag="stream_decoder.h::FLAC__stream_decoder_get_bits_per_sample"></a><p>
1282
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1283
 
  <tr>
1284
 
    <td class="md">
1285
 
      <table cellpadding="0" cellspacing="0" border="0">
1286
 
        <tr>
1287
 
          <td class="md" nowrap valign="top"> unsigned FLAC__stream_decoder_get_bits_per_sample </td>
1288
 
          <td class="md" valign="top">(&nbsp;</td>
1289
 
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1290
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1291
 
          <td class="md" valign="top">)&nbsp;</td>
1292
 
          <td class="md" nowrap></td>
1293
 
        </tr>
1294
 
 
1295
 
      </table>
1296
 
    </td>
1297
 
  </tr>
1298
 
</table>
1299
 
<table cellspacing=5 cellpadding=0 border=0>
1300
 
  <tr>
1301
 
    <td>
1302
 
      &nbsp;
1303
 
    </td>
1304
 
    <td>
1305
 
 
1306
 
<p>
1307
 
Get the current sample resolution in the stream being decoded. Will only be valid after decoding has started and will contain the value from the most recently decoded frame header.<dl compact><dt><b>
1308
 
Parameters: </b><dd>
1309
 
<table border=0 cellspacing=2 cellpadding=0>
1310
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1311
 
A decoder instance to query. </td></tr>
1312
 
</table>
1313
 
</dl><dl compact><dt><b>
1314
 
Assertions:</b><dd>
1315
 
 <div class="fragment"><pre>decoder != NULL 
1316
 
</pre></div> </dl><dl compact><dt><b>
1317
 
Return values: </b><dd>
1318
 
<table border=0 cellspacing=2 cellpadding=0>
1319
 
<tr><td valign=top><em>unsigned</em>&nbsp;</td><td>
1320
 
See above. </td></tr>
1321
 
</table>
1322
 
</dl>    </td>
1323
 
  </tr>
1324
 
</table>
1325
 
<a name="a26" doxytag="stream_decoder.h::FLAC__stream_decoder_get_sample_rate"></a><p>
1326
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1327
 
  <tr>
1328
 
    <td class="md">
1329
 
      <table cellpadding="0" cellspacing="0" border="0">
1330
 
        <tr>
1331
 
          <td class="md" nowrap valign="top"> unsigned FLAC__stream_decoder_get_sample_rate </td>
1332
 
          <td class="md" valign="top">(&nbsp;</td>
1333
 
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1334
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1335
 
          <td class="md" valign="top">)&nbsp;</td>
1336
 
          <td class="md" nowrap></td>
1337
 
        </tr>
1338
 
 
1339
 
      </table>
1340
 
    </td>
1341
 
  </tr>
1342
 
</table>
1343
 
<table cellspacing=5 cellpadding=0 border=0>
1344
 
  <tr>
1345
 
    <td>
1346
 
      &nbsp;
1347
 
    </td>
1348
 
    <td>
1349
 
 
1350
 
<p>
1351
 
Get the current sample rate in Hz of the stream being decoded. Will only be valid after decoding has started and will contain the value from the most recently decoded frame header.<dl compact><dt><b>
1352
 
Parameters: </b><dd>
1353
 
<table border=0 cellspacing=2 cellpadding=0>
1354
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1355
 
A decoder instance to query. </td></tr>
1356
 
</table>
1357
 
</dl><dl compact><dt><b>
1358
 
Assertions:</b><dd>
1359
 
 <div class="fragment"><pre>decoder != NULL 
1360
 
</pre></div> </dl><dl compact><dt><b>
1361
 
Return values: </b><dd>
1362
 
<table border=0 cellspacing=2 cellpadding=0>
1363
 
<tr><td valign=top><em>unsigned</em>&nbsp;</td><td>
1364
 
See above. </td></tr>
1365
 
</table>
1366
 
</dl>    </td>
1367
 
  </tr>
1368
 
</table>
1369
 
<a name="a27" doxytag="stream_decoder.h::FLAC__stream_decoder_get_blocksize"></a><p>
1370
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1371
 
  <tr>
1372
 
    <td class="md">
1373
 
      <table cellpadding="0" cellspacing="0" border="0">
1374
 
        <tr>
1375
 
          <td class="md" nowrap valign="top"> unsigned FLAC__stream_decoder_get_blocksize </td>
1376
 
          <td class="md" valign="top">(&nbsp;</td>
1377
 
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1378
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1379
 
          <td class="md" valign="top">)&nbsp;</td>
1380
 
          <td class="md" nowrap></td>
1381
 
        </tr>
1382
 
 
1383
 
      </table>
1384
 
    </td>
1385
 
  </tr>
1386
 
</table>
1387
 
<table cellspacing=5 cellpadding=0 border=0>
1388
 
  <tr>
1389
 
    <td>
1390
 
      &nbsp;
1391
 
    </td>
1392
 
    <td>
1393
 
 
1394
 
<p>
1395
 
Get the current blocksize of the stream being decoded. Will only be valid after decoding has started and will contain the value from the most recently decoded frame header.<dl compact><dt><b>
1396
 
Parameters: </b><dd>
1397
 
<table border=0 cellspacing=2 cellpadding=0>
1398
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1399
 
A decoder instance to query. </td></tr>
1400
 
</table>
1401
 
</dl><dl compact><dt><b>
1402
 
Assertions:</b><dd>
1403
 
 <div class="fragment"><pre>decoder != NULL 
1404
 
</pre></div> </dl><dl compact><dt><b>
1405
 
Return values: </b><dd>
1406
 
<table border=0 cellspacing=2 cellpadding=0>
1407
 
<tr><td valign=top><em>unsigned</em>&nbsp;</td><td>
1408
 
See above. </td></tr>
1409
 
</table>
1410
 
</dl>    </td>
1411
 
  </tr>
1412
 
</table>
1413
 
<a name="a28" doxytag="stream_decoder.h::FLAC__stream_decoder_init"></a><p>
1414
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1415
 
  <tr>
1416
 
    <td class="md">
1417
 
      <table cellpadding="0" cellspacing="0" border="0">
1418
 
        <tr>
1419
 
          <td class="md" nowrap valign="top"> <a class="el" href="group__flac__stream__decoder.html#a36">FLAC__StreamDecoderState</a> FLAC__stream_decoder_init </td>
1420
 
          <td class="md" valign="top">(&nbsp;</td>
1421
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1422
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1423
 
          <td class="md" valign="top">)&nbsp;</td>
1424
 
          <td class="md" nowrap></td>
1425
 
        </tr>
1426
 
 
1427
 
      </table>
1428
 
    </td>
1429
 
  </tr>
1430
 
</table>
1431
 
<table cellspacing=5 cellpadding=0 border=0>
1432
 
  <tr>
1433
 
    <td>
1434
 
      &nbsp;
1435
 
    </td>
1436
 
    <td>
1437
 
 
1438
 
<p>
1439
 
Initialize the decoder instance. Should be called after <a class="el" href="group__flac__stream__decoder.html#a8">FLAC__stream_decoder_new</a>() and FLAC__stream_decoder_set_*() but before any of the FLAC__stream_decoder_process_*() functions. Will set and return the decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA if initialization succeeded.<dl compact><dt><b>
1440
 
Parameters: </b><dd>
1441
 
<table border=0 cellspacing=2 cellpadding=0>
1442
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1443
 
An uninitialized decoder instance. </td></tr>
1444
 
</table>
1445
 
</dl><dl compact><dt><b>
1446
 
Assertions:</b><dd>
1447
 
 <div class="fragment"><pre>decoder != NULL 
1448
 
</pre></div> </dl><dl compact><dt><b>
1449
 
Return values: </b><dd>
1450
 
<table border=0 cellspacing=2 cellpadding=0>
1451
 
<tr><td valign=top><em>FLAC__StreamDecoderState</em>&nbsp;</td><td>
1452
 
<code>FLAC__STREAM_DECODER_SEARCH_FOR_METADATA</code> if initialization was successful; see FLAC__StreamDecoderState for the meanings of other return values. </td></tr>
1453
 
</table>
1454
 
</dl>    </td>
1455
 
  </tr>
1456
 
</table>
1457
 
<a name="a29" doxytag="stream_decoder.h::FLAC__stream_decoder_finish"></a><p>
1458
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1459
 
  <tr>
1460
 
    <td class="md">
1461
 
      <table cellpadding="0" cellspacing="0" border="0">
1462
 
        <tr>
1463
 
          <td class="md" nowrap valign="top"> void FLAC__stream_decoder_finish </td>
1464
 
          <td class="md" valign="top">(&nbsp;</td>
1465
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1466
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1467
 
          <td class="md" valign="top">)&nbsp;</td>
1468
 
          <td class="md" nowrap></td>
1469
 
        </tr>
1470
 
 
1471
 
      </table>
1472
 
    </td>
1473
 
  </tr>
1474
 
</table>
1475
 
<table cellspacing=5 cellpadding=0 border=0>
1476
 
  <tr>
1477
 
    <td>
1478
 
      &nbsp;
1479
 
    </td>
1480
 
    <td>
1481
 
 
1482
 
<p>
1483
 
Finish the decoding process. Flushes the decoding buffer, releases resources, resets the decoder settings to their defaults, and returns the decoder state to FLAC__STREAM_DECODER_UNINITIALIZED.
1484
 
<p>
1485
 
In the event of a prematurely-terminated decode, it is not strictly necessary to call this immediately before <a class="el" href="group__flac__stream__decoder.html#a9">FLAC__stream_decoder_delete</a>() but it is good practice to match every <a class="el" href="group__flac__stream__decoder.html#a28">FLAC__stream_decoder_init</a>() with a <a class="el" href="group__flac__stream__decoder.html#a29">FLAC__stream_decoder_finish</a>().<dl compact><dt><b>
1486
 
Parameters: </b><dd>
1487
 
<table border=0 cellspacing=2 cellpadding=0>
1488
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1489
 
An uninitialized decoder instance. </td></tr>
1490
 
</table>
1491
 
</dl><dl compact><dt><b>
1492
 
Assertions:</b><dd>
1493
 
 <div class="fragment"><pre>decoder != NULL 
1494
 
</pre></div> </dl>    </td>
1495
 
  </tr>
1496
 
</table>
1497
 
<a name="a30" doxytag="stream_decoder.h::FLAC__stream_decoder_flush"></a><p>
1498
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1499
 
  <tr>
1500
 
    <td class="md">
1501
 
      <table cellpadding="0" cellspacing="0" border="0">
1502
 
        <tr>
1503
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_flush </td>
1504
 
          <td class="md" valign="top">(&nbsp;</td>
1505
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1506
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1507
 
          <td class="md" valign="top">)&nbsp;</td>
1508
 
          <td class="md" nowrap></td>
1509
 
        </tr>
1510
 
 
1511
 
      </table>
1512
 
    </td>
1513
 
  </tr>
1514
 
</table>
1515
 
<table cellspacing=5 cellpadding=0 border=0>
1516
 
  <tr>
1517
 
    <td>
1518
 
      &nbsp;
1519
 
    </td>
1520
 
    <td>
1521
 
 
1522
 
<p>
1523
 
Flush the stream input. The decoder's input buffer will be cleared and the state set to <code>FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC</code>.<dl compact><dt><b>
1524
 
Parameters: </b><dd>
1525
 
<table border=0 cellspacing=2 cellpadding=0>
1526
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1527
 
A decoder instance. </td></tr>
1528
 
</table>
1529
 
</dl><dl compact><dt><b>
1530
 
Assertions:</b><dd>
1531
 
 <div class="fragment"><pre>decoder != NULL 
1532
 
</pre></div> </dl><dl compact><dt><b>
1533
 
Return values: </b><dd>
1534
 
<table border=0 cellspacing=2 cellpadding=0>
1535
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
1536
 
<code>true</code> if successful, else <code>false</code> if a memory allocation error occurs. </td></tr>
1537
 
</table>
1538
 
</dl>    </td>
1539
 
  </tr>
1540
 
</table>
1541
 
<a name="a31" doxytag="stream_decoder.h::FLAC__stream_decoder_reset"></a><p>
1542
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1543
 
  <tr>
1544
 
    <td class="md">
1545
 
      <table cellpadding="0" cellspacing="0" border="0">
1546
 
        <tr>
1547
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_reset </td>
1548
 
          <td class="md" valign="top">(&nbsp;</td>
1549
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1550
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1551
 
          <td class="md" valign="top">)&nbsp;</td>
1552
 
          <td class="md" nowrap></td>
1553
 
        </tr>
1554
 
 
1555
 
      </table>
1556
 
    </td>
1557
 
  </tr>
1558
 
</table>
1559
 
<table cellspacing=5 cellpadding=0 border=0>
1560
 
  <tr>
1561
 
    <td>
1562
 
      &nbsp;
1563
 
    </td>
1564
 
    <td>
1565
 
 
1566
 
<p>
1567
 
Reset the decoding process. The decoder's input buffer will be cleared and the state set to <code>FLAC__STREAM_DECODER_SEARCH_FOR_METADATA</code>. This is similar to <a class="el" href="group__flac__stream__decoder.html#a29">FLAC__stream_decoder_finish</a>() except that the settings are preserved; there is no need to call <a class="el" href="group__flac__stream__decoder.html#a28">FLAC__stream_decoder_init</a>() before decoding again.<dl compact><dt><b>
1568
 
Parameters: </b><dd>
1569
 
<table border=0 cellspacing=2 cellpadding=0>
1570
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1571
 
A decoder instance. </td></tr>
1572
 
</table>
1573
 
</dl><dl compact><dt><b>
1574
 
Assertions:</b><dd>
1575
 
 <div class="fragment"><pre>decoder != NULL 
1576
 
</pre></div> </dl><dl compact><dt><b>
1577
 
Return values: </b><dd>
1578
 
<table border=0 cellspacing=2 cellpadding=0>
1579
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
1580
 
<code>true</code> if successful, else <code>false</code> if a memory allocation error occurs. </td></tr>
1581
 
</table>
1582
 
</dl>    </td>
1583
 
  </tr>
1584
 
</table>
1585
 
<a name="a32" doxytag="stream_decoder.h::FLAC__stream_decoder_process_single"></a><p>
1586
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1587
 
  <tr>
1588
 
    <td class="md">
1589
 
      <table cellpadding="0" cellspacing="0" border="0">
1590
 
        <tr>
1591
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_process_single </td>
1592
 
          <td class="md" valign="top">(&nbsp;</td>
1593
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1594
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1595
 
          <td class="md" valign="top">)&nbsp;</td>
1596
 
          <td class="md" nowrap></td>
1597
 
        </tr>
1598
 
 
1599
 
      </table>
1600
 
    </td>
1601
 
  </tr>
1602
 
</table>
1603
 
<table cellspacing=5 cellpadding=0 border=0>
1604
 
  <tr>
1605
 
    <td>
1606
 
      &nbsp;
1607
 
    </td>
1608
 
    <td>
1609
 
 
1610
 
<p>
1611
 
Decode one metadata block or audio frame. This version instructs the decoder to decode a either a single metadata block or a single frame and stop, unless the callbacks return a fatal error or the read callback returns <code>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</code>.
1612
 
<p>
1613
 
As the decoder needs more input it will call the read callback. Depending on what was decoded, the metadata or write callback will be called with the decoded metadata block or audio frame, unless an error occurred. If the decoder loses sync it will call the error callback instead.
1614
 
<p>
1615
 
Unless there is a fatal read error or end of stream, this function will return once one whole frame is decoded. In other words, if the stream is not synchronized or points to a corrupt frame header, the decoder will continue to try and resync until it gets to a valid frame, then decode one frame, then return. If the decoder points to frame whose frame CRC in the frame footer does not match the computed frame CRC, this function will issue a FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH error to the error callback, and return, having decoded one complete, although corrupt, frame. (Such corrupted frames are sent as silence of the correct length to the write callback.)<dl compact><dt><b>
1616
 
Parameters: </b><dd>
1617
 
<table border=0 cellspacing=2 cellpadding=0>
1618
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1619
 
An initialized decoder instance. </td></tr>
1620
 
</table>
1621
 
</dl><dl compact><dt><b>
1622
 
Assertions:</b><dd>
1623
 
 <div class="fragment"><pre>decoder != NULL 
1624
 
</pre></div> </dl><dl compact><dt><b>
1625
 
Return values: </b><dd>
1626
 
<table border=0 cellspacing=2 cellpadding=0>
1627
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
1628
 
<code>false</code> if any read or write error occurred (except <code>FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC)</code>, else <code>true</code>; in any case, check the decoder state with <a class="el" href="group__flac__stream__decoder.html#a21">FLAC__stream_decoder_get_state</a>() to see what went wrong or to check for lost synchronization (a sign of stream corruption). </td></tr>
1629
 
</table>
1630
 
</dl>    </td>
1631
 
  </tr>
1632
 
</table>
1633
 
<a name="a33" doxytag="stream_decoder.h::FLAC__stream_decoder_process_until_end_of_metadata"></a><p>
1634
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1635
 
  <tr>
1636
 
    <td class="md">
1637
 
      <table cellpadding="0" cellspacing="0" border="0">
1638
 
        <tr>
1639
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_process_until_end_of_metadata </td>
1640
 
          <td class="md" valign="top">(&nbsp;</td>
1641
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1642
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1643
 
          <td class="md" valign="top">)&nbsp;</td>
1644
 
          <td class="md" nowrap></td>
1645
 
        </tr>
1646
 
 
1647
 
      </table>
1648
 
    </td>
1649
 
  </tr>
1650
 
</table>
1651
 
<table cellspacing=5 cellpadding=0 border=0>
1652
 
  <tr>
1653
 
    <td>
1654
 
      &nbsp;
1655
 
    </td>
1656
 
    <td>
1657
 
 
1658
 
<p>
1659
 
Decode until the end of the metadata. This version instructs the decoder to decode from the current position and continue until all the metadata has been read, or until the callbacks return a fatal error or the read callback returns <code>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</code>.
1660
 
<p>
1661
 
As the decoder needs more input it will call the read callback. As each metadata block is decoded, the metadata callback will be called with the decoded metadata. If the decoder loses sync it will call the error callback.<dl compact><dt><b>
1662
 
Parameters: </b><dd>
1663
 
<table border=0 cellspacing=2 cellpadding=0>
1664
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1665
 
An initialized decoder instance. </td></tr>
1666
 
</table>
1667
 
</dl><dl compact><dt><b>
1668
 
Assertions:</b><dd>
1669
 
 <div class="fragment"><pre>decoder != NULL 
1670
 
</pre></div> </dl><dl compact><dt><b>
1671
 
Return values: </b><dd>
1672
 
<table border=0 cellspacing=2 cellpadding=0>
1673
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
1674
 
<code>false</code> if any read or write error occurred (except <code>FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC)</code>, else <code>true</code>; in any case, check the decoder state with <a class="el" href="group__flac__stream__decoder.html#a21">FLAC__stream_decoder_get_state</a>() to see what went wrong or to check for lost synchronization (a sign of stream corruption). </td></tr>
1675
 
</table>
1676
 
</dl>    </td>
1677
 
  </tr>
1678
 
</table>
1679
 
<a name="a34" doxytag="stream_decoder.h::FLAC__stream_decoder_process_until_end_of_stream"></a><p>
1680
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1681
 
  <tr>
1682
 
    <td class="md">
1683
 
      <table cellpadding="0" cellspacing="0" border="0">
1684
 
        <tr>
1685
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_process_until_end_of_stream </td>
1686
 
          <td class="md" valign="top">(&nbsp;</td>
1687
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1688
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1689
 
          <td class="md" valign="top">)&nbsp;</td>
1690
 
          <td class="md" nowrap></td>
1691
 
        </tr>
1692
 
 
1693
 
      </table>
1694
 
    </td>
1695
 
  </tr>
1696
 
</table>
1697
 
<table cellspacing=5 cellpadding=0 border=0>
1698
 
  <tr>
1699
 
    <td>
1700
 
      &nbsp;
1701
 
    </td>
1702
 
    <td>
1703
 
 
1704
 
<p>
1705
 
Decode until the end of the stream. This version instructs the decoder to decode from the current position and continue until the end of stream (the read callback returns <code>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM)</code>, or until the callbacks return a fatal error.
1706
 
<p>
1707
 
As the decoder needs more input it will call the read callback. As each metadata block and frame is decoded, the metadata or write callback will be called with the decoded metadata or frame. If the decoder loses sync it will call the error callback.<dl compact><dt><b>
1708
 
Parameters: </b><dd>
1709
 
<table border=0 cellspacing=2 cellpadding=0>
1710
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1711
 
An initialized decoder instance. </td></tr>
1712
 
</table>
1713
 
</dl><dl compact><dt><b>
1714
 
Assertions:</b><dd>
1715
 
 <div class="fragment"><pre>decoder != NULL 
1716
 
</pre></div> </dl><dl compact><dt><b>
1717
 
Return values: </b><dd>
1718
 
<table border=0 cellspacing=2 cellpadding=0>
1719
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
1720
 
<code>false</code> if any read or write error occurred (except <code>FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC)</code>, else <code>true</code>; in any case, check the decoder state with <a class="el" href="group__flac__stream__decoder.html#a21">FLAC__stream_decoder_get_state</a>() to see what went wrong or to check for lost synchronization (a sign of stream corruption). </td></tr>
1721
 
</table>
1722
 
</dl>    </td>
1723
 
  </tr>
1724
 
</table>
1725
 
<a name="a35" doxytag="stream_decoder.h::FLAC__stream_decoder_skip_single_frame"></a><p>
1726
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1727
 
  <tr>
1728
 
    <td class="md">
1729
 
      <table cellpadding="0" cellspacing="0" border="0">
1730
 
        <tr>
1731
 
          <td class="md" nowrap valign="top"> FLAC__bool FLAC__stream_decoder_skip_single_frame </td>
1732
 
          <td class="md" valign="top">(&nbsp;</td>
1733
 
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
1734
 
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>decoder</em>          </td>
1735
 
          <td class="md" valign="top">)&nbsp;</td>
1736
 
          <td class="md" nowrap></td>
1737
 
        </tr>
1738
 
 
1739
 
      </table>
1740
 
    </td>
1741
 
  </tr>
1742
 
</table>
1743
 
<table cellspacing=5 cellpadding=0 border=0>
1744
 
  <tr>
1745
 
    <td>
1746
 
      &nbsp;
1747
 
    </td>
1748
 
    <td>
1749
 
 
1750
 
<p>
1751
 
Skip one audio frame. This version instructs the decoder to 'skip' a single frame and stop, unless the callbacks return a fatal error or the read callback returns <code>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</code>.
1752
 
<p>
1753
 
The decoding flow is the same as what occurs when <a class="el" href="group__flac__stream__decoder.html#a32">FLAC__stream_decoder_process_single</a>() is called to process an audio frame, except that this function does not decode the parsed data into PCM or call the write callback. The integrity of the frame is still checked the same way as in the other process functions.
1754
 
<p>
1755
 
This function will return once one whole frame is skipped, in the same way that <a class="el" href="group__flac__stream__decoder.html#a32">FLAC__stream_decoder_process_single</a>() will return once one whole frame is decoded.
1756
 
<p>
1757
 
This function, when used from the higher <a class="el" href="structFLAC____SeekableStreamDecoder.html">FLAC__SeekableStreamDecoder</a> layer, can be used in more quickly determining FLAC frame boundaries when decoding of the actual data is not needed, for example when an application is separating a FLAC stream into frames for editing or storing in a container. To do this, the application can use <a class="el" href="group__flac__seekable__stream__decoder.html#a48">FLAC__seekable_stream_decoder_skip_single_frame</a>() to quickly advance to the next frame, then use <a class="el" href="group__flac__seekable__stream__decoder.html#a40">FLAC__seekable_stream_decoder_get_decode_position</a>() to find the new frame boundary.
1758
 
<p>
1759
 
This function should only be called when the stream has advanced past all the metadata, otherwise it will return <code>false</code>.<dl compact><dt><b>
1760
 
Parameters: </b><dd>
1761
 
<table border=0 cellspacing=2 cellpadding=0>
1762
 
<tr><td valign=top><em>decoder</em>&nbsp;</td><td>
1763
 
An initialized decoder instance not in a metadata state. </td></tr>
1764
 
</table>
1765
 
</dl><dl compact><dt><b>
1766
 
Assertions:</b><dd>
1767
 
 <div class="fragment"><pre>decoder != NULL 
1768
 
</pre></div> </dl><dl compact><dt><b>
1769
 
Return values: </b><dd>
1770
 
<table border=0 cellspacing=2 cellpadding=0>
1771
 
<tr><td valign=top><em>FLAC__bool</em>&nbsp;</td><td>
1772
 
<code>false</code> if any read or write error occurred (except <code>FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC)</code>, or if the decoder is in the FLAC__STREAM_DECODER_SEARCH_FOR_METADATA or FLAC__STREAM_DECODER_READ_METADATA state, else <code>true</code>; in any case, check the decoder state with <a class="el" href="group__flac__stream__decoder.html#a21">FLAC__stream_decoder_get_state</a>() to see what went wrong or to check for lost synchronization (a sign of stream corruption). </td></tr>
1773
 
</table>
1774
 
</dl>    </td>
 
850
<a class="anchor" name="ga16" doxytag="stream_decoder.h::FLAC__stream_decoder_new"></a><p>
 
851
<table class="mdTable" cellpadding="2" cellspacing="0">
 
852
  <tr>
 
853
    <td class="mdRow">
 
854
      <table cellpadding="0" cellspacing="0" border="0">
 
855
        <tr>
 
856
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a>* FLAC__stream_decoder_new           </td>
 
857
          <td class="md" valign="top">(&nbsp;</td>
 
858
          <td class="md" nowrap valign="top">void&nbsp;</td>
 
859
          <td class="mdname1" valign="top" nowrap>          </td>
 
860
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
861
          <td class="md" nowrap></td>
 
862
        </tr>
 
863
      </table>
 
864
    </td>
 
865
  </tr>
 
866
</table>
 
867
<table cellspacing="5" cellpadding="0" border="0">
 
868
  <tr>
 
869
    <td>
 
870
      &nbsp;
 
871
    </td>
 
872
    <td>
 
873
 
 
874
<p>
 
875
Create a new stream decoder instance. The instance is created with default settings; see the individual FLAC__stream_decoder_set_*() functions for each setting's default.<p>
 
876
<dl compact><dt><b>Return values:</b></dt><dd>
 
877
  <table border="0" cellspacing="2" cellpadding="0">
 
878
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoder*</em>&nbsp;</td><td><code>NULL</code> if there was an error allocating memory, else the new instance. </td></tr>
 
879
  </table>
 
880
</dl>
 
881
    </td>
 
882
  </tr>
 
883
</table>
 
884
<a class="anchor" name="ga17" doxytag="stream_decoder.h::FLAC__stream_decoder_delete"></a><p>
 
885
<table class="mdTable" cellpadding="2" cellspacing="0">
 
886
  <tr>
 
887
    <td class="mdRow">
 
888
      <table cellpadding="0" cellspacing="0" border="0">
 
889
        <tr>
 
890
          <td class="md" nowrap valign="top">void FLAC__stream_decoder_delete           </td>
 
891
          <td class="md" valign="top">(&nbsp;</td>
 
892
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
893
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
894
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
895
          <td class="md" nowrap></td>
 
896
        </tr>
 
897
      </table>
 
898
    </td>
 
899
  </tr>
 
900
</table>
 
901
<table cellspacing="5" cellpadding="0" border="0">
 
902
  <tr>
 
903
    <td>
 
904
      &nbsp;
 
905
    </td>
 
906
    <td>
 
907
 
 
908
<p>
 
909
Free a decoder instance. Deletes the object pointed to by <em>decoder</em>.<p>
 
910
<dl compact><dt><b>Parameters:</b></dt><dd>
 
911
  <table border="0" cellspacing="2" cellpadding="0">
 
912
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A pointer to an existing decoder. </td></tr>
 
913
  </table>
 
914
</dl>
 
915
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
916
</pre></div> </dd></dl>
 
917
    </td>
 
918
  </tr>
 
919
</table>
 
920
<a class="anchor" name="ga18" doxytag="stream_decoder.h::FLAC__stream_decoder_set_ogg_serial_number"></a><p>
 
921
<table class="mdTable" cellpadding="2" cellspacing="0">
 
922
  <tr>
 
923
    <td class="mdRow">
 
924
      <table cellpadding="0" cellspacing="0" border="0">
 
925
        <tr>
 
926
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_set_ogg_serial_number           </td>
 
927
          <td class="md" valign="top">(&nbsp;</td>
 
928
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
929
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
930
        </tr>
 
931
        <tr>
 
932
          <td class="md" nowrap align="right"></td>
 
933
          <td class="md"></td>
 
934
          <td class="md" nowrap>long&nbsp;</td>
 
935
          <td class="mdname" nowrap> <em>serial_number</em></td>
 
936
        </tr>
 
937
        <tr>
 
938
          <td class="md"></td>
 
939
          <td class="md">)&nbsp;</td>
 
940
          <td class="md" colspan="2"></td>
 
941
        </tr>
 
942
      </table>
 
943
    </td>
 
944
  </tr>
 
945
</table>
 
946
<table cellspacing="5" cellpadding="0" border="0">
 
947
  <tr>
 
948
    <td>
 
949
      &nbsp;
 
950
    </td>
 
951
    <td>
 
952
 
 
953
<p>
 
954
Set the serial number for the FLAC stream within the Ogg container. The default behavior is to use the serial number of the first Ogg page. Setting a serial number here will explicitly specify which stream is to be decoded.<p>
 
955
<dl compact><dt><b>Note:</b></dt><dd>This does not need to be set for native FLAC decoding.</dd></dl>
 
956
<dl compact><dt><b>Default Value:</b></dt><dd><code>use</code> serial number of first page </dd></dl>
 
957
<dl compact><dt><b>Parameters:</b></dt><dd>
 
958
  <table border="0" cellspacing="2" cellpadding="0">
 
959
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to set. </td></tr>
 
960
    <tr><td valign="top"></td><td valign="top"><em>serial_number</em>&nbsp;</td><td>See above. </td></tr>
 
961
  </table>
 
962
</dl>
 
963
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
964
</pre></div> </dd></dl>
 
965
<dl compact><dt><b>Return values:</b></dt><dd>
 
966
  <table border="0" cellspacing="2" cellpadding="0">
 
967
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
 
968
  </table>
 
969
</dl>
 
970
    </td>
 
971
  </tr>
 
972
</table>
 
973
<a class="anchor" name="ga19" doxytag="stream_decoder.h::FLAC__stream_decoder_set_md5_checking"></a><p>
 
974
<table class="mdTable" cellpadding="2" cellspacing="0">
 
975
  <tr>
 
976
    <td class="mdRow">
 
977
      <table cellpadding="0" cellspacing="0" border="0">
 
978
        <tr>
 
979
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_set_md5_checking           </td>
 
980
          <td class="md" valign="top">(&nbsp;</td>
 
981
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
982
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
983
        </tr>
 
984
        <tr>
 
985
          <td class="md" nowrap align="right"></td>
 
986
          <td class="md"></td>
 
987
          <td class="md" nowrap>FLAC__bool&nbsp;</td>
 
988
          <td class="mdname" nowrap> <em>value</em></td>
 
989
        </tr>
 
990
        <tr>
 
991
          <td class="md"></td>
 
992
          <td class="md">)&nbsp;</td>
 
993
          <td class="md" colspan="2"></td>
 
994
        </tr>
 
995
      </table>
 
996
    </td>
 
997
  </tr>
 
998
</table>
 
999
<table cellspacing="5" cellpadding="0" border="0">
 
1000
  <tr>
 
1001
    <td>
 
1002
      &nbsp;
 
1003
    </td>
 
1004
    <td>
 
1005
 
 
1006
<p>
 
1007
Set the "MD5 signature checking" flag. If <code>true</code>, the decoder will compute the MD5 signature of the unencoded audio data while decoding and compare it to the signature from the STREAMINFO block, if it exists, during <a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish()</a>.<p>
 
1008
MD5 signature checking will be turned off (until the next <a class="el" href="group__flac__stream__decoder.html#ga44">FLAC__stream_decoder_reset()</a>) if there is no signature in the STREAMINFO block or when a seek is attempted.<p>
 
1009
Clients that do not use the MD5 check should leave this off to speed up decoding.<p>
 
1010
<dl compact><dt><b>Default Value:</b></dt><dd><code>false</code> </dd></dl>
 
1011
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1012
  <table border="0" cellspacing="2" cellpadding="0">
 
1013
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to set. </td></tr>
 
1014
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>Flag value (see above). </td></tr>
 
1015
  </table>
 
1016
</dl>
 
1017
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1018
</pre></div> </dd></dl>
 
1019
<dl compact><dt><b>Return values:</b></dt><dd>
 
1020
  <table border="0" cellspacing="2" cellpadding="0">
 
1021
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
 
1022
  </table>
 
1023
</dl>
 
1024
    </td>
 
1025
  </tr>
 
1026
</table>
 
1027
<a class="anchor" name="ga20" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_respond"></a><p>
 
1028
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1029
  <tr>
 
1030
    <td class="mdRow">
 
1031
      <table cellpadding="0" cellspacing="0" border="0">
 
1032
        <tr>
 
1033
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_set_metadata_respond           </td>
 
1034
          <td class="md" valign="top">(&nbsp;</td>
 
1035
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1036
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
1037
        </tr>
 
1038
        <tr>
 
1039
          <td class="md" nowrap align="right"></td>
 
1040
          <td class="md"></td>
 
1041
          <td class="md" nowrap><a class="el" href="group__flac__format.html#ga109">FLAC__MetadataType</a>&nbsp;</td>
 
1042
          <td class="mdname" nowrap> <em>type</em></td>
 
1043
        </tr>
 
1044
        <tr>
 
1045
          <td class="md"></td>
 
1046
          <td class="md">)&nbsp;</td>
 
1047
          <td class="md" colspan="2"></td>
 
1048
        </tr>
 
1049
      </table>
 
1050
    </td>
 
1051
  </tr>
 
1052
</table>
 
1053
<table cellspacing="5" cellpadding="0" border="0">
 
1054
  <tr>
 
1055
    <td>
 
1056
      &nbsp;
 
1057
    </td>
 
1058
    <td>
 
1059
 
 
1060
<p>
 
1061
Direct the decoder to pass on all metadata blocks of type <em>type</em>.<p>
 
1062
<dl compact><dt><b>Default Value:</b></dt><dd>By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dd></dl>
 
1063
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1064
  <table border="0" cellspacing="2" cellpadding="0">
 
1065
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to set. </td></tr>
 
1066
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>See above. </td></tr>
 
1067
  </table>
 
1068
</dl>
 
1069
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1070
</pre></div> <em>type</em> is valid </dd></dl>
 
1071
<dl compact><dt><b>Return values:</b></dt><dd>
 
1072
  <table border="0" cellspacing="2" cellpadding="0">
 
1073
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
 
1074
  </table>
 
1075
</dl>
 
1076
    </td>
 
1077
  </tr>
 
1078
</table>
 
1079
<a class="anchor" name="ga21" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_respond_application"></a><p>
 
1080
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1081
  <tr>
 
1082
    <td class="mdRow">
 
1083
      <table cellpadding="0" cellspacing="0" border="0">
 
1084
        <tr>
 
1085
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_set_metadata_respond_application           </td>
 
1086
          <td class="md" valign="top">(&nbsp;</td>
 
1087
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1088
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
1089
        </tr>
 
1090
        <tr>
 
1091
          <td class="md" nowrap align="right"></td>
 
1092
          <td class="md"></td>
 
1093
          <td class="md" nowrap>const FLAC__byte&nbsp;</td>
 
1094
          <td class="mdname" nowrap> <em>id</em>[4]</td>
 
1095
        </tr>
 
1096
        <tr>
 
1097
          <td class="md"></td>
 
1098
          <td class="md">)&nbsp;</td>
 
1099
          <td class="md" colspan="2"></td>
 
1100
        </tr>
 
1101
      </table>
 
1102
    </td>
 
1103
  </tr>
 
1104
</table>
 
1105
<table cellspacing="5" cellpadding="0" border="0">
 
1106
  <tr>
 
1107
    <td>
 
1108
      &nbsp;
 
1109
    </td>
 
1110
    <td>
 
1111
 
 
1112
<p>
 
1113
Direct the decoder to pass on all APPLICATION metadata blocks of the given <em>id</em>.<p>
 
1114
<dl compact><dt><b>Default Value:</b></dt><dd>By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dd></dl>
 
1115
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1116
  <table border="0" cellspacing="2" cellpadding="0">
 
1117
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to set. </td></tr>
 
1118
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>See above. </td></tr>
 
1119
  </table>
 
1120
</dl>
 
1121
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1122
</pre></div> <div class="fragment"><pre class="fragment"> <span class="keywordtype">id</span> != NULL 
 
1123
</pre></div> </dd></dl>
 
1124
<dl compact><dt><b>Return values:</b></dt><dd>
 
1125
  <table border="0" cellspacing="2" cellpadding="0">
 
1126
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
 
1127
  </table>
 
1128
</dl>
 
1129
    </td>
 
1130
  </tr>
 
1131
</table>
 
1132
<a class="anchor" name="ga22" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_respond_all"></a><p>
 
1133
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1134
  <tr>
 
1135
    <td class="mdRow">
 
1136
      <table cellpadding="0" cellspacing="0" border="0">
 
1137
        <tr>
 
1138
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_set_metadata_respond_all           </td>
 
1139
          <td class="md" valign="top">(&nbsp;</td>
 
1140
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1141
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
1142
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
1143
          <td class="md" nowrap></td>
 
1144
        </tr>
 
1145
      </table>
 
1146
    </td>
 
1147
  </tr>
 
1148
</table>
 
1149
<table cellspacing="5" cellpadding="0" border="0">
 
1150
  <tr>
 
1151
    <td>
 
1152
      &nbsp;
 
1153
    </td>
 
1154
    <td>
 
1155
 
 
1156
<p>
 
1157
Direct the decoder to pass on all metadata blocks of any type.<p>
 
1158
<dl compact><dt><b>Default Value:</b></dt><dd>By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dd></dl>
 
1159
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1160
  <table border="0" cellspacing="2" cellpadding="0">
 
1161
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to set. </td></tr>
 
1162
  </table>
 
1163
</dl>
 
1164
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1165
</pre></div> </dd></dl>
 
1166
<dl compact><dt><b>Return values:</b></dt><dd>
 
1167
  <table border="0" cellspacing="2" cellpadding="0">
 
1168
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
 
1169
  </table>
 
1170
</dl>
 
1171
    </td>
 
1172
  </tr>
 
1173
</table>
 
1174
<a class="anchor" name="ga23" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_ignore"></a><p>
 
1175
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1176
  <tr>
 
1177
    <td class="mdRow">
 
1178
      <table cellpadding="0" cellspacing="0" border="0">
 
1179
        <tr>
 
1180
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_set_metadata_ignore           </td>
 
1181
          <td class="md" valign="top">(&nbsp;</td>
 
1182
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1183
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
1184
        </tr>
 
1185
        <tr>
 
1186
          <td class="md" nowrap align="right"></td>
 
1187
          <td class="md"></td>
 
1188
          <td class="md" nowrap><a class="el" href="group__flac__format.html#ga109">FLAC__MetadataType</a>&nbsp;</td>
 
1189
          <td class="mdname" nowrap> <em>type</em></td>
 
1190
        </tr>
 
1191
        <tr>
 
1192
          <td class="md"></td>
 
1193
          <td class="md">)&nbsp;</td>
 
1194
          <td class="md" colspan="2"></td>
 
1195
        </tr>
 
1196
      </table>
 
1197
    </td>
 
1198
  </tr>
 
1199
</table>
 
1200
<table cellspacing="5" cellpadding="0" border="0">
 
1201
  <tr>
 
1202
    <td>
 
1203
      &nbsp;
 
1204
    </td>
 
1205
    <td>
 
1206
 
 
1207
<p>
 
1208
Direct the decoder to filter out all metadata blocks of type <em>type</em>.<p>
 
1209
<dl compact><dt><b>Default Value:</b></dt><dd>By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dd></dl>
 
1210
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1211
  <table border="0" cellspacing="2" cellpadding="0">
 
1212
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to set. </td></tr>
 
1213
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>See above. </td></tr>
 
1214
  </table>
 
1215
</dl>
 
1216
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1217
</pre></div> <em>type</em> is valid </dd></dl>
 
1218
<dl compact><dt><b>Return values:</b></dt><dd>
 
1219
  <table border="0" cellspacing="2" cellpadding="0">
 
1220
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
 
1221
  </table>
 
1222
</dl>
 
1223
    </td>
 
1224
  </tr>
 
1225
</table>
 
1226
<a class="anchor" name="ga24" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_ignore_application"></a><p>
 
1227
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1228
  <tr>
 
1229
    <td class="mdRow">
 
1230
      <table cellpadding="0" cellspacing="0" border="0">
 
1231
        <tr>
 
1232
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_set_metadata_ignore_application           </td>
 
1233
          <td class="md" valign="top">(&nbsp;</td>
 
1234
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1235
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
1236
        </tr>
 
1237
        <tr>
 
1238
          <td class="md" nowrap align="right"></td>
 
1239
          <td class="md"></td>
 
1240
          <td class="md" nowrap>const FLAC__byte&nbsp;</td>
 
1241
          <td class="mdname" nowrap> <em>id</em>[4]</td>
 
1242
        </tr>
 
1243
        <tr>
 
1244
          <td class="md"></td>
 
1245
          <td class="md">)&nbsp;</td>
 
1246
          <td class="md" colspan="2"></td>
 
1247
        </tr>
 
1248
      </table>
 
1249
    </td>
 
1250
  </tr>
 
1251
</table>
 
1252
<table cellspacing="5" cellpadding="0" border="0">
 
1253
  <tr>
 
1254
    <td>
 
1255
      &nbsp;
 
1256
    </td>
 
1257
    <td>
 
1258
 
 
1259
<p>
 
1260
Direct the decoder to filter out all APPLICATION metadata blocks of the given <em>id</em>.<p>
 
1261
<dl compact><dt><b>Default Value:</b></dt><dd>By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dd></dl>
 
1262
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1263
  <table border="0" cellspacing="2" cellpadding="0">
 
1264
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to set. </td></tr>
 
1265
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>See above. </td></tr>
 
1266
  </table>
 
1267
</dl>
 
1268
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1269
</pre></div> <div class="fragment"><pre class="fragment"> <span class="keywordtype">id</span> != NULL 
 
1270
</pre></div> </dd></dl>
 
1271
<dl compact><dt><b>Return values:</b></dt><dd>
 
1272
  <table border="0" cellspacing="2" cellpadding="0">
 
1273
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
 
1274
  </table>
 
1275
</dl>
 
1276
    </td>
 
1277
  </tr>
 
1278
</table>
 
1279
<a class="anchor" name="ga25" doxytag="stream_decoder.h::FLAC__stream_decoder_set_metadata_ignore_all"></a><p>
 
1280
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1281
  <tr>
 
1282
    <td class="mdRow">
 
1283
      <table cellpadding="0" cellspacing="0" border="0">
 
1284
        <tr>
 
1285
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_set_metadata_ignore_all           </td>
 
1286
          <td class="md" valign="top">(&nbsp;</td>
 
1287
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1288
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
1289
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
1290
          <td class="md" nowrap></td>
 
1291
        </tr>
 
1292
      </table>
 
1293
    </td>
 
1294
  </tr>
 
1295
</table>
 
1296
<table cellspacing="5" cellpadding="0" border="0">
 
1297
  <tr>
 
1298
    <td>
 
1299
      &nbsp;
 
1300
    </td>
 
1301
    <td>
 
1302
 
 
1303
<p>
 
1304
Direct the decoder to filter out all metadata blocks of any type.<p>
 
1305
<dl compact><dt><b>Default Value:</b></dt><dd>By default, only the <code>STREAMINFO</code> block is returned via the metadata callback. </dd></dl>
 
1306
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1307
  <table border="0" cellspacing="2" cellpadding="0">
 
1308
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to set. </td></tr>
 
1309
  </table>
 
1310
</dl>
 
1311
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1312
</pre></div> </dd></dl>
 
1313
<dl compact><dt><b>Return values:</b></dt><dd>
 
1314
  <table border="0" cellspacing="2" cellpadding="0">
 
1315
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if the decoder is already initialized, else <code>true</code>. </td></tr>
 
1316
  </table>
 
1317
</dl>
 
1318
    </td>
 
1319
  </tr>
 
1320
</table>
 
1321
<a class="anchor" name="ga26" doxytag="stream_decoder.h::FLAC__stream_decoder_get_state"></a><p>
 
1322
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1323
  <tr>
 
1324
    <td class="mdRow">
 
1325
      <table cellpadding="0" cellspacing="0" border="0">
 
1326
        <tr>
 
1327
          <td class="md" nowrap valign="top"><a class="el" href="group__flac__stream__decoder.html#ga50">FLAC__StreamDecoderState</a> FLAC__stream_decoder_get_state           </td>
 
1328
          <td class="md" valign="top">(&nbsp;</td>
 
1329
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1330
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
1331
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
1332
          <td class="md" nowrap></td>
 
1333
        </tr>
 
1334
      </table>
 
1335
    </td>
 
1336
  </tr>
 
1337
</table>
 
1338
<table cellspacing="5" cellpadding="0" border="0">
 
1339
  <tr>
 
1340
    <td>
 
1341
      &nbsp;
 
1342
    </td>
 
1343
    <td>
 
1344
 
 
1345
<p>
 
1346
Get the current decoder state.<p>
 
1347
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1348
  <table border="0" cellspacing="2" cellpadding="0">
 
1349
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to query. </td></tr>
 
1350
  </table>
 
1351
</dl>
 
1352
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1353
</pre></div> </dd></dl>
 
1354
<dl compact><dt><b>Return values:</b></dt><dd>
 
1355
  <table border="0" cellspacing="2" cellpadding="0">
 
1356
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderState</em>&nbsp;</td><td>The current decoder state. </td></tr>
 
1357
  </table>
 
1358
</dl>
 
1359
    </td>
 
1360
  </tr>
 
1361
</table>
 
1362
<a class="anchor" name="ga27" doxytag="stream_decoder.h::FLAC__stream_decoder_get_resolved_state_string"></a><p>
 
1363
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1364
  <tr>
 
1365
    <td class="mdRow">
 
1366
      <table cellpadding="0" cellspacing="0" border="0">
 
1367
        <tr>
 
1368
          <td class="md" nowrap valign="top">const char* FLAC__stream_decoder_get_resolved_state_string           </td>
 
1369
          <td class="md" valign="top">(&nbsp;</td>
 
1370
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1371
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
1372
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
1373
          <td class="md" nowrap></td>
 
1374
        </tr>
 
1375
      </table>
 
1376
    </td>
 
1377
  </tr>
 
1378
</table>
 
1379
<table cellspacing="5" cellpadding="0" border="0">
 
1380
  <tr>
 
1381
    <td>
 
1382
      &nbsp;
 
1383
    </td>
 
1384
    <td>
 
1385
 
 
1386
<p>
 
1387
Get the current decoder state as a C string.<p>
 
1388
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1389
  <table border="0" cellspacing="2" cellpadding="0">
 
1390
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to query. </td></tr>
 
1391
  </table>
 
1392
</dl>
 
1393
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1394
</pre></div> </dd></dl>
 
1395
<dl compact><dt><b>Return values:</b></dt><dd>
 
1396
  <table border="0" cellspacing="2" cellpadding="0">
 
1397
    <tr><td valign="top"></td><td valign="top"><em>const</em>&nbsp;</td><td>char * The decoder state as a C string. Do not modify the contents. </td></tr>
 
1398
  </table>
 
1399
</dl>
 
1400
    </td>
 
1401
  </tr>
 
1402
</table>
 
1403
<a class="anchor" name="ga28" doxytag="stream_decoder.h::FLAC__stream_decoder_get_md5_checking"></a><p>
 
1404
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1405
  <tr>
 
1406
    <td class="mdRow">
 
1407
      <table cellpadding="0" cellspacing="0" border="0">
 
1408
        <tr>
 
1409
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_get_md5_checking           </td>
 
1410
          <td class="md" valign="top">(&nbsp;</td>
 
1411
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1412
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
1413
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
1414
          <td class="md" nowrap></td>
 
1415
        </tr>
 
1416
      </table>
 
1417
    </td>
 
1418
  </tr>
 
1419
</table>
 
1420
<table cellspacing="5" cellpadding="0" border="0">
 
1421
  <tr>
 
1422
    <td>
 
1423
      &nbsp;
 
1424
    </td>
 
1425
    <td>
 
1426
 
 
1427
<p>
 
1428
Get the "MD5 signature checking" flag. This is the value of the setting, not whether or not the decoder is currently checking the MD5 (remember, it can be turned off automatically by a seek). When the decoder is reset the flag will be restored to the value returned by this function.<p>
 
1429
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1430
  <table border="0" cellspacing="2" cellpadding="0">
 
1431
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to query. </td></tr>
 
1432
  </table>
 
1433
</dl>
 
1434
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1435
</pre></div> </dd></dl>
 
1436
<dl compact><dt><b>Return values:</b></dt><dd>
 
1437
  <table border="0" cellspacing="2" cellpadding="0">
 
1438
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td>See above. </td></tr>
 
1439
  </table>
 
1440
</dl>
 
1441
    </td>
 
1442
  </tr>
 
1443
</table>
 
1444
<a class="anchor" name="ga29" doxytag="stream_decoder.h::FLAC__stream_decoder_get_total_samples"></a><p>
 
1445
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1446
  <tr>
 
1447
    <td class="mdRow">
 
1448
      <table cellpadding="0" cellspacing="0" border="0">
 
1449
        <tr>
 
1450
          <td class="md" nowrap valign="top">FLAC__uint64 FLAC__stream_decoder_get_total_samples           </td>
 
1451
          <td class="md" valign="top">(&nbsp;</td>
 
1452
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1453
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
1454
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
1455
          <td class="md" nowrap></td>
 
1456
        </tr>
 
1457
      </table>
 
1458
    </td>
 
1459
  </tr>
 
1460
</table>
 
1461
<table cellspacing="5" cellpadding="0" border="0">
 
1462
  <tr>
 
1463
    <td>
 
1464
      &nbsp;
 
1465
    </td>
 
1466
    <td>
 
1467
 
 
1468
<p>
 
1469
Get the total number of samples in the stream being decoded. Will only be valid after decoding has started and will contain the value from the <code>STREAMINFO</code> block. A value of <code>0</code> means "unknown".<p>
 
1470
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1471
  <table border="0" cellspacing="2" cellpadding="0">
 
1472
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to query. </td></tr>
 
1473
  </table>
 
1474
</dl>
 
1475
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1476
</pre></div> </dd></dl>
 
1477
<dl compact><dt><b>Return values:</b></dt><dd>
 
1478
  <table border="0" cellspacing="2" cellpadding="0">
 
1479
    <tr><td valign="top"></td><td valign="top"><em>unsigned</em>&nbsp;</td><td>See above. </td></tr>
 
1480
  </table>
 
1481
</dl>
 
1482
    </td>
 
1483
  </tr>
 
1484
</table>
 
1485
<a class="anchor" name="ga30" doxytag="stream_decoder.h::FLAC__stream_decoder_get_channels"></a><p>
 
1486
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1487
  <tr>
 
1488
    <td class="mdRow">
 
1489
      <table cellpadding="0" cellspacing="0" border="0">
 
1490
        <tr>
 
1491
          <td class="md" nowrap valign="top">unsigned FLAC__stream_decoder_get_channels           </td>
 
1492
          <td class="md" valign="top">(&nbsp;</td>
 
1493
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1494
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
1495
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
1496
          <td class="md" nowrap></td>
 
1497
        </tr>
 
1498
      </table>
 
1499
    </td>
 
1500
  </tr>
 
1501
</table>
 
1502
<table cellspacing="5" cellpadding="0" border="0">
 
1503
  <tr>
 
1504
    <td>
 
1505
      &nbsp;
 
1506
    </td>
 
1507
    <td>
 
1508
 
 
1509
<p>
 
1510
Get the current number of channels in the stream being decoded. Will only be valid after decoding has started and will contain the value from the most recently decoded frame header.<p>
 
1511
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1512
  <table border="0" cellspacing="2" cellpadding="0">
 
1513
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to query. </td></tr>
 
1514
  </table>
 
1515
</dl>
 
1516
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1517
</pre></div> </dd></dl>
 
1518
<dl compact><dt><b>Return values:</b></dt><dd>
 
1519
  <table border="0" cellspacing="2" cellpadding="0">
 
1520
    <tr><td valign="top"></td><td valign="top"><em>unsigned</em>&nbsp;</td><td>See above. </td></tr>
 
1521
  </table>
 
1522
</dl>
 
1523
    </td>
 
1524
  </tr>
 
1525
</table>
 
1526
<a class="anchor" name="ga31" doxytag="stream_decoder.h::FLAC__stream_decoder_get_channel_assignment"></a><p>
 
1527
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1528
  <tr>
 
1529
    <td class="mdRow">
 
1530
      <table cellpadding="0" cellspacing="0" border="0">
 
1531
        <tr>
 
1532
          <td class="md" nowrap valign="top"><a class="el" href="group__flac__format.html#ga107">FLAC__ChannelAssignment</a> FLAC__stream_decoder_get_channel_assignment           </td>
 
1533
          <td class="md" valign="top">(&nbsp;</td>
 
1534
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1535
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
1536
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
1537
          <td class="md" nowrap></td>
 
1538
        </tr>
 
1539
      </table>
 
1540
    </td>
 
1541
  </tr>
 
1542
</table>
 
1543
<table cellspacing="5" cellpadding="0" border="0">
 
1544
  <tr>
 
1545
    <td>
 
1546
      &nbsp;
 
1547
    </td>
 
1548
    <td>
 
1549
 
 
1550
<p>
 
1551
Get the current channel assignment in the stream being decoded. Will only be valid after decoding has started and will contain the value from the most recently decoded frame header.<p>
 
1552
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1553
  <table border="0" cellspacing="2" cellpadding="0">
 
1554
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to query. </td></tr>
 
1555
  </table>
 
1556
</dl>
 
1557
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1558
</pre></div> </dd></dl>
 
1559
<dl compact><dt><b>Return values:</b></dt><dd>
 
1560
  <table border="0" cellspacing="2" cellpadding="0">
 
1561
    <tr><td valign="top"></td><td valign="top"><em>FLAC__ChannelAssignment</em>&nbsp;</td><td>See above. </td></tr>
 
1562
  </table>
 
1563
</dl>
 
1564
    </td>
 
1565
  </tr>
 
1566
</table>
 
1567
<a class="anchor" name="ga32" doxytag="stream_decoder.h::FLAC__stream_decoder_get_bits_per_sample"></a><p>
 
1568
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1569
  <tr>
 
1570
    <td class="mdRow">
 
1571
      <table cellpadding="0" cellspacing="0" border="0">
 
1572
        <tr>
 
1573
          <td class="md" nowrap valign="top">unsigned FLAC__stream_decoder_get_bits_per_sample           </td>
 
1574
          <td class="md" valign="top">(&nbsp;</td>
 
1575
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1576
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
1577
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
1578
          <td class="md" nowrap></td>
 
1579
        </tr>
 
1580
      </table>
 
1581
    </td>
 
1582
  </tr>
 
1583
</table>
 
1584
<table cellspacing="5" cellpadding="0" border="0">
 
1585
  <tr>
 
1586
    <td>
 
1587
      &nbsp;
 
1588
    </td>
 
1589
    <td>
 
1590
 
 
1591
<p>
 
1592
Get the current sample resolution in the stream being decoded. Will only be valid after decoding has started and will contain the value from the most recently decoded frame header.<p>
 
1593
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1594
  <table border="0" cellspacing="2" cellpadding="0">
 
1595
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to query. </td></tr>
 
1596
  </table>
 
1597
</dl>
 
1598
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1599
</pre></div> </dd></dl>
 
1600
<dl compact><dt><b>Return values:</b></dt><dd>
 
1601
  <table border="0" cellspacing="2" cellpadding="0">
 
1602
    <tr><td valign="top"></td><td valign="top"><em>unsigned</em>&nbsp;</td><td>See above. </td></tr>
 
1603
  </table>
 
1604
</dl>
 
1605
    </td>
 
1606
  </tr>
 
1607
</table>
 
1608
<a class="anchor" name="ga33" doxytag="stream_decoder.h::FLAC__stream_decoder_get_sample_rate"></a><p>
 
1609
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1610
  <tr>
 
1611
    <td class="mdRow">
 
1612
      <table cellpadding="0" cellspacing="0" border="0">
 
1613
        <tr>
 
1614
          <td class="md" nowrap valign="top">unsigned FLAC__stream_decoder_get_sample_rate           </td>
 
1615
          <td class="md" valign="top">(&nbsp;</td>
 
1616
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1617
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
1618
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
1619
          <td class="md" nowrap></td>
 
1620
        </tr>
 
1621
      </table>
 
1622
    </td>
 
1623
  </tr>
 
1624
</table>
 
1625
<table cellspacing="5" cellpadding="0" border="0">
 
1626
  <tr>
 
1627
    <td>
 
1628
      &nbsp;
 
1629
    </td>
 
1630
    <td>
 
1631
 
 
1632
<p>
 
1633
Get the current sample rate in Hz of the stream being decoded. Will only be valid after decoding has started and will contain the value from the most recently decoded frame header.<p>
 
1634
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1635
  <table border="0" cellspacing="2" cellpadding="0">
 
1636
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to query. </td></tr>
 
1637
  </table>
 
1638
</dl>
 
1639
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1640
</pre></div> </dd></dl>
 
1641
<dl compact><dt><b>Return values:</b></dt><dd>
 
1642
  <table border="0" cellspacing="2" cellpadding="0">
 
1643
    <tr><td valign="top"></td><td valign="top"><em>unsigned</em>&nbsp;</td><td>See above. </td></tr>
 
1644
  </table>
 
1645
</dl>
 
1646
    </td>
 
1647
  </tr>
 
1648
</table>
 
1649
<a class="anchor" name="ga34" doxytag="stream_decoder.h::FLAC__stream_decoder_get_blocksize"></a><p>
 
1650
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1651
  <tr>
 
1652
    <td class="mdRow">
 
1653
      <table cellpadding="0" cellspacing="0" border="0">
 
1654
        <tr>
 
1655
          <td class="md" nowrap valign="top">unsigned FLAC__stream_decoder_get_blocksize           </td>
 
1656
          <td class="md" valign="top">(&nbsp;</td>
 
1657
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1658
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
1659
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
1660
          <td class="md" nowrap></td>
 
1661
        </tr>
 
1662
      </table>
 
1663
    </td>
 
1664
  </tr>
 
1665
</table>
 
1666
<table cellspacing="5" cellpadding="0" border="0">
 
1667
  <tr>
 
1668
    <td>
 
1669
      &nbsp;
 
1670
    </td>
 
1671
    <td>
 
1672
 
 
1673
<p>
 
1674
Get the current blocksize of the stream being decoded. Will only be valid after decoding has started and will contain the value from the most recently decoded frame header.<p>
 
1675
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1676
  <table border="0" cellspacing="2" cellpadding="0">
 
1677
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to query. </td></tr>
 
1678
  </table>
 
1679
</dl>
 
1680
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1681
</pre></div> </dd></dl>
 
1682
<dl compact><dt><b>Return values:</b></dt><dd>
 
1683
  <table border="0" cellspacing="2" cellpadding="0">
 
1684
    <tr><td valign="top"></td><td valign="top"><em>unsigned</em>&nbsp;</td><td>See above. </td></tr>
 
1685
  </table>
 
1686
</dl>
 
1687
    </td>
 
1688
  </tr>
 
1689
</table>
 
1690
<a class="anchor" name="ga35" doxytag="stream_decoder.h::FLAC__stream_decoder_get_decode_position"></a><p>
 
1691
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1692
  <tr>
 
1693
    <td class="mdRow">
 
1694
      <table cellpadding="0" cellspacing="0" border="0">
 
1695
        <tr>
 
1696
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_get_decode_position           </td>
 
1697
          <td class="md" valign="top">(&nbsp;</td>
 
1698
          <td class="md" nowrap valign="top">const <a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1699
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
1700
        </tr>
 
1701
        <tr>
 
1702
          <td class="md" nowrap align="right"></td>
 
1703
          <td class="md"></td>
 
1704
          <td class="md" nowrap>FLAC__uint64 *&nbsp;</td>
 
1705
          <td class="mdname" nowrap> <em>position</em></td>
 
1706
        </tr>
 
1707
        <tr>
 
1708
          <td class="md"></td>
 
1709
          <td class="md">)&nbsp;</td>
 
1710
          <td class="md" colspan="2"></td>
 
1711
        </tr>
 
1712
      </table>
 
1713
    </td>
 
1714
  </tr>
 
1715
</table>
 
1716
<table cellspacing="5" cellpadding="0" border="0">
 
1717
  <tr>
 
1718
    <td>
 
1719
      &nbsp;
 
1720
    </td>
 
1721
    <td>
 
1722
 
 
1723
<p>
 
1724
Returns the decoder's current read position within the stream. The position is the byte offset from the start of the stream. Bytes before this position have been fully decoded. Note that there may still be undecoded bytes in the decoder's read FIFO. The returned position is correct even after a seek.<p>
 
1725
<dl compact><dt><b>Warning:</b></dt><dd>This function currently only works for native FLAC, not Ogg FLAC streams.</dd></dl>
 
1726
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1727
  <table border="0" cellspacing="2" cellpadding="0">
 
1728
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance to query. </td></tr>
 
1729
    <tr><td valign="top"></td><td valign="top"><em>position</em>&nbsp;</td><td>Address at which to return the desired position. </td></tr>
 
1730
  </table>
 
1731
</dl>
 
1732
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1733
</pre></div> <div class="fragment"><pre class="fragment"> position != NULL 
 
1734
</pre></div> </dd></dl>
 
1735
<dl compact><dt><b>Return values:</b></dt><dd>
 
1736
  <table border="0" cellspacing="2" cellpadding="0">
 
1737
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>true</code> if successful, <code>false</code> if the stream is not native FLAC, or there was an error from the 'tell' callback or it returned <code>FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED</code>. </td></tr>
 
1738
  </table>
 
1739
</dl>
 
1740
    </td>
 
1741
  </tr>
 
1742
</table>
 
1743
<a class="anchor" name="ga36" doxytag="stream_decoder.h::FLAC__stream_decoder_init_stream"></a><p>
 
1744
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1745
  <tr>
 
1746
    <td class="mdRow">
 
1747
      <table cellpadding="0" cellspacing="0" border="0">
 
1748
        <tr>
 
1749
          <td class="md" nowrap valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a> FLAC__stream_decoder_init_stream           </td>
 
1750
          <td class="md" valign="top">(&nbsp;</td>
 
1751
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1752
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
1753
        </tr>
 
1754
        <tr>
 
1755
          <td class="md" nowrap align="right"></td>
 
1756
          <td class="md"></td>
 
1757
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga8">FLAC__StreamDecoderReadCallback</a>&nbsp;</td>
 
1758
          <td class="mdname" nowrap> <em>read_callback</em>, </td>
 
1759
        </tr>
 
1760
        <tr>
 
1761
          <td class="md" nowrap align="right"></td>
 
1762
          <td class="md"></td>
 
1763
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga9">FLAC__StreamDecoderSeekCallback</a>&nbsp;</td>
 
1764
          <td class="mdname" nowrap> <em>seek_callback</em>, </td>
 
1765
        </tr>
 
1766
        <tr>
 
1767
          <td class="md" nowrap align="right"></td>
 
1768
          <td class="md"></td>
 
1769
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga10">FLAC__StreamDecoderTellCallback</a>&nbsp;</td>
 
1770
          <td class="mdname" nowrap> <em>tell_callback</em>, </td>
 
1771
        </tr>
 
1772
        <tr>
 
1773
          <td class="md" nowrap align="right"></td>
 
1774
          <td class="md"></td>
 
1775
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga11">FLAC__StreamDecoderLengthCallback</a>&nbsp;</td>
 
1776
          <td class="mdname" nowrap> <em>length_callback</em>, </td>
 
1777
        </tr>
 
1778
        <tr>
 
1779
          <td class="md" nowrap align="right"></td>
 
1780
          <td class="md"></td>
 
1781
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga12">FLAC__StreamDecoderEofCallback</a>&nbsp;</td>
 
1782
          <td class="mdname" nowrap> <em>eof_callback</em>, </td>
 
1783
        </tr>
 
1784
        <tr>
 
1785
          <td class="md" nowrap align="right"></td>
 
1786
          <td class="md"></td>
 
1787
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a>&nbsp;</td>
 
1788
          <td class="mdname" nowrap> <em>write_callback</em>, </td>
 
1789
        </tr>
 
1790
        <tr>
 
1791
          <td class="md" nowrap align="right"></td>
 
1792
          <td class="md"></td>
 
1793
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a>&nbsp;</td>
 
1794
          <td class="mdname" nowrap> <em>metadata_callback</em>, </td>
 
1795
        </tr>
 
1796
        <tr>
 
1797
          <td class="md" nowrap align="right"></td>
 
1798
          <td class="md"></td>
 
1799
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a>&nbsp;</td>
 
1800
          <td class="mdname" nowrap> <em>error_callback</em>, </td>
 
1801
        </tr>
 
1802
        <tr>
 
1803
          <td class="md" nowrap align="right"></td>
 
1804
          <td class="md"></td>
 
1805
          <td class="md" nowrap>void *&nbsp;</td>
 
1806
          <td class="mdname" nowrap> <em>client_data</em></td>
 
1807
        </tr>
 
1808
        <tr>
 
1809
          <td class="md"></td>
 
1810
          <td class="md">)&nbsp;</td>
 
1811
          <td class="md" colspan="2"></td>
 
1812
        </tr>
 
1813
      </table>
 
1814
    </td>
 
1815
  </tr>
 
1816
</table>
 
1817
<table cellspacing="5" cellpadding="0" border="0">
 
1818
  <tr>
 
1819
    <td>
 
1820
      &nbsp;
 
1821
    </td>
 
1822
    <td>
 
1823
 
 
1824
<p>
 
1825
Initialize the decoder instance to decode native FLAC streams.<p>
 
1826
This flavor of initialization sets up the decoder to decode from a native FLAC stream. I/O is performed via callbacks to the client. For decoding from a plain file via filename or open FILE*, <a class="el" href="group__flac__stream__decoder.html#ga40">FLAC__stream_decoder_init_file()</a> and <a class="el" href="group__flac__stream__decoder.html#ga38">FLAC__stream_decoder_init_FILE()</a> provide a simpler interface.<p>
 
1827
This function should be called after <a class="el" href="group__flac__stream__decoder.html#ga16">FLAC__stream_decoder_new()</a> and FLAC__stream_decoder_set_*() but before any of the FLAC__stream_decoder_process_*() functions. Will set and return the decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA if initialization succeeded.<p>
 
1828
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1829
  <table border="0" cellspacing="2" cellpadding="0">
 
1830
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>An uninitialized decoder instance. </td></tr>
 
1831
    <tr><td valign="top"></td><td valign="top"><em>read_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderReadCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
1832
    <tr><td valign="top"></td><td valign="top"><em>seek_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderSeekCallback. This pointer may be <code>NULL</code> if seeking is not supported. If <em>seek_callback</em> is not <code>NULL</code> then a <em>tell_callback</em>, <em>length_callback</em>, and <em>eof_callback</em> must also be supplied. Alternatively, a dummy seek callback that just returns <code>FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED</code> may also be supplied, all though this is slightly less efficient for the decoder. </td></tr>
 
1833
    <tr><td valign="top"></td><td valign="top"><em>tell_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderTellCallback. This pointer may be <code>NULL</code> if not supported by the client. If <em>seek_callback</em> is not <code>NULL</code> then a <em>tell_callback</em> must also be supplied. Alternatively, a dummy tell callback that just returns <code>FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED</code> may also be supplied, all though this is slightly less efficient for the decoder. </td></tr>
 
1834
    <tr><td valign="top"></td><td valign="top"><em>length_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderLengthCallback. This pointer may be <code>NULL</code> if not supported by the client. If <em>seek_callback</em> is not <code>NULL</code> then a <em>length_callback</em> must also be supplied. Alternatively, a dummy length callback that just returns <code>FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED</code> may also be supplied, all though this is slightly less efficient for the decoder. </td></tr>
 
1835
    <tr><td valign="top"></td><td valign="top"><em>eof_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderEofCallback. This pointer may be <code>NULL</code> if not supported by the client. If <em>seek_callback</em> is not <code>NULL</code> then a <em>eof_callback</em> must also be supplied. Alternatively, a dummy length callback that just returns <code>false</code> may also be supplied, all though this is slightly less efficient for the decoder. </td></tr>
 
1836
    <tr><td valign="top"></td><td valign="top"><em>write_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderWriteCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
1837
    <tr><td valign="top"></td><td valign="top"><em>metadata_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderMetadataCallback. This pointer may be <code>NULL</code> if the callback is not desired. </td></tr>
 
1838
    <tr><td valign="top"></td><td valign="top"><em>error_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderErrorCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
1839
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>This value will be supplied to callbacks in their <em>client_data</em> argument. </td></tr>
 
1840
  </table>
 
1841
</dl>
 
1842
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1843
</pre></div> </dd></dl>
 
1844
<dl compact><dt><b>Return values:</b></dt><dd>
 
1845
  <table border="0" cellspacing="2" cellpadding="0">
 
1846
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderInitStatus</em>&nbsp;</td><td><code>FLAC__STREAM_DECODER_INIT_STATUS_OK</code> if initialization was successful; see FLAC__StreamDecoderInitStatus for the meanings of other return values. </td></tr>
 
1847
  </table>
 
1848
</dl>
 
1849
    </td>
 
1850
  </tr>
 
1851
</table>
 
1852
<a class="anchor" name="ga37" doxytag="stream_decoder.h::FLAC__stream_decoder_init_ogg_stream"></a><p>
 
1853
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1854
  <tr>
 
1855
    <td class="mdRow">
 
1856
      <table cellpadding="0" cellspacing="0" border="0">
 
1857
        <tr>
 
1858
          <td class="md" nowrap valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a> FLAC__stream_decoder_init_ogg_stream           </td>
 
1859
          <td class="md" valign="top">(&nbsp;</td>
 
1860
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1861
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
1862
        </tr>
 
1863
        <tr>
 
1864
          <td class="md" nowrap align="right"></td>
 
1865
          <td class="md"></td>
 
1866
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga8">FLAC__StreamDecoderReadCallback</a>&nbsp;</td>
 
1867
          <td class="mdname" nowrap> <em>read_callback</em>, </td>
 
1868
        </tr>
 
1869
        <tr>
 
1870
          <td class="md" nowrap align="right"></td>
 
1871
          <td class="md"></td>
 
1872
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga9">FLAC__StreamDecoderSeekCallback</a>&nbsp;</td>
 
1873
          <td class="mdname" nowrap> <em>seek_callback</em>, </td>
 
1874
        </tr>
 
1875
        <tr>
 
1876
          <td class="md" nowrap align="right"></td>
 
1877
          <td class="md"></td>
 
1878
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga10">FLAC__StreamDecoderTellCallback</a>&nbsp;</td>
 
1879
          <td class="mdname" nowrap> <em>tell_callback</em>, </td>
 
1880
        </tr>
 
1881
        <tr>
 
1882
          <td class="md" nowrap align="right"></td>
 
1883
          <td class="md"></td>
 
1884
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga11">FLAC__StreamDecoderLengthCallback</a>&nbsp;</td>
 
1885
          <td class="mdname" nowrap> <em>length_callback</em>, </td>
 
1886
        </tr>
 
1887
        <tr>
 
1888
          <td class="md" nowrap align="right"></td>
 
1889
          <td class="md"></td>
 
1890
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga12">FLAC__StreamDecoderEofCallback</a>&nbsp;</td>
 
1891
          <td class="mdname" nowrap> <em>eof_callback</em>, </td>
 
1892
        </tr>
 
1893
        <tr>
 
1894
          <td class="md" nowrap align="right"></td>
 
1895
          <td class="md"></td>
 
1896
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a>&nbsp;</td>
 
1897
          <td class="mdname" nowrap> <em>write_callback</em>, </td>
 
1898
        </tr>
 
1899
        <tr>
 
1900
          <td class="md" nowrap align="right"></td>
 
1901
          <td class="md"></td>
 
1902
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a>&nbsp;</td>
 
1903
          <td class="mdname" nowrap> <em>metadata_callback</em>, </td>
 
1904
        </tr>
 
1905
        <tr>
 
1906
          <td class="md" nowrap align="right"></td>
 
1907
          <td class="md"></td>
 
1908
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a>&nbsp;</td>
 
1909
          <td class="mdname" nowrap> <em>error_callback</em>, </td>
 
1910
        </tr>
 
1911
        <tr>
 
1912
          <td class="md" nowrap align="right"></td>
 
1913
          <td class="md"></td>
 
1914
          <td class="md" nowrap>void *&nbsp;</td>
 
1915
          <td class="mdname" nowrap> <em>client_data</em></td>
 
1916
        </tr>
 
1917
        <tr>
 
1918
          <td class="md"></td>
 
1919
          <td class="md">)&nbsp;</td>
 
1920
          <td class="md" colspan="2"></td>
 
1921
        </tr>
 
1922
      </table>
 
1923
    </td>
 
1924
  </tr>
 
1925
</table>
 
1926
<table cellspacing="5" cellpadding="0" border="0">
 
1927
  <tr>
 
1928
    <td>
 
1929
      &nbsp;
 
1930
    </td>
 
1931
    <td>
 
1932
 
 
1933
<p>
 
1934
Initialize the decoder instance to decode Ogg FLAC streams.<p>
 
1935
This flavor of initialization sets up the decoder to decode from a FLAC stream in an Ogg container. I/O is performed via callbacks to the client. For decoding from a plain file via filename or open FILE*, <a class="el" href="group__flac__stream__decoder.html#ga41">FLAC__stream_decoder_init_ogg_file()</a> and <a class="el" href="group__flac__stream__decoder.html#ga39">FLAC__stream_decoder_init_ogg_FILE()</a> provide a simpler interface.<p>
 
1936
This function should be called after <a class="el" href="group__flac__stream__decoder.html#ga16">FLAC__stream_decoder_new()</a> and FLAC__stream_decoder_set_*() but before any of the FLAC__stream_decoder_process_*() functions. Will set and return the decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA if initialization succeeded.<p>
 
1937
<dl compact><dt><b>Note:</b></dt><dd>Support for Ogg FLAC in the library is optional. If this library has been built without support for Ogg FLAC, this function will return <code>FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER</code>.</dd></dl>
 
1938
<dl compact><dt><b>Parameters:</b></dt><dd>
 
1939
  <table border="0" cellspacing="2" cellpadding="0">
 
1940
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>An uninitialized decoder instance. </td></tr>
 
1941
    <tr><td valign="top"></td><td valign="top"><em>read_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderReadCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
1942
    <tr><td valign="top"></td><td valign="top"><em>seek_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderSeekCallback. This pointer may be <code>NULL</code> if seeking is not supported. If <em>seek_callback</em> is not <code>NULL</code> then a <em>tell_callback</em>, <em>length_callback</em>, and <em>eof_callback</em> must also be supplied. Alternatively, a dummy seek callback that just returns <code>FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED</code> may also be supplied, all though this is slightly less efficient for the decoder. </td></tr>
 
1943
    <tr><td valign="top"></td><td valign="top"><em>tell_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderTellCallback. This pointer may be <code>NULL</code> if not supported by the client. If <em>seek_callback</em> is not <code>NULL</code> then a <em>tell_callback</em> must also be supplied. Alternatively, a dummy tell callback that just returns <code>FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED</code> may also be supplied, all though this is slightly less efficient for the decoder. </td></tr>
 
1944
    <tr><td valign="top"></td><td valign="top"><em>length_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderLengthCallback. This pointer may be <code>NULL</code> if not supported by the client. If <em>seek_callback</em> is not <code>NULL</code> then a <em>length_callback</em> must also be supplied. Alternatively, a dummy length callback that just returns <code>FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED</code> may also be supplied, all though this is slightly less efficient for the decoder. </td></tr>
 
1945
    <tr><td valign="top"></td><td valign="top"><em>eof_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderEofCallback. This pointer may be <code>NULL</code> if not supported by the client. If <em>seek_callback</em> is not <code>NULL</code> then a <em>eof_callback</em> must also be supplied. Alternatively, a dummy length callback that just returns <code>false</code> may also be supplied, all though this is slightly less efficient for the decoder. </td></tr>
 
1946
    <tr><td valign="top"></td><td valign="top"><em>write_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderWriteCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
1947
    <tr><td valign="top"></td><td valign="top"><em>metadata_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderMetadataCallback. This pointer may be <code>NULL</code> if the callback is not desired. </td></tr>
 
1948
    <tr><td valign="top"></td><td valign="top"><em>error_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderErrorCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
1949
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>This value will be supplied to callbacks in their <em>client_data</em> argument. </td></tr>
 
1950
  </table>
 
1951
</dl>
 
1952
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
1953
</pre></div> </dd></dl>
 
1954
<dl compact><dt><b>Return values:</b></dt><dd>
 
1955
  <table border="0" cellspacing="2" cellpadding="0">
 
1956
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderInitStatus</em>&nbsp;</td><td><code>FLAC__STREAM_DECODER_INIT_STATUS_OK</code> if initialization was successful; see FLAC__StreamDecoderInitStatus for the meanings of other return values. </td></tr>
 
1957
  </table>
 
1958
</dl>
 
1959
    </td>
 
1960
  </tr>
 
1961
</table>
 
1962
<a class="anchor" name="ga38" doxytag="stream_decoder.h::FLAC__stream_decoder_init_FILE"></a><p>
 
1963
<table class="mdTable" cellpadding="2" cellspacing="0">
 
1964
  <tr>
 
1965
    <td class="mdRow">
 
1966
      <table cellpadding="0" cellspacing="0" border="0">
 
1967
        <tr>
 
1968
          <td class="md" nowrap valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a> FLAC__stream_decoder_init_FILE           </td>
 
1969
          <td class="md" valign="top">(&nbsp;</td>
 
1970
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
1971
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
1972
        </tr>
 
1973
        <tr>
 
1974
          <td class="md" nowrap align="right"></td>
 
1975
          <td class="md"></td>
 
1976
          <td class="md" nowrap>FILE *&nbsp;</td>
 
1977
          <td class="mdname" nowrap> <em>file</em>, </td>
 
1978
        </tr>
 
1979
        <tr>
 
1980
          <td class="md" nowrap align="right"></td>
 
1981
          <td class="md"></td>
 
1982
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a>&nbsp;</td>
 
1983
          <td class="mdname" nowrap> <em>write_callback</em>, </td>
 
1984
        </tr>
 
1985
        <tr>
 
1986
          <td class="md" nowrap align="right"></td>
 
1987
          <td class="md"></td>
 
1988
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a>&nbsp;</td>
 
1989
          <td class="mdname" nowrap> <em>metadata_callback</em>, </td>
 
1990
        </tr>
 
1991
        <tr>
 
1992
          <td class="md" nowrap align="right"></td>
 
1993
          <td class="md"></td>
 
1994
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a>&nbsp;</td>
 
1995
          <td class="mdname" nowrap> <em>error_callback</em>, </td>
 
1996
        </tr>
 
1997
        <tr>
 
1998
          <td class="md" nowrap align="right"></td>
 
1999
          <td class="md"></td>
 
2000
          <td class="md" nowrap>void *&nbsp;</td>
 
2001
          <td class="mdname" nowrap> <em>client_data</em></td>
 
2002
        </tr>
 
2003
        <tr>
 
2004
          <td class="md"></td>
 
2005
          <td class="md">)&nbsp;</td>
 
2006
          <td class="md" colspan="2"></td>
 
2007
        </tr>
 
2008
      </table>
 
2009
    </td>
 
2010
  </tr>
 
2011
</table>
 
2012
<table cellspacing="5" cellpadding="0" border="0">
 
2013
  <tr>
 
2014
    <td>
 
2015
      &nbsp;
 
2016
    </td>
 
2017
    <td>
 
2018
 
 
2019
<p>
 
2020
Initialize the decoder instance to decode native FLAC files.<p>
 
2021
This flavor of initialization sets up the decoder to decode from a plain native FLAC file. For non-stdio streams, you must use <a class="el" href="group__flac__stream__decoder.html#ga36">FLAC__stream_decoder_init_stream()</a> and provide callbacks for the I/O.<p>
 
2022
This function should be called after <a class="el" href="group__flac__stream__decoder.html#ga16">FLAC__stream_decoder_new()</a> and FLAC__stream_decoder_set_*() but before any of the FLAC__stream_decoder_process_*() functions. Will set and return the decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA if initialization succeeded.<p>
 
2023
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2024
  <table border="0" cellspacing="2" cellpadding="0">
 
2025
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>An uninitialized decoder instance. </td></tr>
 
2026
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>An open FLAC file. The file should have been opened with mode <code>"rb"</code> and rewound. The file becomes owned by the decoder and should not be manipulated by the client while decoding. Unless <em>file</em> is <code>stdin</code>, it will be closed when <a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish()</a> is called. Note however that seeking will not work when decoding from <code>stdout</code> since it is not seekable. </td></tr>
 
2027
    <tr><td valign="top"></td><td valign="top"><em>write_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderWriteCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
2028
    <tr><td valign="top"></td><td valign="top"><em>metadata_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderMetadataCallback. This pointer may be <code>NULL</code> if the callback is not desired. </td></tr>
 
2029
    <tr><td valign="top"></td><td valign="top"><em>error_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderErrorCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
2030
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>This value will be supplied to callbacks in their <em>client_data</em> argument. </td></tr>
 
2031
  </table>
 
2032
</dl>
 
2033
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2034
</pre></div> <div class="fragment"><pre class="fragment"> file != NULL 
 
2035
</pre></div> </dd></dl>
 
2036
<dl compact><dt><b>Return values:</b></dt><dd>
 
2037
  <table border="0" cellspacing="2" cellpadding="0">
 
2038
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderInitStatus</em>&nbsp;</td><td><code>FLAC__STREAM_DECODER_INIT_STATUS_OK</code> if initialization was successful; see FLAC__StreamDecoderInitStatus for the meanings of other return values. </td></tr>
 
2039
  </table>
 
2040
</dl>
 
2041
    </td>
 
2042
  </tr>
 
2043
</table>
 
2044
<a class="anchor" name="ga39" doxytag="stream_decoder.h::FLAC__stream_decoder_init_ogg_FILE"></a><p>
 
2045
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2046
  <tr>
 
2047
    <td class="mdRow">
 
2048
      <table cellpadding="0" cellspacing="0" border="0">
 
2049
        <tr>
 
2050
          <td class="md" nowrap valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a> FLAC__stream_decoder_init_ogg_FILE           </td>
 
2051
          <td class="md" valign="top">(&nbsp;</td>
 
2052
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
2053
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
2054
        </tr>
 
2055
        <tr>
 
2056
          <td class="md" nowrap align="right"></td>
 
2057
          <td class="md"></td>
 
2058
          <td class="md" nowrap>FILE *&nbsp;</td>
 
2059
          <td class="mdname" nowrap> <em>file</em>, </td>
 
2060
        </tr>
 
2061
        <tr>
 
2062
          <td class="md" nowrap align="right"></td>
 
2063
          <td class="md"></td>
 
2064
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a>&nbsp;</td>
 
2065
          <td class="mdname" nowrap> <em>write_callback</em>, </td>
 
2066
        </tr>
 
2067
        <tr>
 
2068
          <td class="md" nowrap align="right"></td>
 
2069
          <td class="md"></td>
 
2070
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a>&nbsp;</td>
 
2071
          <td class="mdname" nowrap> <em>metadata_callback</em>, </td>
 
2072
        </tr>
 
2073
        <tr>
 
2074
          <td class="md" nowrap align="right"></td>
 
2075
          <td class="md"></td>
 
2076
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a>&nbsp;</td>
 
2077
          <td class="mdname" nowrap> <em>error_callback</em>, </td>
 
2078
        </tr>
 
2079
        <tr>
 
2080
          <td class="md" nowrap align="right"></td>
 
2081
          <td class="md"></td>
 
2082
          <td class="md" nowrap>void *&nbsp;</td>
 
2083
          <td class="mdname" nowrap> <em>client_data</em></td>
 
2084
        </tr>
 
2085
        <tr>
 
2086
          <td class="md"></td>
 
2087
          <td class="md">)&nbsp;</td>
 
2088
          <td class="md" colspan="2"></td>
 
2089
        </tr>
 
2090
      </table>
 
2091
    </td>
 
2092
  </tr>
 
2093
</table>
 
2094
<table cellspacing="5" cellpadding="0" border="0">
 
2095
  <tr>
 
2096
    <td>
 
2097
      &nbsp;
 
2098
    </td>
 
2099
    <td>
 
2100
 
 
2101
<p>
 
2102
Initialize the decoder instance to decode Ogg FLAC files.<p>
 
2103
This flavor of initialization sets up the decoder to decode from a plain Ogg FLAC file. For non-stdio streams, you must use <a class="el" href="group__flac__stream__decoder.html#ga37">FLAC__stream_decoder_init_ogg_stream()</a> and provide callbacks for the I/O.<p>
 
2104
This function should be called after <a class="el" href="group__flac__stream__decoder.html#ga16">FLAC__stream_decoder_new()</a> and FLAC__stream_decoder_set_*() but before any of the FLAC__stream_decoder_process_*() functions. Will set and return the decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA if initialization succeeded.<p>
 
2105
<dl compact><dt><b>Note:</b></dt><dd>Support for Ogg FLAC in the library is optional. If this library has been built without support for Ogg FLAC, this function will return <code>FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER</code>.</dd></dl>
 
2106
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2107
  <table border="0" cellspacing="2" cellpadding="0">
 
2108
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>An uninitialized decoder instance. </td></tr>
 
2109
    <tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>An open FLAC file. The file should have been opened with mode <code>"rb"</code> and rewound. The file becomes owned by the decoder and should not be manipulated by the client while decoding. Unless <em>file</em> is <code>stdin</code>, it will be closed when <a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish()</a> is called. Note however that seeking will not work when decoding from <code>stdout</code> since it is not seekable. </td></tr>
 
2110
    <tr><td valign="top"></td><td valign="top"><em>write_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderWriteCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
2111
    <tr><td valign="top"></td><td valign="top"><em>metadata_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderMetadataCallback. This pointer may be <code>NULL</code> if the callback is not desired. </td></tr>
 
2112
    <tr><td valign="top"></td><td valign="top"><em>error_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderErrorCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
2113
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>This value will be supplied to callbacks in their <em>client_data</em> argument. </td></tr>
 
2114
  </table>
 
2115
</dl>
 
2116
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2117
</pre></div> <div class="fragment"><pre class="fragment"> file != NULL 
 
2118
</pre></div> </dd></dl>
 
2119
<dl compact><dt><b>Return values:</b></dt><dd>
 
2120
  <table border="0" cellspacing="2" cellpadding="0">
 
2121
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderInitStatus</em>&nbsp;</td><td><code>FLAC__STREAM_DECODER_INIT_STATUS_OK</code> if initialization was successful; see FLAC__StreamDecoderInitStatus for the meanings of other return values. </td></tr>
 
2122
  </table>
 
2123
</dl>
 
2124
    </td>
 
2125
  </tr>
 
2126
</table>
 
2127
<a class="anchor" name="ga40" doxytag="stream_decoder.h::FLAC__stream_decoder_init_file"></a><p>
 
2128
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2129
  <tr>
 
2130
    <td class="mdRow">
 
2131
      <table cellpadding="0" cellspacing="0" border="0">
 
2132
        <tr>
 
2133
          <td class="md" nowrap valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a> FLAC__stream_decoder_init_file           </td>
 
2134
          <td class="md" valign="top">(&nbsp;</td>
 
2135
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
2136
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
2137
        </tr>
 
2138
        <tr>
 
2139
          <td class="md" nowrap align="right"></td>
 
2140
          <td class="md"></td>
 
2141
          <td class="md" nowrap>const char *&nbsp;</td>
 
2142
          <td class="mdname" nowrap> <em>filename</em>, </td>
 
2143
        </tr>
 
2144
        <tr>
 
2145
          <td class="md" nowrap align="right"></td>
 
2146
          <td class="md"></td>
 
2147
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a>&nbsp;</td>
 
2148
          <td class="mdname" nowrap> <em>write_callback</em>, </td>
 
2149
        </tr>
 
2150
        <tr>
 
2151
          <td class="md" nowrap align="right"></td>
 
2152
          <td class="md"></td>
 
2153
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a>&nbsp;</td>
 
2154
          <td class="mdname" nowrap> <em>metadata_callback</em>, </td>
 
2155
        </tr>
 
2156
        <tr>
 
2157
          <td class="md" nowrap align="right"></td>
 
2158
          <td class="md"></td>
 
2159
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a>&nbsp;</td>
 
2160
          <td class="mdname" nowrap> <em>error_callback</em>, </td>
 
2161
        </tr>
 
2162
        <tr>
 
2163
          <td class="md" nowrap align="right"></td>
 
2164
          <td class="md"></td>
 
2165
          <td class="md" nowrap>void *&nbsp;</td>
 
2166
          <td class="mdname" nowrap> <em>client_data</em></td>
 
2167
        </tr>
 
2168
        <tr>
 
2169
          <td class="md"></td>
 
2170
          <td class="md">)&nbsp;</td>
 
2171
          <td class="md" colspan="2"></td>
 
2172
        </tr>
 
2173
      </table>
 
2174
    </td>
 
2175
  </tr>
 
2176
</table>
 
2177
<table cellspacing="5" cellpadding="0" border="0">
 
2178
  <tr>
 
2179
    <td>
 
2180
      &nbsp;
 
2181
    </td>
 
2182
    <td>
 
2183
 
 
2184
<p>
 
2185
Initialize the decoder instance to decode native FLAC files.<p>
 
2186
This flavor of initialization sets up the decoder to decode from a plain native FLAC file. If POSIX fopen() semantics are not sufficient, (for example, with Unicode filenames on Windows), you must use <a class="el" href="group__flac__stream__decoder.html#ga38">FLAC__stream_decoder_init_FILE()</a>, or <a class="el" href="group__flac__stream__decoder.html#ga36">FLAC__stream_decoder_init_stream()</a> and provide callbacks for the I/O.<p>
 
2187
This function should be called after <a class="el" href="group__flac__stream__decoder.html#ga16">FLAC__stream_decoder_new()</a> and FLAC__stream_decoder_set_*() but before any of the FLAC__stream_decoder_process_*() functions. Will set and return the decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA if initialization succeeded.<p>
 
2188
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2189
  <table border="0" cellspacing="2" cellpadding="0">
 
2190
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>An uninitialized decoder instance. </td></tr>
 
2191
    <tr><td valign="top"></td><td valign="top"><em>filename</em>&nbsp;</td><td>The name of the file to decode from. The file will be opened with fopen(). Use <code>NULL</code> to decode from <code>stdin</code>. Note that <code>stdin</code> is not seekable. </td></tr>
 
2192
    <tr><td valign="top"></td><td valign="top"><em>write_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderWriteCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
2193
    <tr><td valign="top"></td><td valign="top"><em>metadata_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderMetadataCallback. This pointer may be <code>NULL</code> if the callback is not desired. </td></tr>
 
2194
    <tr><td valign="top"></td><td valign="top"><em>error_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderErrorCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
2195
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>This value will be supplied to callbacks in their <em>client_data</em> argument. </td></tr>
 
2196
  </table>
 
2197
</dl>
 
2198
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2199
</pre></div> </dd></dl>
 
2200
<dl compact><dt><b>Return values:</b></dt><dd>
 
2201
  <table border="0" cellspacing="2" cellpadding="0">
 
2202
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderInitStatus</em>&nbsp;</td><td><code>FLAC__STREAM_DECODER_INIT_STATUS_OK</code> if initialization was successful; see FLAC__StreamDecoderInitStatus for the meanings of other return values. </td></tr>
 
2203
  </table>
 
2204
</dl>
 
2205
    </td>
 
2206
  </tr>
 
2207
</table>
 
2208
<a class="anchor" name="ga41" doxytag="stream_decoder.h::FLAC__stream_decoder_init_ogg_file"></a><p>
 
2209
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2210
  <tr>
 
2211
    <td class="mdRow">
 
2212
      <table cellpadding="0" cellspacing="0" border="0">
 
2213
        <tr>
 
2214
          <td class="md" nowrap valign="top"><a class="el" href="group__flac__stream__decoder.html#ga51">FLAC__StreamDecoderInitStatus</a> FLAC__stream_decoder_init_ogg_file           </td>
 
2215
          <td class="md" valign="top">(&nbsp;</td>
 
2216
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
2217
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
2218
        </tr>
 
2219
        <tr>
 
2220
          <td class="md" nowrap align="right"></td>
 
2221
          <td class="md"></td>
 
2222
          <td class="md" nowrap>const char *&nbsp;</td>
 
2223
          <td class="mdname" nowrap> <em>filename</em>, </td>
 
2224
        </tr>
 
2225
        <tr>
 
2226
          <td class="md" nowrap align="right"></td>
 
2227
          <td class="md"></td>
 
2228
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga13">FLAC__StreamDecoderWriteCallback</a>&nbsp;</td>
 
2229
          <td class="mdname" nowrap> <em>write_callback</em>, </td>
 
2230
        </tr>
 
2231
        <tr>
 
2232
          <td class="md" nowrap align="right"></td>
 
2233
          <td class="md"></td>
 
2234
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga14">FLAC__StreamDecoderMetadataCallback</a>&nbsp;</td>
 
2235
          <td class="mdname" nowrap> <em>metadata_callback</em>, </td>
 
2236
        </tr>
 
2237
        <tr>
 
2238
          <td class="md" nowrap align="right"></td>
 
2239
          <td class="md"></td>
 
2240
          <td class="md" nowrap><a class="el" href="group__flac__stream__decoder.html#ga15">FLAC__StreamDecoderErrorCallback</a>&nbsp;</td>
 
2241
          <td class="mdname" nowrap> <em>error_callback</em>, </td>
 
2242
        </tr>
 
2243
        <tr>
 
2244
          <td class="md" nowrap align="right"></td>
 
2245
          <td class="md"></td>
 
2246
          <td class="md" nowrap>void *&nbsp;</td>
 
2247
          <td class="mdname" nowrap> <em>client_data</em></td>
 
2248
        </tr>
 
2249
        <tr>
 
2250
          <td class="md"></td>
 
2251
          <td class="md">)&nbsp;</td>
 
2252
          <td class="md" colspan="2"></td>
 
2253
        </tr>
 
2254
      </table>
 
2255
    </td>
 
2256
  </tr>
 
2257
</table>
 
2258
<table cellspacing="5" cellpadding="0" border="0">
 
2259
  <tr>
 
2260
    <td>
 
2261
      &nbsp;
 
2262
    </td>
 
2263
    <td>
 
2264
 
 
2265
<p>
 
2266
Initialize the decoder instance to decode Ogg FLAC files.<p>
 
2267
This flavor of initialization sets up the decoder to decode from a plain Ogg FLAC file. If POSIX fopen() semantics are not sufficient, (for example, with Unicode filenames on Windows), you must use <a class="el" href="group__flac__stream__decoder.html#ga39">FLAC__stream_decoder_init_ogg_FILE()</a>, or <a class="el" href="group__flac__stream__decoder.html#ga37">FLAC__stream_decoder_init_ogg_stream()</a> and provide callbacks for the I/O.<p>
 
2268
This function should be called after <a class="el" href="group__flac__stream__decoder.html#ga16">FLAC__stream_decoder_new()</a> and FLAC__stream_decoder_set_*() but before any of the FLAC__stream_decoder_process_*() functions. Will set and return the decoder state, which will be FLAC__STREAM_DECODER_SEARCH_FOR_METADATA if initialization succeeded.<p>
 
2269
<dl compact><dt><b>Note:</b></dt><dd>Support for Ogg FLAC in the library is optional. If this library has been built without support for Ogg FLAC, this function will return <code>FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER</code>.</dd></dl>
 
2270
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2271
  <table border="0" cellspacing="2" cellpadding="0">
 
2272
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>An uninitialized decoder instance. </td></tr>
 
2273
    <tr><td valign="top"></td><td valign="top"><em>filename</em>&nbsp;</td><td>The name of the file to decode from. The file will be opened with fopen(). Use <code>NULL</code> to decode from <code>stdin</code>. Note that <code>stdin</code> is not seekable. </td></tr>
 
2274
    <tr><td valign="top"></td><td valign="top"><em>write_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderWriteCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
2275
    <tr><td valign="top"></td><td valign="top"><em>metadata_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderMetadataCallback. This pointer may be <code>NULL</code> if the callback is not desired. </td></tr>
 
2276
    <tr><td valign="top"></td><td valign="top"><em>error_callback</em>&nbsp;</td><td>See FLAC__StreamDecoderErrorCallback. This pointer must not be <code>NULL</code>. </td></tr>
 
2277
    <tr><td valign="top"></td><td valign="top"><em>client_data</em>&nbsp;</td><td>This value will be supplied to callbacks in their <em>client_data</em> argument. </td></tr>
 
2278
  </table>
 
2279
</dl>
 
2280
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2281
</pre></div> </dd></dl>
 
2282
<dl compact><dt><b>Return values:</b></dt><dd>
 
2283
  <table border="0" cellspacing="2" cellpadding="0">
 
2284
    <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamDecoderInitStatus</em>&nbsp;</td><td><code>FLAC__STREAM_DECODER_INIT_STATUS_OK</code> if initialization was successful; see FLAC__StreamDecoderInitStatus for the meanings of other return values. </td></tr>
 
2285
  </table>
 
2286
</dl>
 
2287
    </td>
 
2288
  </tr>
 
2289
</table>
 
2290
<a class="anchor" name="ga42" doxytag="stream_decoder.h::FLAC__stream_decoder_finish"></a><p>
 
2291
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2292
  <tr>
 
2293
    <td class="mdRow">
 
2294
      <table cellpadding="0" cellspacing="0" border="0">
 
2295
        <tr>
 
2296
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_finish           </td>
 
2297
          <td class="md" valign="top">(&nbsp;</td>
 
2298
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
2299
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
2300
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
2301
          <td class="md" nowrap></td>
 
2302
        </tr>
 
2303
      </table>
 
2304
    </td>
 
2305
  </tr>
 
2306
</table>
 
2307
<table cellspacing="5" cellpadding="0" border="0">
 
2308
  <tr>
 
2309
    <td>
 
2310
      &nbsp;
 
2311
    </td>
 
2312
    <td>
 
2313
 
 
2314
<p>
 
2315
Finish the decoding process. Flushes the decoding buffer, releases resources, resets the decoder settings to their defaults, and returns the decoder state to FLAC__STREAM_DECODER_UNINITIALIZED.<p>
 
2316
In the event of a prematurely-terminated decode, it is not strictly necessary to call this immediately before <a class="el" href="group__flac__stream__decoder.html#ga17">FLAC__stream_decoder_delete()</a> but it is good practice to match every FLAC__stream_decoder_init_*() with a <a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish()</a>.<p>
 
2317
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2318
  <table border="0" cellspacing="2" cellpadding="0">
 
2319
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>An uninitialized decoder instance. </td></tr>
 
2320
  </table>
 
2321
</dl>
 
2322
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2323
</pre></div> </dd></dl>
 
2324
<dl compact><dt><b>Return values:</b></dt><dd>
 
2325
  <table border="0" cellspacing="2" cellpadding="0">
 
2326
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if MD5 checking is on AND a STREAMINFO block was available AND the MD5 signature in the STREAMINFO block was non-zero AND the signature does not match the one computed by the decoder; else <code>true</code>. </td></tr>
 
2327
  </table>
 
2328
</dl>
 
2329
    </td>
 
2330
  </tr>
 
2331
</table>
 
2332
<a class="anchor" name="ga43" doxytag="stream_decoder.h::FLAC__stream_decoder_flush"></a><p>
 
2333
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2334
  <tr>
 
2335
    <td class="mdRow">
 
2336
      <table cellpadding="0" cellspacing="0" border="0">
 
2337
        <tr>
 
2338
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_flush           </td>
 
2339
          <td class="md" valign="top">(&nbsp;</td>
 
2340
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
2341
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
2342
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
2343
          <td class="md" nowrap></td>
 
2344
        </tr>
 
2345
      </table>
 
2346
    </td>
 
2347
  </tr>
 
2348
</table>
 
2349
<table cellspacing="5" cellpadding="0" border="0">
 
2350
  <tr>
 
2351
    <td>
 
2352
      &nbsp;
 
2353
    </td>
 
2354
    <td>
 
2355
 
 
2356
<p>
 
2357
Flush the stream input. The decoder's input buffer will be cleared and the state set to <code>FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC</code>. This will also turn off MD5 checking.<p>
 
2358
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2359
  <table border="0" cellspacing="2" cellpadding="0">
 
2360
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance. </td></tr>
 
2361
  </table>
 
2362
</dl>
 
2363
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2364
</pre></div> </dd></dl>
 
2365
<dl compact><dt><b>Return values:</b></dt><dd>
 
2366
  <table border="0" cellspacing="2" cellpadding="0">
 
2367
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>true</code> if successful, else <code>false</code> if a memory allocation error occurs (in which case the state will be set to <code>FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR</code>). </td></tr>
 
2368
  </table>
 
2369
</dl>
 
2370
    </td>
 
2371
  </tr>
 
2372
</table>
 
2373
<a class="anchor" name="ga44" doxytag="stream_decoder.h::FLAC__stream_decoder_reset"></a><p>
 
2374
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2375
  <tr>
 
2376
    <td class="mdRow">
 
2377
      <table cellpadding="0" cellspacing="0" border="0">
 
2378
        <tr>
 
2379
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_reset           </td>
 
2380
          <td class="md" valign="top">(&nbsp;</td>
 
2381
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
2382
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
2383
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
2384
          <td class="md" nowrap></td>
 
2385
        </tr>
 
2386
      </table>
 
2387
    </td>
 
2388
  </tr>
 
2389
</table>
 
2390
<table cellspacing="5" cellpadding="0" border="0">
 
2391
  <tr>
 
2392
    <td>
 
2393
      &nbsp;
 
2394
    </td>
 
2395
    <td>
 
2396
 
 
2397
<p>
 
2398
Reset the decoding process. The decoder's input buffer will be cleared and the state set to <code>FLAC__STREAM_DECODER_SEARCH_FOR_METADATA</code>. This is similar to <a class="el" href="group__flac__stream__decoder.html#ga42">FLAC__stream_decoder_finish()</a> except that the settings are preserved; there is no need to call FLAC__stream_decoder_init_*() before decoding again. MD5 checking will be restored to its original setting.<p>
 
2399
If the decoder is seekable, or was initialized with FLAC__stream_decoder_init*_FILE() or FLAC__stream_decoder_init*_file(), the decoder will also attempt to seek to the beginning of the file. If this rewind fails, this function will return <code>false</code>. It follows that <a class="el" href="group__flac__stream__decoder.html#ga44">FLAC__stream_decoder_reset()</a> cannot be used when decoding from <code>stdin</code>.<p>
 
2400
If the decoder was initialized with FLAC__stream_encoder_init*_stream() and is not seekable (i.e. no seek callback was provided or the seek callback returns <code>FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED</code>), it is the duty of the client to start feeding data from the beginning of the stream on the next FLAC__stream_decoder_process() or FLAC__stream_decoder_process_interleaved() call.<p>
 
2401
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2402
  <table border="0" cellspacing="2" cellpadding="0">
 
2403
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance. </td></tr>
 
2404
  </table>
 
2405
</dl>
 
2406
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2407
</pre></div> </dd></dl>
 
2408
<dl compact><dt><b>Return values:</b></dt><dd>
 
2409
  <table border="0" cellspacing="2" cellpadding="0">
 
2410
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>true</code> if successful, else <code>false</code> if a memory allocation occurs (in which case the state will be set to <code>FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR</code>) or a seek error occurs (the state will be unchanged). </td></tr>
 
2411
  </table>
 
2412
</dl>
 
2413
    </td>
 
2414
  </tr>
 
2415
</table>
 
2416
<a class="anchor" name="ga45" doxytag="stream_decoder.h::FLAC__stream_decoder_process_single"></a><p>
 
2417
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2418
  <tr>
 
2419
    <td class="mdRow">
 
2420
      <table cellpadding="0" cellspacing="0" border="0">
 
2421
        <tr>
 
2422
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_process_single           </td>
 
2423
          <td class="md" valign="top">(&nbsp;</td>
 
2424
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
2425
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
2426
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
2427
          <td class="md" nowrap></td>
 
2428
        </tr>
 
2429
      </table>
 
2430
    </td>
 
2431
  </tr>
 
2432
</table>
 
2433
<table cellspacing="5" cellpadding="0" border="0">
 
2434
  <tr>
 
2435
    <td>
 
2436
      &nbsp;
 
2437
    </td>
 
2438
    <td>
 
2439
 
 
2440
<p>
 
2441
Decode one metadata block or audio frame. This version instructs the decoder to decode a either a single metadata block or a single frame and stop, unless the callbacks return a fatal error or the read callback returns <code>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</code>.<p>
 
2442
As the decoder needs more input it will call the read callback. Depending on what was decoded, the metadata or write callback will be called with the decoded metadata block or audio frame.<p>
 
2443
Unless there is a fatal read error or end of stream, this function will return once one whole frame is decoded. In other words, if the stream is not synchronized or points to a corrupt frame header, the decoder will continue to try and resync until it gets to a valid frame, then decode one frame, then return. If the decoder points to a frame whose frame CRC in the frame footer does not match the computed frame CRC, this function will issue a FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH error to the error callback, and return, having decoded one complete, although corrupt, frame. (Such corrupted frames are sent as silence of the correct length to the write callback.)<p>
 
2444
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2445
  <table border="0" cellspacing="2" cellpadding="0">
 
2446
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>An initialized decoder instance. </td></tr>
 
2447
  </table>
 
2448
</dl>
 
2449
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2450
</pre></div> </dd></dl>
 
2451
<dl compact><dt><b>Return values:</b></dt><dd>
 
2452
  <table border="0" cellspacing="2" cellpadding="0">
 
2453
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if any fatal read, write, or memory allocation error occurred (meaning decoding must stop), else <code>true</code>; for more information about the decoder, check the decoder state with <a class="el" href="group__flac__stream__decoder.html#ga26">FLAC__stream_decoder_get_state()</a>. </td></tr>
 
2454
  </table>
 
2455
</dl>
 
2456
    </td>
 
2457
  </tr>
 
2458
</table>
 
2459
<a class="anchor" name="ga46" doxytag="stream_decoder.h::FLAC__stream_decoder_process_until_end_of_metadata"></a><p>
 
2460
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2461
  <tr>
 
2462
    <td class="mdRow">
 
2463
      <table cellpadding="0" cellspacing="0" border="0">
 
2464
        <tr>
 
2465
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_process_until_end_of_metadata           </td>
 
2466
          <td class="md" valign="top">(&nbsp;</td>
 
2467
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
2468
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
2469
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
2470
          <td class="md" nowrap></td>
 
2471
        </tr>
 
2472
      </table>
 
2473
    </td>
 
2474
  </tr>
 
2475
</table>
 
2476
<table cellspacing="5" cellpadding="0" border="0">
 
2477
  <tr>
 
2478
    <td>
 
2479
      &nbsp;
 
2480
    </td>
 
2481
    <td>
 
2482
 
 
2483
<p>
 
2484
Decode until the end of the metadata. This version instructs the decoder to decode from the current position and continue until all the metadata has been read, or until the callbacks return a fatal error or the read callback returns <code>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</code>.<p>
 
2485
As the decoder needs more input it will call the read callback. As each metadata block is decoded, the metadata callback will be called with the decoded metadata.<p>
 
2486
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2487
  <table border="0" cellspacing="2" cellpadding="0">
 
2488
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>An initialized decoder instance. </td></tr>
 
2489
  </table>
 
2490
</dl>
 
2491
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2492
</pre></div> </dd></dl>
 
2493
<dl compact><dt><b>Return values:</b></dt><dd>
 
2494
  <table border="0" cellspacing="2" cellpadding="0">
 
2495
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if any fatal read, write, or memory allocation error occurred (meaning decoding must stop), else <code>true</code>; for more information about the decoder, check the decoder state with <a class="el" href="group__flac__stream__decoder.html#ga26">FLAC__stream_decoder_get_state()</a>. </td></tr>
 
2496
  </table>
 
2497
</dl>
 
2498
    </td>
 
2499
  </tr>
 
2500
</table>
 
2501
<a class="anchor" name="ga47" doxytag="stream_decoder.h::FLAC__stream_decoder_process_until_end_of_stream"></a><p>
 
2502
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2503
  <tr>
 
2504
    <td class="mdRow">
 
2505
      <table cellpadding="0" cellspacing="0" border="0">
 
2506
        <tr>
 
2507
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_process_until_end_of_stream           </td>
 
2508
          <td class="md" valign="top">(&nbsp;</td>
 
2509
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
2510
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
2511
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
2512
          <td class="md" nowrap></td>
 
2513
        </tr>
 
2514
      </table>
 
2515
    </td>
 
2516
  </tr>
 
2517
</table>
 
2518
<table cellspacing="5" cellpadding="0" border="0">
 
2519
  <tr>
 
2520
    <td>
 
2521
      &nbsp;
 
2522
    </td>
 
2523
    <td>
 
2524
 
 
2525
<p>
 
2526
Decode until the end of the stream. This version instructs the decoder to decode from the current position and continue until the end of stream (the read callback returns <code>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</code>), or until the callbacks return a fatal error.<p>
 
2527
As the decoder needs more input it will call the read callback. As each metadata block and frame is decoded, the metadata or write callback will be called with the decoded metadata or frame.<p>
 
2528
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2529
  <table border="0" cellspacing="2" cellpadding="0">
 
2530
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>An initialized decoder instance. </td></tr>
 
2531
  </table>
 
2532
</dl>
 
2533
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2534
</pre></div> </dd></dl>
 
2535
<dl compact><dt><b>Return values:</b></dt><dd>
 
2536
  <table border="0" cellspacing="2" cellpadding="0">
 
2537
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if any fatal read, write, or memory allocation error occurred (meaning decoding must stop), else <code>true</code>; for more information about the decoder, check the decoder state with <a class="el" href="group__flac__stream__decoder.html#ga26">FLAC__stream_decoder_get_state()</a>. </td></tr>
 
2538
  </table>
 
2539
</dl>
 
2540
    </td>
 
2541
  </tr>
 
2542
</table>
 
2543
<a class="anchor" name="ga48" doxytag="stream_decoder.h::FLAC__stream_decoder_skip_single_frame"></a><p>
 
2544
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2545
  <tr>
 
2546
    <td class="mdRow">
 
2547
      <table cellpadding="0" cellspacing="0" border="0">
 
2548
        <tr>
 
2549
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_skip_single_frame           </td>
 
2550
          <td class="md" valign="top">(&nbsp;</td>
 
2551
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
2552
          <td class="mdname1" valign="top" nowrap> <em>decoder</em>          </td>
 
2553
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
2554
          <td class="md" nowrap></td>
 
2555
        </tr>
 
2556
      </table>
 
2557
    </td>
 
2558
  </tr>
 
2559
</table>
 
2560
<table cellspacing="5" cellpadding="0" border="0">
 
2561
  <tr>
 
2562
    <td>
 
2563
      &nbsp;
 
2564
    </td>
 
2565
    <td>
 
2566
 
 
2567
<p>
 
2568
Skip one audio frame. This version instructs the decoder to 'skip' a single frame and stop, unless the callbacks return a fatal error or the read callback returns <code>FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM</code>.<p>
 
2569
The decoding flow is the same as what occurs when <a class="el" href="group__flac__stream__decoder.html#ga45">FLAC__stream_decoder_process_single()</a> is called to process an audio frame, except that this function does not decode the parsed data into PCM or call the write callback. The integrity of the frame is still checked the same way as in the other process functions.<p>
 
2570
This function will return once one whole frame is skipped, in the same way that <a class="el" href="group__flac__stream__decoder.html#ga45">FLAC__stream_decoder_process_single()</a> will return once one whole frame is decoded.<p>
 
2571
This function can be used in more quickly determining FLAC frame boundaries when decoding of the actual data is not needed, for example when an application is separating a FLAC stream into frames for editing or storing in a container. To do this, the application can use <a class="el" href="group__flac__stream__decoder.html#ga48">FLAC__stream_decoder_skip_single_frame()</a> to quickly advance to the next frame, then use <a class="el" href="group__flac__stream__decoder.html#ga35">FLAC__stream_decoder_get_decode_position()</a> to find the new frame boundary.<p>
 
2572
This function should only be called when the stream has advanced past all the metadata, otherwise it will return <code>false</code>.<p>
 
2573
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2574
  <table border="0" cellspacing="2" cellpadding="0">
 
2575
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>An initialized decoder instance not in a metadata state. </td></tr>
 
2576
  </table>
 
2577
</dl>
 
2578
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2579
</pre></div> </dd></dl>
 
2580
<dl compact><dt><b>Return values:</b></dt><dd>
 
2581
  <table border="0" cellspacing="2" cellpadding="0">
 
2582
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if any fatal read, write, or memory allocation error occurred (meaning decoding must stop), or if the decoder is in the FLAC__STREAM_DECODER_SEARCH_FOR_METADATA or FLAC__STREAM_DECODER_READ_METADATA state, else <code>true</code>; for more information about the decoder, check the decoder state with <a class="el" href="group__flac__stream__decoder.html#ga26">FLAC__stream_decoder_get_state()</a>. </td></tr>
 
2583
  </table>
 
2584
</dl>
 
2585
    </td>
 
2586
  </tr>
 
2587
</table>
 
2588
<a class="anchor" name="ga49" doxytag="stream_decoder.h::FLAC__stream_decoder_seek_absolute"></a><p>
 
2589
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2590
  <tr>
 
2591
    <td class="mdRow">
 
2592
      <table cellpadding="0" cellspacing="0" border="0">
 
2593
        <tr>
 
2594
          <td class="md" nowrap valign="top">FLAC__bool FLAC__stream_decoder_seek_absolute           </td>
 
2595
          <td class="md" valign="top">(&nbsp;</td>
 
2596
          <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamDecoder.html">FLAC__StreamDecoder</a> *&nbsp;</td>
 
2597
          <td class="mdname" nowrap> <em>decoder</em>, </td>
 
2598
        </tr>
 
2599
        <tr>
 
2600
          <td class="md" nowrap align="right"></td>
 
2601
          <td class="md"></td>
 
2602
          <td class="md" nowrap>FLAC__uint64&nbsp;</td>
 
2603
          <td class="mdname" nowrap> <em>sample</em></td>
 
2604
        </tr>
 
2605
        <tr>
 
2606
          <td class="md"></td>
 
2607
          <td class="md">)&nbsp;</td>
 
2608
          <td class="md" colspan="2"></td>
 
2609
        </tr>
 
2610
      </table>
 
2611
    </td>
 
2612
  </tr>
 
2613
</table>
 
2614
<table cellspacing="5" cellpadding="0" border="0">
 
2615
  <tr>
 
2616
    <td>
 
2617
      &nbsp;
 
2618
    </td>
 
2619
    <td>
 
2620
 
 
2621
<p>
 
2622
Flush the input and seek to an absolute sample. Decoding will resume at the given sample. Note that because of this, the next write callback may contain a partial block. The client must support seeking the input or this function will fail and return <code>false</code>. Furthermore, if the decoder state is <code>FLAC__STREAM_DECODER_SEEK_ERROR</code>, then the decoder must be flushed with <a class="el" href="group__flac__stream__decoder.html#ga43">FLAC__stream_decoder_flush()</a> or reset with <a class="el" href="group__flac__stream__decoder.html#ga44">FLAC__stream_decoder_reset()</a> before decoding can continue.<p>
 
2623
<dl compact><dt><b>Parameters:</b></dt><dd>
 
2624
  <table border="0" cellspacing="2" cellpadding="0">
 
2625
    <tr><td valign="top"></td><td valign="top"><em>decoder</em>&nbsp;</td><td>A decoder instance. </td></tr>
 
2626
    <tr><td valign="top"></td><td valign="top"><em>sample</em>&nbsp;</td><td>The target sample number to seek to. </td></tr>
 
2627
  </table>
 
2628
</dl>
 
2629
<dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> decoder != NULL 
 
2630
</pre></div> </dd></dl>
 
2631
<dl compact><dt><b>Return values:</b></dt><dd>
 
2632
  <table border="0" cellspacing="2" cellpadding="0">
 
2633
    <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>true</code> if successful, else <code>false</code>. </td></tr>
 
2634
  </table>
 
2635
</dl>
 
2636
    </td>
1775
2637
  </tr>
1776
2638
</table>
1777
2639
<hr><h2>Variable Documentation</h2>
1778
 
<a name="a0" doxytag="stream_decoder.h::FLAC__StreamDecoderStateString"></a><p>
1779
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
2640
<a class="anchor" name="ga0" doxytag="stream_decoder.h::FLAC__StreamDecoderStateString"></a><p>
 
2641
<table class="mdTable" cellpadding="2" cellspacing="0">
1780
2642
  <tr>
1781
 
    <td class="md">
 
2643
    <td class="mdRow">
1782
2644
      <table cellpadding="0" cellspacing="0" border="0">
1783
2645
        <tr>
1784
 
          <td class="md" nowrap valign="top"> const char* const FLAC__StreamDecoderStateString[]
 
2646
          <td class="md" nowrap valign="top">const char* const <a class="el" href="group__flac__stream__decoder.html#ga0">FLAC__StreamDecoderStateString</a>[]          </td>
 
2647
        </tr>
1785
2648
      </table>
1786
2649
    </td>
1787
2650
  </tr>
1788
2651
</table>
1789
 
<table cellspacing=5 cellpadding=0 border=0>
 
2652
<table cellspacing="5" cellpadding="0" border="0">
1790
2653
  <tr>
1791
2654
    <td>
1792
2655
      &nbsp;
1794
2657
    <td>
1795
2658
 
1796
2659
<p>
1797
 
Maps a FLAC__StreamDecoderState to a C string.
1798
 
<p>
 
2660
Maps a FLAC__StreamDecoderState to a C string.<p>
1799
2661
Using a FLAC__StreamDecoderState as the index to this array will give the string equivalent. The contents should not be modified.     </td>
1800
2662
  </tr>
1801
2663
</table>
1802
 
<a name="a1" doxytag="stream_decoder.h::FLAC__StreamDecoderReadStatusString"></a><p>
1803
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1804
 
  <tr>
1805
 
    <td class="md">
1806
 
      <table cellpadding="0" cellspacing="0" border="0">
1807
 
        <tr>
1808
 
          <td class="md" nowrap valign="top"> const char* const FLAC__StreamDecoderReadStatusString[]
1809
 
      </table>
1810
 
    </td>
1811
 
  </tr>
1812
 
</table>
1813
 
<table cellspacing=5 cellpadding=0 border=0>
1814
 
  <tr>
1815
 
    <td>
1816
 
      &nbsp;
1817
 
    </td>
1818
 
    <td>
1819
 
 
1820
 
<p>
1821
 
Maps a FLAC__StreamDecoderReadStatus to a C string.
1822
 
<p>
 
2664
<a class="anchor" name="ga1" doxytag="stream_decoder.h::FLAC__StreamDecoderInitStatusString"></a><p>
 
2665
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2666
  <tr>
 
2667
    <td class="mdRow">
 
2668
      <table cellpadding="0" cellspacing="0" border="0">
 
2669
        <tr>
 
2670
          <td class="md" nowrap valign="top">const char* const <a class="el" href="group__flac__stream__decoder.html#ga1">FLAC__StreamDecoderInitStatusString</a>[]          </td>
 
2671
        </tr>
 
2672
      </table>
 
2673
    </td>
 
2674
  </tr>
 
2675
</table>
 
2676
<table cellspacing="5" cellpadding="0" border="0">
 
2677
  <tr>
 
2678
    <td>
 
2679
      &nbsp;
 
2680
    </td>
 
2681
    <td>
 
2682
 
 
2683
<p>
 
2684
Maps a FLAC__StreamDecoderInitStatus to a C string.<p>
 
2685
Using a FLAC__StreamDecoderInitStatus as the index to this array will give the string equivalent. The contents should not be modified.     </td>
 
2686
  </tr>
 
2687
</table>
 
2688
<a class="anchor" name="ga2" doxytag="stream_decoder.h::FLAC__StreamDecoderReadStatusString"></a><p>
 
2689
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2690
  <tr>
 
2691
    <td class="mdRow">
 
2692
      <table cellpadding="0" cellspacing="0" border="0">
 
2693
        <tr>
 
2694
          <td class="md" nowrap valign="top">const char* const <a class="el" href="group__flac__stream__decoder.html#ga2">FLAC__StreamDecoderReadStatusString</a>[]          </td>
 
2695
        </tr>
 
2696
      </table>
 
2697
    </td>
 
2698
  </tr>
 
2699
</table>
 
2700
<table cellspacing="5" cellpadding="0" border="0">
 
2701
  <tr>
 
2702
    <td>
 
2703
      &nbsp;
 
2704
    </td>
 
2705
    <td>
 
2706
 
 
2707
<p>
 
2708
Maps a FLAC__StreamDecoderReadStatus to a C string.<p>
1823
2709
Using a FLAC__StreamDecoderReadStatus as the index to this array will give the string equivalent. The contents should not be modified.     </td>
1824
2710
  </tr>
1825
2711
</table>
1826
 
<a name="a2" doxytag="stream_decoder.h::FLAC__StreamDecoderWriteStatusString"></a><p>
1827
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
1828
 
  <tr>
1829
 
    <td class="md">
1830
 
      <table cellpadding="0" cellspacing="0" border="0">
1831
 
        <tr>
1832
 
          <td class="md" nowrap valign="top"> const char* const FLAC__StreamDecoderWriteStatusString[]
1833
 
      </table>
1834
 
    </td>
1835
 
  </tr>
1836
 
</table>
1837
 
<table cellspacing=5 cellpadding=0 border=0>
1838
 
  <tr>
1839
 
    <td>
1840
 
      &nbsp;
1841
 
    </td>
1842
 
    <td>
1843
 
 
1844
 
<p>
1845
 
Maps a FLAC__StreamDecoderWriteStatus to a C string.
1846
 
<p>
 
2712
<a class="anchor" name="ga3" doxytag="stream_decoder.h::FLAC__StreamDecoderSeekStatusString"></a><p>
 
2713
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2714
  <tr>
 
2715
    <td class="mdRow">
 
2716
      <table cellpadding="0" cellspacing="0" border="0">
 
2717
        <tr>
 
2718
          <td class="md" nowrap valign="top">const char* const <a class="el" href="group__flac__stream__decoder.html#ga3">FLAC__StreamDecoderSeekStatusString</a>[]          </td>
 
2719
        </tr>
 
2720
      </table>
 
2721
    </td>
 
2722
  </tr>
 
2723
</table>
 
2724
<table cellspacing="5" cellpadding="0" border="0">
 
2725
  <tr>
 
2726
    <td>
 
2727
      &nbsp;
 
2728
    </td>
 
2729
    <td>
 
2730
 
 
2731
<p>
 
2732
Maps a FLAC__StreamDecoderSeekStatus to a C string.<p>
 
2733
Using a FLAC__StreamDecoderSeekStatus as the index to this array will give the string equivalent. The contents should not be modified.     </td>
 
2734
  </tr>
 
2735
</table>
 
2736
<a class="anchor" name="ga4" doxytag="stream_decoder.h::FLAC__StreamDecoderTellStatusString"></a><p>
 
2737
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2738
  <tr>
 
2739
    <td class="mdRow">
 
2740
      <table cellpadding="0" cellspacing="0" border="0">
 
2741
        <tr>
 
2742
          <td class="md" nowrap valign="top">const char* const <a class="el" href="group__flac__stream__decoder.html#ga4">FLAC__StreamDecoderTellStatusString</a>[]          </td>
 
2743
        </tr>
 
2744
      </table>
 
2745
    </td>
 
2746
  </tr>
 
2747
</table>
 
2748
<table cellspacing="5" cellpadding="0" border="0">
 
2749
  <tr>
 
2750
    <td>
 
2751
      &nbsp;
 
2752
    </td>
 
2753
    <td>
 
2754
 
 
2755
<p>
 
2756
Maps a FLAC__StreamDecoderTellStatus to a C string.<p>
 
2757
Using a FLAC__StreamDecoderTellStatus as the index to this array will give the string equivalent. The contents should not be modified.     </td>
 
2758
  </tr>
 
2759
</table>
 
2760
<a class="anchor" name="ga5" doxytag="stream_decoder.h::FLAC__StreamDecoderLengthStatusString"></a><p>
 
2761
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2762
  <tr>
 
2763
    <td class="mdRow">
 
2764
      <table cellpadding="0" cellspacing="0" border="0">
 
2765
        <tr>
 
2766
          <td class="md" nowrap valign="top">const char* const <a class="el" href="group__flac__stream__decoder.html#ga5">FLAC__StreamDecoderLengthStatusString</a>[]          </td>
 
2767
        </tr>
 
2768
      </table>
 
2769
    </td>
 
2770
  </tr>
 
2771
</table>
 
2772
<table cellspacing="5" cellpadding="0" border="0">
 
2773
  <tr>
 
2774
    <td>
 
2775
      &nbsp;
 
2776
    </td>
 
2777
    <td>
 
2778
 
 
2779
<p>
 
2780
Maps a FLAC__StreamDecoderLengthStatus to a C string.<p>
 
2781
Using a FLAC__StreamDecoderLengthStatus as the index to this array will give the string equivalent. The contents should not be modified.     </td>
 
2782
  </tr>
 
2783
</table>
 
2784
<a class="anchor" name="ga6" doxytag="stream_decoder.h::FLAC__StreamDecoderWriteStatusString"></a><p>
 
2785
<table class="mdTable" cellpadding="2" cellspacing="0">
 
2786
  <tr>
 
2787
    <td class="mdRow">
 
2788
      <table cellpadding="0" cellspacing="0" border="0">
 
2789
        <tr>
 
2790
          <td class="md" nowrap valign="top">const char* const <a class="el" href="group__flac__stream__decoder.html#ga6">FLAC__StreamDecoderWriteStatusString</a>[]          </td>
 
2791
        </tr>
 
2792
      </table>
 
2793
    </td>
 
2794
  </tr>
 
2795
</table>
 
2796
<table cellspacing="5" cellpadding="0" border="0">
 
2797
  <tr>
 
2798
    <td>
 
2799
      &nbsp;
 
2800
    </td>
 
2801
    <td>
 
2802
 
 
2803
<p>
 
2804
Maps a FLAC__StreamDecoderWriteStatus to a C string.<p>
1847
2805
Using a FLAC__StreamDecoderWriteStatus as the index to this array will give the string equivalent. The contents should not be modified.     </td>
1848
2806
  </tr>
1849
2807
</table>
1850
 
<a name="a3" doxytag="stream_decoder.h::FLAC__StreamDecoderErrorStatusString"></a><p>
1851
 
<table width="100%" cellpadding="2" cellspacing="0" border="0">
 
2808
<a class="anchor" name="ga7" doxytag="stream_decoder.h::FLAC__StreamDecoderErrorStatusString"></a><p>
 
2809
<table class="mdTable" cellpadding="2" cellspacing="0">
1852
2810
  <tr>
1853
 
    <td class="md">
 
2811
    <td class="mdRow">
1854
2812
      <table cellpadding="0" cellspacing="0" border="0">
1855
2813
        <tr>
1856
 
          <td class="md" nowrap valign="top"> const char* const FLAC__StreamDecoderErrorStatusString[]
 
2814
          <td class="md" nowrap valign="top">const char* const <a class="el" href="group__flac__stream__decoder.html#ga7">FLAC__StreamDecoderErrorStatusString</a>[]          </td>
 
2815
        </tr>
1857
2816
      </table>
1858
2817
    </td>
1859
2818
  </tr>
1860
2819
</table>
1861
 
<table cellspacing=5 cellpadding=0 border=0>
 
2820
<table cellspacing="5" cellpadding="0" border="0">
1862
2821
  <tr>
1863
2822
    <td>
1864
2823
      &nbsp;
1866
2825
    <td>
1867
2826
 
1868
2827
<p>
1869
 
Maps a FLAC__StreamDecoderErrorStatus to a C string.
1870
 
<p>
 
2828
Maps a FLAC__StreamDecoderErrorStatus to a C string.<p>
1871
2829
Using a FLAC__StreamDecoderErrorStatus as the index to this array will give the string equivalent. The contents should not be modified.     </td>
1872
2830
  </tr>
1873
2831
</table>
1874
 
<hr><address><small>Generated on Fri Feb 4 18:39:17 2005 for FLAC by
1875
 
<a href="http://www.doxygen.org/index.html">
1876
 
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
1877
 
width=110 height=53></a>1.2.14 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
1878
 
 &copy;&nbsp;1997-2002</small></address>
 
2832
 
 
2833
<hr size="1">
 
2834
<div class="copyright">
 
2835
        <!-- @@@ oh so hacky -->
 
2836
        <table>
 
2837
                <tr>
 
2838
                        <td align="left">
 
2839
                                Copyright (c) 2000,2001,2002,2003,2004,2005,2006,2007  Josh Coalson
 
2840
                        </td>
 
2841
                        <td width="1%" align="right">
 
2842
                                <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=13478&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
 
2843
                        </td>
 
2844
                </tr>
 
2845
        </table>
 
2846
</div>
 
2847
<!-- Copyright (c)  2000,2001,2002,2003,2004,2005,2006,2007  Josh Coalson -->
 
2848
<!-- Permission is granted to copy, distribute and/or modify this document -->
 
2849
<!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
 
2850
<!-- or any later version published by the Free Software Foundation; -->
 
2851
<!-- with no invariant sections. -->
 
2852
<!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->
1879
2853
</body>
1880
2854
</html>