fixed compiler-warnings

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1366 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-07-23 15:04:30 +00:00
parent 67b5335f98
commit 7133d69906
2 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
/*
* effect_lib.h - library with template-based inline-effects
*
* Copyright (c) 2006 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2006-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -448,7 +448,7 @@ namespace effectLib
// Lou's Hack
void setWideCoeff( const float _wideCoeff )
{
m_wideCoeff = static_cast<int>( _wideCoeff );
m_wideCoeff = _wideCoeff;
}
int getWideCoeff()
@@ -478,7 +478,7 @@ namespace effectLib
private:
// Lou's Hack
int m_wideCoeff;
float m_wideCoeff;
//-----------
} ;

View File

@@ -359,8 +359,8 @@ bool spectrumAnalyzer::processAudioBuffer( sampleFrame * _buf,
{
compressbands( m_absSpecBuf, m_bands, BUFFER_SIZE+1,
MAX_BANDS,
LOWEST_FREQ*(BUFFER_SIZE+1)/(float)(sr/2),
HIGHEST_FREQ*(BUFFER_SIZE+1)/(float)(sr/2) );
(int)(LOWEST_FREQ*(BUFFER_SIZE+1)/(float)(sr/2)),
(int)(HIGHEST_FREQ*(BUFFER_SIZE+1)/(float)(sr/2)));
m_energy = maximum( m_bands, MAX_BANDS ) / maximum( m_buffer, BUFFER_SIZE );
}
else