⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swfdecaudio.html

📁 Swfdec is a decoder/renderer for Macromedia Flash animations. The decoding and rendering engine is
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>SwfdecAudio</title><meta name="generator" content="DocBook XSL Stylesheets V1.72.0"><link rel="start" href="index.html" title="Swfdec Reference Manual"><link rel="up" href="ch02.html" title="Swfdec library"><link rel="prev" href="SwfdecPlayer.html" title="SwfdecPlayer"><link rel="next" href="swfdec-SwfdecBuffer.html" title="SwfdecBuffer"><meta name="generator" content="GTK-Doc V1.9 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="chapter" href="ch01.html" title="Swfdec Gtk library"><link rel="chapter" href="ch02.html" title="Swfdec library"><link rel="chapter" href="ch03.html" title="Actionscript interpreter"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="SwfdecPlayer.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">Swfdec Reference Manual</th><td><a accesskey="n" href="swfdec-SwfdecBuffer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr><tr><td colspan="5" class="shortcuts"><nobr><a href="#id2577251" class="shortcut">Top</a>                  &#160;|&#160;                  <a href="#id2574448" class="shortcut">Description</a>                  &#160;|&#160;                  <a href="#id2574425" class="shortcut">Object Hierarchy</a></nobr></td></tr></table><div class="refentry" lang="en"><a name="SwfdecAudio"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><a name="id2577251"></a><span class="refentrytitle">SwfdecAudio</span></h2><p>SwfdecAudio &#8212; object used for audio output</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">                    <a href="SwfdecAudio.html#SwfdecAudio-struct">SwfdecAudio</a>;void                <a href="SwfdecAudio.html#swfdec-audio-render">swfdec_audio_render</a>                 (<a href="SwfdecAudio.html" title="SwfdecAudio">SwfdecAudio</a> *audio,                                                         gint16 *dest,                                                         guint start_offset,                                                         guint n_samples);</pre></div><div class="refsect1" lang="en"><a name="id2574425"></a><h2>Object Hierarchy</h2><pre class="synopsis">  GObject   +----SwfdecAudio</pre></div><div class="refsect1" lang="en"><a name="id2574448"></a><h2>Description</h2><p>SwfdecAudio is the way audio output is provided by a <a href="SwfdecPlayer.html" title="SwfdecPlayer"><span class="type">SwfdecPlayer</span></a>. Seeits documentation on how to access <a href="SwfdecAudio.html" title="SwfdecAudio"><span class="type">SwfdecAudio</span></a> objects.</p><p>An audio object gives access to one audio stream played inside a player.You are responsible for outputting this data, swfdec does not try to do thisfor you.</p><p>Audio data is always provided in 16bit host-endian stereo. If the data wasencoded into a different format originally, Swfdec will already have decoded it. The data is always referenced relative to the player. Sample 0 references the first sample to be played at the current position. If the player gets iterated, sample 0 changes. There is no way to access samplesbelonging to a previous state.</p><p></p></div><div class="refsect1" lang="en"><a name="id2574499"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2577544"></a><h3><a name="SwfdecAudio-struct"></a>SwfdecAudio</h3><a class="indexterm" name="id2577557"></a><pre class="programlisting">typedef struct _SwfdecAudio SwfdecAudio;</pre><p>This object is used for audio output. It is an abstract class.</p><p></p></div><hr><div class="refsect2" lang="en"><a name="id2577576"></a><h3><a name="swfdec-audio-render"></a>swfdec_audio_render ()</h3><a class="indexterm" name="id2577589"></a><pre class="programlisting">void                swfdec_audio_render                 (<a href="SwfdecAudio.html" title="SwfdecAudio">SwfdecAudio</a> *audio,                                                         gint16 *dest,                                                         guint start_offset,                                                         guint n_samples);</pre><p>Renders the samples from <em class="parameter"><code>audio</code></em> into the area pointed to by <em class="parameter"><code>dest</code></em>. The data is added to <em class="parameter"><code>dest</code></em>, so you probably want to initialize <em class="parameter"><code>dest</code></em> to silence before calling this function.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>audio</code></em>&#160;:</span></td><td> a <a href="SwfdecAudio.html" title="SwfdecAudio"><span class="type">SwfdecAudio</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>dest</code></em>&#160;:</span></td><td> memory area to render to</td></tr><tr><td><span class="term"><em class="parameter"><code>start_offset</code></em>&#160;:</span></td><td> offset in samples at which to start rendering. The offset is 	  calculated relative to the last iteration, so the value set 	  by <code class="function">swfdec_player_set_audio_advance()</code> is ignored.</td></tr><tr><td><span class="term"><em class="parameter"><code>n_samples</code></em>&#160;:</span></td><td> amount of samples to render.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id2566296"></a><h2>See Also</h2>SwfdecPlayer</div><div class="refsect1" lang="en"><a name="id2566304"></a><div class="refsect2" lang="en"><a name="id2566305"></a></div><hr><div class="refsect2" lang="en"><a name="id2566306"></a></div></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -