SyndicatQuebecoisdelaConstr.../SQCSim2021/external/irrKlang-64bit-1.6.0/doc/dotnet/IrrKlang.ISoundEngine.AddSoundSourceAlias.html

67 lines
3.4 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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.AddSoundSourceAlias Method</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.AddSoundSourceAlias Method </h1>
</div>
</div>
<div id="nstext">
<p> Adds a sound source as alias for an existing sound source, but with a different name or optional different default settings. This is useful if you want to play multiple sounds but each sound isn't necessarily one single file. Also useful if you want to or play the same sound using different names, volumes or min and max 3D distances. </p>
<div class="syntax">
<span class="lang">[Visual Basic]</span>
<br />Public Function AddSoundSourceAlias( _<br />   ByVal <i>baseSource</i> As <a href="IrrKlang.ISoundSource.html">ISoundSource</a>, _<br />   ByVal <i>soundName</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a> _<br />) As <a href="IrrKlang.ISoundSource.html">ISoundSource</a></div>
<div class="syntax">
<span class="lang">[C#]</span>
<br />public <a href="IrrKlang.ISoundSource.html">ISoundSource</a> AddSoundSourceAlias(<br />   <a href="IrrKlang.ISoundSource.html">ISoundSource</a> <i>baseSource</i>,<br />   <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a> <i>soundName</i><br />);</div>
<h4 class="dtH4">Parameters</h4>
<dl>
<dt>
<i>baseSource</i>
</dt>
<dd> The sound source where this sound source should be based on. This sound source will use the baseSource as base to access the file and similar, but it will have its own name and its own default settings.</dd>
<dt>
<i>soundName</i>
</dt>
<dd> Name of the new sound source to be added.</dd>
</dl>
<h4 class="dtH4">Return Value</h4>
<p> Returns the pointer to the added sound source or 0 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></p>
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;">
<param name="Keyword" value="AddSoundSourceAlias method">
</param>
<param name="Keyword" value="AddSoundSourceAlias method, ISoundEngine class">
</param>
<param name="Keyword" value="ISoundEngine.AddSoundSourceAlias method">
</param>
</object>
<hr />
<div id="footer">
<p>
<a>The irrKlang Sound Engine Documentation © 2003-2010 by Nikolaus Gebhardt.</a>
</p>
<p>
</p>
</div>
</div>
</body>
</html>