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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SWF::SoundInstance - SWF Sound Instance class</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:feedback@suse.de" />
</head>
<body style="background-color: white">
<!-- INDEX BEGIN -->
<div name="index">
<p><a name="__index__"></a></p>
<ul>
<li><a href="#name">NAME</a></li>
<li><a href="#synopsis">SYNOPSIS</a></li>
<li><a href="#description">DESCRIPTION</a></li>
<li><a href="#methods">METHODS</a></li>
<li><a href="#author">AUTHOR</a></li>
<li><a href="#see_also">SEE ALSO</a></li>
</ul>
<hr name="index" />
</div>
<!-- INDEX END -->
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>SWF::SoundInstance - SWF Sound Instance class</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
use SWF::Sound;
use SWF::SoundInstance;
$sound = new SWF::Sound("test.mp3");
$snd_instance = $movie->startSound($sound);
$snd_instance->loopInPoint(4000);
$snd_instance->loopOutPoint(8000);
$snd_instance->loopCount(2);</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>SWF::SoundStream is a helper class useful for setting information
about a sound instance. There is no constructor method,
SWF::SoundStream objects are available only thru:</p>
<dl>
<dt><strong><a name="startsound" class="item"><code>startSound()</code> method of SWF::Movie,</a></strong>
<dt><strong><code>startSound()</code> method of SWF::MovieClip,</strong>
<dt><strong><a name="addsound" class="item"><code>addSound()</code> method of SWF::Button.</a></strong>
</dl>
<p>
</p>
<hr />
<h1><a name="methods">METHODS</a></h1>
<dl>
<dt><strong><a name="nomultiple" class="item">$snd_instance-><code>noMultiple()</code></a></strong>
<dd>
<p>Prohibits starting sound if sound is already playing.</p>
</dd>
</li>
<dt><strong><a name="loopinpoint" class="item">$snd_instance-><code>loopInPoint($point)</code></a></strong>
<dd>
<p>Sets the loop start $point counted in samples.</p>
</dd>
</li>
<dt><strong><a name="loopoutpoint" class="item">$snd_instance-><code>loopOutPoint($point)</code></a></strong>
<dd>
<p>Sets the loop's last sample to play.</p>
</dd>
</li>
<dt><strong><a name="loopcount" class="item">$snd_instance-><code>loopCount($count)</code></a></strong>
<dd>
<p>Sets loop count. The default value is 1 loop.</p>
</dd>
</li>
<dt><strong><a name="addenvelope" class="item">$snd_instance->addEnvelope($mark44, $left, $right)</a></strong>
<dd>
<p>Adds a SoundEnvelope to event sound. Parameters are $mark44, the Position in 44khz samples,
and volumes both for left and right stereo channel.
Next example will mute the right channel:</p>
</dd>
<dd>
<pre>
$snd_instance->addEnvelope(0,10000,0);</pre>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p>developers of ming.sourceforge.net, Albrecht Kleine</p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p>SWF, SWF:: Movie, SWF::MovieClip, SWF::Button, SWF::Sound, SWF::SoundStream, SWF::Constants
=cut</p>
</body>
</html>
|