Mercurial > audlegacy
comparison Plugins/Input/console/Fir_Resampler.cpp @ 256:84aabc053b6e trunk
[svn] C++ warning fixes by external contractor Stephen Bennett.
author | chainsaw |
---|---|
date | Sun, 04 Dec 2005 08:49:53 -0800 |
parents | 252843aac42f |
children | 0b9507985f0d |
comparison
equal
deleted
inserted
replaced
255:ad1e65c6a854 | 256:84aabc053b6e |
---|---|
68 { | 68 { |
69 y = cos( pi * w ) * 0.5 + 0.5; | 69 y = cos( pi * w ) * 0.5 + 0.5; |
70 y *= sinc( a ); | 70 y *= sinc( a ); |
71 } | 71 } |
72 | 72 |
73 *p++ = y * scale; | 73 *p++ = (T) (y * scale); |
74 a += step; | 74 a += step; |
75 } | 75 } |
76 } | 76 } |
77 | 77 |
78 static double plain_sinc( double a ) { | 78 static double plain_sinc( double a ) { |