1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" /> 7<title>SetInterpolationType</title> 8 </head> 9 <body> 10<h1><CODE>nn::snd::CTR::Voice::SetInterpolationType</CODE> Member Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14void SetInterpolationType( 15 <a href="../../../../nn/snd/CTR/InterpolationType.html">InterpolationType</a> type 16); 17</pre> 18 </div> 19<h2>Arguments</h2> 20 <div class="section"> 21 <table class="arguments"> 22 <thead> 23 <tr> 24 <td width="15" /> 25<th>Name</th> 26<td>Description</td> 27 </tr> 28 </thead> 29 <tr> 30<td>in</td> 31<th>type</th> 32<td>Interpolation method.</td> 33 </tr> </table> 34 </div> 35<h2>Return Values</h2> 36 <div class="section"> 37None. 38 </div> 39<h2>Description</h2> 40 <div class="section"> 41<p>Sets the interpolation method of a voice.</p><p>Specify a value from the <CODE>nn::snd::CTR::InterpolationType</CODE> enumerated type. 42 </p><p> 43The default value is <CODE>INTERPOLATION_TYPE_POLYPHASE</CODE>. 44</p><p><b>Bug:</b> Using <CODE>INTERPOLATION_TYPE_LINEAR</CODE> can cause noise. Sound sources that match the following may be noisy. 45 <ul><li> 46Adjacent 16-bit PCM samples differ by 32768 or more. 47 </li></ul> 48This would apply to -6dB pulse waveforms, for instance. Do not use <CODE>INTERPOLATION_TYPE_LINEAR</CODE> for sound sources that match the above. Noise does not occur with sound sources that do not include high-frequency components and sound sources with 16-bit PCM amplitudes under 16384. 49 </p><p> 50This bug should be fixed in CTR-SDK 0.16. 51 </p></div> 52<h2>Revision History</h2> 53 <div class="section"> 54 <dl class="history"> 55 <dt>2010/11/11</dt> 56<dd>Added bug information.<br /> 57 </dd> 58 <dt>2010/06/14</dt> 59<dd>Initial version.<br /> 60 </dd> 61 </dl> 62 </div> 63 <hr><p>CONFIDENTIAL</p></body> 64</html>