File: index.html

package info (click to toggle)
libmpcdec 1.2.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,900 kB
  • ctags: 4,893
  • sloc: sh: 8,435; ansic: 2,735; cpp: 237; makefile: 88
file content (28 lines) | stat: -rw-r--r-- 3,124 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libmpcdec: libmpcdec documentation</title>
<link href="custom.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.4 -->
<div class="qindex"><a class="qindexHL" href="index.html">Main&nbsp;Page</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> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>libmpcdec documentation </h1>
<p>
<h3 align="center">1.2.2 </h3><h2><a class="anchor" name="whats">
what is libmpcdec</a></h2>
libmpcdec is a library that decodes musepack compressed audio data. Musepack is a free, high performance, high quality lossy audio compression codec. For more information on musepack visit <a href="http://www.musepack.net.">http://www.musepack.net.</a><h2><a class="anchor" name="using">
using libmpcdec</a></h2>
Using libmpcdec is very straightforward. There are typically four things you must do to use libmpcdec in your application.<h3><a class="anchor" name="step1">
step 1: implement an mpc_reader to provide raw data to the decoder library</a></h3>
The role of the mpc_reader is to provide raw mpc stream data to the mpc decoding library. This data can come from a file, a network socket, or any other source you wish.<p>
See the documentation of <a class="el" href="structmpc__reader__t.html">mpc_reader </a> for more information.<h3><a class="anchor" name="step2">
step2: read the streaminfo properties structure from the stream</a></h3>
This is a simple matter of calling the streaminfo_init() and streaminfo_read() functions, supplying your mpc_reader as a source of raw data. This reads the stream properties header from the mpc stream. This information will be used to prime the decoder for decoding in the next step.<h3><a class="anchor" name="step3">
step 3: initialize an mpc_decoder with your mpc_reader source</a></h3>
This is just a matter of calling the <a class="el" href="mpcdec_8h.html#a13">mpc_decoder_setup()</a> and <a class="el" href="mpcdec_8h.html#a14">mpc_decoder_initialize()</a> functions with your mpc_decoder, mpc_reader data source and streaminfo information.<h3><a class="anchor" name="step4">
step 4: iteratively read raw sample data from the mpc decoder</a></h3>
Once you've initialized the decoding library you just iteratively call the mpc_decoder_decode routine until it indicates that the entire stream has been read.<p>
For a simple example of all of these steps see the sample application distributed with libmpcdec in src/sample.cpp. <hr size="1"><address style="align: right;"><small>Generated on Sun Oct 23 16:35:24 2005 for libmpcdec by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address>
</body>
</html>