2025-10-11 01:35:43 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en-US" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=11" / >
< meta name = "generator" content = "Doxygen 1.14.0" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > libaaruformat: src/compression/flac.c File Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< script type = "text/javascript" src = "clipboard.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< script type = "text/javascript" src = "cookie.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr id = "projectrow" >
< td id = "projectalign" >
< div id = "projectname" > libaaruformat< span id = "projectnumber" >   1.0< / span >
< / div >
< div id = "projectbrief" > Aaru Data Preservation Suite - Format Library< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.14.0 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search/",'.html');
< / script >
< script type = "text/javascript" >
$(function() { codefold.init(); });
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
< / script >
< div id = "main-nav" > < / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
$(function(){initNavTree('flac_8c.html','',''); });
< / script >
< div id = "container" >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< div id = "MSearchResults" >
< div class = "SRPage" >
< div id = "SRIndex" >
< div id = "SRResults" > < / div >
< div class = "SRStatus" id = "Loading" > Loading...< / div >
< div class = "SRStatus" id = "Searching" > Searching...< / div >
< div class = "SRStatus" id = "NoMatches" > No Matches< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "header" >
< div class = "headertitle" > < div class = "title" > flac.c File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< div class = "textblock" > < code > #include < stdint.h> < / code > < br / >
< code > #include < stdlib.h> < / code > < br / >
< code > #include < string.h> < / code > < br / >
< code > #include " < a class = "el" href = "aaruformat_8h_source.html" > aaruformat.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "flac_8h_source.html" > flac.h< / a > " < / code > < br / >
< code > #include " FLAC/metadata.h" < / code > < br / >
< code > #include " FLAC/stream_decoder.h" < / code > < br / >
< code > #include " FLAC/stream_encoder.h" < / code > < br / >
< / div >
< p > < a href = "flac_8c_source.html" > Go to the source code of this file.< / a > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 id = "header-func-members" class = "groupheader" > < a id = "func-members" name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a4ae2146e619c2a746b41c778f71f2e8c" id = "r_a4ae2146e619c2a746b41c778f71f2e8c" > < td class = "memItemLeft" align = "right" valign = "top" > static FLAC__StreamDecoderReadStatus  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "#a4ae2146e619c2a746b41c778f71f2e8c" > read_callback< / a > (const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data)< / td > < / tr >
< tr class = "memitem:ad65b9acb1c0c9401aacf5e711c2c6cf7" id = "r_ad65b9acb1c0c9401aacf5e711c2c6cf7" > < td class = "memItemLeft" align = "right" valign = "top" > static FLAC__StreamDecoderWriteStatus  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "#ad65b9acb1c0c9401aacf5e711c2c6cf7" > write_callback< / a > (const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 *const buffer[], void *client_data)< / td > < / tr >
< tr class = "memitem:ae0a385215d06bca05d1212caa0d0fa23" id = "r_ae0a385215d06bca05d1212caa0d0fa23" > < td class = "memItemLeft" align = "right" valign = "top" > static void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "#ae0a385215d06bca05d1212caa0d0fa23" > error_callback< / a > (const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data)< / td > < / tr >
< tr class = "memitem:af0ff6ad1495d50a8fa0ce0005be69471" id = "r_af0ff6ad1495d50a8fa0ce0005be69471" > < td class = "memItemLeft" align = "right" valign = "top" > size_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "#af0ff6ad1495d50a8fa0ce0005be69471" > aaruf_flac_decode_redbook_buffer< / a > (uint8_t *dst_buffer, size_t dst_size, const uint8_t *src_buffer, size_t src_size)< / td > < / tr >
< tr class = "memdesc:af0ff6ad1495d50a8fa0ce0005be69471" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Decodes a FLAC-compressed Red Book audio buffer. < br / > < / td > < / tr >
< tr class = "memitem:a4c8139a16dc0f340140a71a2322f9c26" id = "r_a4c8139a16dc0f340140a71a2322f9c26" > < td class = "memItemLeft" align = "right" valign = "top" > static FLAC__StreamEncoderWriteStatus  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "#a4c8139a16dc0f340140a71a2322f9c26" > encoder_write_callback< / a > (const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], size_t bytes, uint32_t samples, uint32_t current_frame, void *client_data)< / td > < / tr >
< tr class = "memitem:a102023fe64e4bd24cd6d4124f0d74e54" id = "r_a102023fe64e4bd24cd6d4124f0d74e54" > < td class = "memItemLeft" align = "right" valign = "top" > size_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "#a102023fe64e4bd24cd6d4124f0d74e54" > aaruf_flac_encode_redbook_buffer< / a > (uint8_t *dst_buffer, size_t dst_size, const uint8_t *src_buffer, size_t src_size, uint32_t blocksize, int32_t do_mid_side_stereo, int32_t loose_mid_side_stereo, const char *apodization, uint32_t max_lpc_order, uint32_t qlp_coeff_precision, int32_t do_qlp_coeff_prec_search, int32_t do_exhaustive_model_search, uint32_t min_residual_partition_order, uint32_t max_residual_partition_order, const char *application_id, uint32_t application_id_len)< / td > < / tr >
< tr class = "memdesc:a102023fe64e4bd24cd6d4124f0d74e54" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Encodes a Red Book audio buffer to FLAC format. < br / > < / td > < / tr >
< / table >
< a name = "doc-func-members" id = "doc-func-members" > < / a > < h2 id = "header-doc-func-members" class = "groupheader" > Function Documentation< / h2 >
< a id = "af0ff6ad1495d50a8fa0ce0005be69471" name = "af0ff6ad1495d50a8fa0ce0005be69471" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#af0ff6ad1495d50a8fa0ce0005be69471" > ◆   < / a > < / span > aaruf_flac_decode_redbook_buffer()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > size_t aaruf_flac_decode_redbook_buffer < / td >
< td > (< / td >
< td class = "paramtype" > uint8_t *< / td > < td class = "paramname" > < span class = "paramname" > < em > dst_buffer< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t< / td > < td class = "paramname" > < span class = "paramname" > < em > dst_size< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const uint8_t *< / td > < td class = "paramname" > < span class = "paramname" > < em > src_buffer< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t< / td > < td class = "paramname" > < span class = "paramname" > < em > src_size< / em > < / span >   )< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Decodes a FLAC-compressed Red Book audio buffer. < / p >
< p > Decompresses FLAC-compressed Red Book audio data into the destination buffer.< / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > dst_buffer< / td > < td > Pointer to the destination buffer. < / td > < / tr >
< tr > < td class = "paramname" > dst_size< / td > < td > Size of the destination buffer. < / td > < / tr >
< tr > < td class = "paramname" > src_buffer< / td > < td > Pointer to the source (compressed) buffer. < / td > < / tr >
< tr > < td class = "paramname" > src_size< / td > < td > Size of the source buffer. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > Number of bytes written to the destination buffer. < / dd > < / dl >
< p class = "definition" > Definition at line < a class = "el" href = "flac_8c_source.html#l00048" > 48< / a > of file < a class = "el" href = "flac_8c_source.html" > flac.c< / a > .< / p >
< p class = "reference" > References < a class = "el" href = "decls_8h_source.html#l00045" > AARU_CALL< / a > , < a class = "el" href = "decls_8h_source.html#l00054" > AARU_EXPORT< / a > , < a class = "el" href = "flac_8h_source.html#l00027" > aaru_flac_ctx::dst_buffer< / a > , < a class = "el" href = "flac_8h_source.html#l00028" > aaru_flac_ctx::dst_len< / a > , < a class = "el" href = "flac_8h_source.html#l00029" > aaru_flac_ctx::dst_pos< / a > , < a class = "el" href = "flac_8h_source.html#l00030" > aaru_flac_ctx::error< / a > , < a class = "el" href = "flac_8c_source.html#l00141" > error_callback()< / a > , < a class = "el" href = "flac_8c_source.html#l00097" > read_callback()< / a > , < a class = "el" href = "flac_8h_source.html#l00024" > aaru_flac_ctx::src_buffer< / a > , < a class = "el" href = "flac_8h_source.html#l00025" > aaru_flac_ctx::src_len< / a > , < a class = "el" href = "flac_8h_source.html#l00026" > aaru_flac_ctx::src_pos< / a > , and < a class = "el" href = "flac_8c_source.html#l00112" > write_callback()< / a > .< / p >
2025-10-11 12:43:39 +01:00
< p class = "reference" > Referenced by < a class = "el" href = "read_8c_source.html#l00253" > aaruf_read_sector()< / a > .< / p >
2025-10-11 01:35:43 +01:00
< / div >
< / div >
< a id = "a102023fe64e4bd24cd6d4124f0d74e54" name = "a102023fe64e4bd24cd6d4124f0d74e54" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a102023fe64e4bd24cd6d4124f0d74e54" > ◆   < / a > < / span > aaruf_flac_encode_redbook_buffer()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > size_t aaruf_flac_encode_redbook_buffer < / td >
< td > (< / td >
< td class = "paramtype" > uint8_t *< / td > < td class = "paramname" > < span class = "paramname" > < em > dst_buffer< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t< / td > < td class = "paramname" > < span class = "paramname" > < em > dst_size< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const uint8_t *< / td > < td class = "paramname" > < span class = "paramname" > < em > src_buffer< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t< / td > < td class = "paramname" > < span class = "paramname" > < em > src_size< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > blocksize< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > do_mid_side_stereo< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > loose_mid_side_stereo< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const char *< / td > < td class = "paramname" > < span class = "paramname" > < em > apodization< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > max_lpc_order< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > qlp_coeff_precision< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > do_qlp_coeff_prec_search< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > do_exhaustive_model_search< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > min_residual_partition_order< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > max_residual_partition_order< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const char *< / td > < td class = "paramname" > < span class = "paramname" > < em > application_id< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > application_id_len< / em > < / span >   )< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Encodes a Red Book audio buffer to FLAC format. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > dst_buffer< / td > < td > Pointer to the destination buffer for FLAC data. < / td > < / tr >
< tr > < td class = "paramname" > dst_size< / td > < td > Size of the destination buffer in bytes. < / td > < / tr >
< tr > < td class = "paramname" > src_buffer< / td > < td > Pointer to the source Red Book audio buffer. < / td > < / tr >
< tr > < td class = "paramname" > src_size< / td > < td > Size of the source buffer in bytes. < / td > < / tr >
< tr > < td class = "paramname" > blocksize< / td > < td > FLAC block size. < / td > < / tr >
< tr > < td class = "paramname" > do_mid_side_stereo< / td > < td > Enable mid-side stereo encoding. < / td > < / tr >
< tr > < td class = "paramname" > loose_mid_side_stereo< / td > < td > Enable loose mid-side stereo encoding. < / td > < / tr >
< tr > < td class = "paramname" > apodization< / td > < td > Apodization string for FLAC encoder. < / td > < / tr >
< tr > < td class = "paramname" > max_lpc_order< / td > < td > Maximum LPC order. < / td > < / tr >
< tr > < td class = "paramname" > qlp_coeff_precision< / td > < td > QLP coefficient precision. < / td > < / tr >
< tr > < td class = "paramname" > do_qlp_coeff_prec_search< / td > < td > Enable QLP coefficient precision search. < / td > < / tr >
< tr > < td class = "paramname" > do_exhaustive_model_search< / td > < td > Enable exhaustive model search. < / td > < / tr >
< tr > < td class = "paramname" > min_residual_partition_order< / td > < td > Minimum residual partition order. < / td > < / tr >
< tr > < td class = "paramname" > max_residual_partition_order< / td > < td > Maximum residual partition order. < / td > < / tr >
< tr > < td class = "paramname" > application_id< / td > < td > Application ID string for FLAC encoder. < / td > < / tr >
< tr > < td class = "paramname" > application_id_len< / td > < td > Length of the application ID string. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > Number of bytes written to the destination buffer. < / dd > < / dl >
< p class = "definition" > Definition at line < a class = "el" href = "flac_8c_source.html#l00175" > 175< / a > of file < a class = "el" href = "flac_8c_source.html" > flac.c< / a > .< / p >
< p class = "reference" > References < a class = "el" href = "decls_8h_source.html#l00045" > AARU_CALL< / a > , < a class = "el" href = "decls_8h_source.html#l00054" > AARU_EXPORT< / a > , < a class = "el" href = "flac_8h_source.html#l00027" > aaru_flac_ctx::dst_buffer< / a > , < a class = "el" href = "flac_8h_source.html#l00028" > aaru_flac_ctx::dst_len< / a > , < a class = "el" href = "flac_8h_source.html#l00029" > aaru_flac_ctx::dst_pos< / a > , < a class = "el" href = "flac_8c_source.html#l00275" > encoder_write_callback()< / a > , < a class = "el" href = "flac_8h_source.html#l00030" > aaru_flac_ctx::error< / a > , < a class = "el" href = "flac_8h_source.html#l00024" > aaru_flac_ctx::src_buffer< / a > , < a class = "el" href = "flac_8h_source.html#l00025" > aaru_flac_ctx::src_len< / a > , and < a class = "el" href = "flac_8h_source.html#l00026" > aaru_flac_ctx::src_pos< / a > .< / p >
2025-12-12 12:25:02 +00:00
< p class = "reference" > Referenced by < a class = "el" href = "write_8c_source.html#l01427" > aaruf_close_current_block()< / a > .< / p >
2025-10-11 01:35:43 +01:00
< / div >
< / div >
< a id = "a4c8139a16dc0f340140a71a2322f9c26" name = "a4c8139a16dc0f340140a71a2322f9c26" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a4c8139a16dc0f340140a71a2322f9c26" > ◆   < / a > < / span > encoder_write_callback()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > FLAC__StreamEncoderWriteStatus encoder_write_callback < / td >
< td > (< / td >
< td class = "paramtype" > const FLAC__StreamEncoder *< / td > < td class = "paramname" > < span class = "paramname" > < em > encoder< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const FLAC__byte< / td > < td class = "paramname" > < span class = "paramname" > < em > buffer< / em > < / span > [], < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t< / td > < td class = "paramname" > < span class = "paramname" > < em > bytes< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > samples< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t< / td > < td class = "paramname" > < span class = "paramname" > < em > current_frame< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > void *< / td > < td class = "paramname" > < span class = "paramname" > < em > client_data< / em > < / span >   )< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel static" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "flac_8c_source.html#l00275" > 275< / a > of file < a class = "el" href = "flac_8c_source.html" > flac.c< / a > .< / p >
< p class = "reference" > References < a class = "el" href = "flac_8h_source.html#l00027" > aaru_flac_ctx::dst_buffer< / a > , < a class = "el" href = "flac_8h_source.html#l00028" > aaru_flac_ctx::dst_len< / a > , and < a class = "el" href = "flac_8h_source.html#l00029" > aaru_flac_ctx::dst_pos< / a > .< / p >
< p class = "reference" > Referenced by < a class = "el" href = "flac_8c_source.html#l00175" > aaruf_flac_encode_redbook_buffer()< / a > .< / p >
< / div >
< / div >
< a id = "ae0a385215d06bca05d1212caa0d0fa23" name = "ae0a385215d06bca05d1212caa0d0fa23" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ae0a385215d06bca05d1212caa0d0fa23" > ◆   < / a > < / span > error_callback()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void error_callback < / td >
< td > (< / td >
< td class = "paramtype" > const FLAC__StreamDecoder *< / td > < td class = "paramname" > < span class = "paramname" > < em > decoder< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > FLAC__StreamDecoderErrorStatus< / td > < td class = "paramname" > < span class = "paramname" > < em > status< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > void *< / td > < td class = "paramname" > < span class = "paramname" > < em > client_data< / em > < / span >   )< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel static" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "flac_8c_source.html#l00141" > 141< / a > of file < a class = "el" href = "flac_8c_source.html" > flac.c< / a > .< / p >
< p class = "reference" > References < a class = "el" href = "flac_8h_source.html#l00030" > aaru_flac_ctx::error< / a > .< / p >
< p class = "reference" > Referenced by < a class = "el" href = "flac_8c_source.html#l00048" > aaruf_flac_decode_redbook_buffer()< / a > .< / p >
< / div >
< / div >
< a id = "a4ae2146e619c2a746b41c778f71f2e8c" name = "a4ae2146e619c2a746b41c778f71f2e8c" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a4ae2146e619c2a746b41c778f71f2e8c" > ◆   < / a > < / span > read_callback()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > FLAC__StreamDecoderReadStatus read_callback < / td >
< td > (< / td >
< td class = "paramtype" > const FLAC__StreamDecoder *< / td > < td class = "paramname" > < span class = "paramname" > < em > decoder< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > FLAC__byte< / td > < td class = "paramname" > < span class = "paramname" > < em > buffer< / em > < / span > [], < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t *< / td > < td class = "paramname" > < span class = "paramname" > < em > bytes< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > void *< / td > < td class = "paramname" > < span class = "paramname" > < em > client_data< / em > < / span >   )< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel static" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "flac_8c_source.html#l00097" > 97< / a > of file < a class = "el" href = "flac_8c_source.html" > flac.c< / a > .< / p >
< p class = "reference" > References < a class = "el" href = "flac_8h_source.html#l00024" > aaru_flac_ctx::src_buffer< / a > , < a class = "el" href = "flac_8h_source.html#l00025" > aaru_flac_ctx::src_len< / a > , and < a class = "el" href = "flac_8h_source.html#l00026" > aaru_flac_ctx::src_pos< / a > .< / p >
< p class = "reference" > Referenced by < a class = "el" href = "flac_8c_source.html#l00048" > aaruf_flac_decode_redbook_buffer()< / a > .< / p >
< / div >
< / div >
< a id = "ad65b9acb1c0c9401aacf5e711c2c6cf7" name = "ad65b9acb1c0c9401aacf5e711c2c6cf7" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ad65b9acb1c0c9401aacf5e711c2c6cf7" > ◆   < / a > < / span > write_callback()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > FLAC__StreamDecoderWriteStatus write_callback < / td >
< td > (< / td >
< td class = "paramtype" > const FLAC__StreamDecoder *< / td > < td class = "paramname" > < span class = "paramname" > < em > decoder< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const FLAC__Frame *< / td > < td class = "paramname" > < span class = "paramname" > < em > frame< / em > < / span > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const FLAC__int32 *const< / td > < td class = "paramname" > < span class = "paramname" > < em > buffer< / em > < / span > [], < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > void *< / td > < td class = "paramname" > < span class = "paramname" > < em > client_data< / em > < / span >   )< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel static" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "flac_8c_source.html#l00112" > 112< / a > of file < a class = "el" href = "flac_8c_source.html" > flac.c< / a > .< / p >
< p class = "reference" > References < a class = "el" href = "flac_8h_source.html#l00027" > aaru_flac_ctx::dst_buffer< / a > , < a class = "el" href = "flac_8h_source.html#l00028" > aaru_flac_ctx::dst_len< / a > , and < a class = "el" href = "flac_8h_source.html#l00029" > aaru_flac_ctx::dst_pos< / a > .< / p >
< p class = "reference" > Referenced by < a class = "el" href = "flac_8c_source.html#l00048" > aaruf_flac_decode_redbook_buffer()< / a > .< / p >
< / div >
< / div >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
< div id = "page-nav" class = "page-nav-panel" >
< div id = "page-nav-resize-handle" > < / div >
< div id = "page-nav-tree" >
< div id = "page-nav-contents" >
< / div > <!-- page - nav - contents -->
< / div > <!-- page - nav - tree -->
< / div > <!-- page - nav -->
< / div > <!-- container -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a href = "dir_68267d1309a1af8e8297ef4c3efbcdba.html" > src< / a > < / li > < li class = "navelem" > < a href = "dir_40ed6a89610fc2370cf3ffcd6469b940.html" > compression< / a > < / li > < li class = "navelem" > < a href = "flac_8c.html" > flac.c< / a > < / li >
< li class = "footer" > Generated by < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.14.0 < / li >
< / ul >
< / div >
< / body >
< / html >