mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
update to snapshot spandsp-20090129
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11548 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
* License along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* $Id: dds_int.c,v 1.13 2009/01/28 03:41:26 steveu Exp $
|
||||
* $Id: dds_int.c,v 1.14 2009/01/29 01:41:05 steveu Exp $
|
||||
*/
|
||||
|
||||
/*! \file */
|
||||
@@ -202,15 +202,15 @@ float dds_frequency(int32_t phase_rate)
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
int dds_scaling_dbm0(float level)
|
||||
int16_t dds_scaling_dbm0(float level)
|
||||
{
|
||||
return (int) (powf(10.0f, (level - DBM0_MAX_SINE_POWER)/20.0f)*32767.0f);
|
||||
return (int16_t) (powf(10.0f, (level - DBM0_MAX_SINE_POWER)/20.0f)*32767.0f);
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
int dds_scaling_dbov(float level)
|
||||
int16_t dds_scaling_dbov(float level)
|
||||
{
|
||||
return (int) (powf(10.0f, (level - DBOV_MAX_SINE_POWER)/20.0f)*32767.0f);
|
||||
return (int16_t) (powf(10.0f, (level - DBOV_MAX_SINE_POWER)/20.0f)*32767.0f);
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
|
Reference in New Issue
Block a user