72 lines
3.6 KiB
HTML
72 lines
3.6 KiB
HTML
|
<html dir="LTR">
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
|
|||
|
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
|
|||
|
<title>ISoundEngine.AddSoundSourceFromFile Method (String, StreamMode, Boolean)</title>
|
|||
|
<xml>
|
|||
|
</xml>
|
|||
|
<link rel="stylesheet" type="text/css" href="MSDN.css" />
|
|||
|
</head>
|
|||
|
<body id="bodyID" class="dtBODY">
|
|||
|
<div id="nsbanner">
|
|||
|
<div id="bannerrow1">
|
|||
|
<table class="bannerparthead" cellspacing="0">
|
|||
|
<tr id="hdr">
|
|||
|
<td class="runninghead">IrrKlang.NET</td>
|
|||
|
<td class="product">
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
<div id="TitleRow">
|
|||
|
<h1 class="dtH1">ISoundEngine.AddSoundSourceFromFile<6C>Method<6F>(String, StreamMode, Boolean)</h1>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div id="nstext">
|
|||
|
<p> Adds sound source into the sound engine as file. </p>
|
|||
|
<div class="syntax">
|
|||
|
<span class="lang">[Visual<61>Basic]</span>
|
|||
|
<br />Overloads<EFBFBD>Public<EFBFBD>Function<EFBFBD>AddSoundSourceFromFile( _<br /><EFBFBD><EFBFBD><EFBFBD>ByVal <i>soundName</i><EFBFBD>As<EFBFBD><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a>,<2C>_<br /><EFBFBD><EFBFBD><EFBFBD>ByVal <i>streamMode</i><EFBFBD>As<EFBFBD><a href="IrrKlang.StreamMode.html">StreamMode</a>,<2C>_<br /><EFBFBD><EFBFBD><EFBFBD>ByVal <i>preLoad</i><EFBFBD>As<EFBFBD><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">Boolean</a><EFBFBD>_<br />)<29>As<41><a href="IrrKlang.ISoundSource.html">ISoundSource</a></div>
|
|||
|
<div class="syntax">
|
|||
|
<span class="lang">[C#]</span>
|
|||
|
<br />public<EFBFBD><a href="IrrKlang.ISoundSource.html">ISoundSource</a><EFBFBD>AddSoundSourceFromFile(<br /><EFBFBD><EFBFBD><EFBFBD><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a><EFBFBD><i>soundName</i>,<br /><EFBFBD><EFBFBD><EFBFBD><a href="IrrKlang.StreamMode.html">StreamMode</a><EFBFBD><i>streamMode</i>,<br /><EFBFBD><EFBFBD><EFBFBD><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">bool</a><EFBFBD><i>preLoad</i><br />);</div>
|
|||
|
<h4 class="dtH4">Parameters</h4>
|
|||
|
<dl>
|
|||
|
<dt>
|
|||
|
<i>soundName</i>
|
|||
|
</dt>
|
|||
|
<dd> Name of the sound file (e.g. "sounds/something.mp3"). You can also use this name when calling play3D() or play2D().</dd>
|
|||
|
<dt>
|
|||
|
<i>streamMode</i>
|
|||
|
</dt>
|
|||
|
<dd> Streaming mode for this sound source</dd>
|
|||
|
<dt>
|
|||
|
<i>preLoad</i>
|
|||
|
</dt>
|
|||
|
<dd>
|
|||
|
</dd>
|
|||
|
</dl>
|
|||
|
<h4 class="dtH4">Return Value</h4>
|
|||
|
<p> Returns the added sound source or null if not sucessful because for example a sound already existed with that name. If not successful, the reason will be printed into the log.</p>
|
|||
|
<h4 class="dtH4">See Also</h4>
|
|||
|
<p>
|
|||
|
<a href="IrrKlang.ISoundEngine.html">ISoundEngine Class</a> | <a href="IrrKlang.html">IrrKlang Namespace</a> | <a href="IrrKlang.ISoundEngine.AddSoundSourceFromFile_overloads.html">ISoundEngine.AddSoundSourceFromFile Overload List</a></p>
|
|||
|
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;">
|
|||
|
<param name="Keyword" value="AddSoundSourceFromFile method">
|
|||
|
</param>
|
|||
|
<param name="Keyword" value="AddSoundSourceFromFile method, ISoundEngine class">
|
|||
|
</param>
|
|||
|
<param name="Keyword" value="ISoundEngine.AddSoundSourceFromFile method">
|
|||
|
</param>
|
|||
|
</object>
|
|||
|
<hr />
|
|||
|
<div id="footer">
|
|||
|
<p>
|
|||
|
<a>The irrKlang Sound Engine Documentation <20> 2003-2010 by Nikolaus Gebhardt.</a>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
</p>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|