small fixes and other stuff

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@132 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2006-04-20 10:32:33 +00:00
parent 703adaf6a3
commit 6ab8ee6edb
9 changed files with 97 additions and 40 deletions

View File

@@ -25,6 +25,8 @@
*/
#include <math.h>
#include "mixer.h"
#include "play_handle.h"
#include "song_editor.h"
@@ -699,7 +701,7 @@ void FASTCALL mixer::scaleClip( fpab_t _frame, ch_cnt_t _chnl )
}
// check for clip
if( fabs( m_writeBuf[_frame][_chnl] ) > 1.0f )
if( fabsf( m_writeBuf[_frame][_chnl] ) > 1.0f )
{
m_clipped[_chnl] = TRUE;
if( fabs( m_writeBuf[_frame][_chnl] ) >

View File

@@ -28,6 +28,23 @@
#include <math.h>
#include "volume_knob.h"
#include "main_window.h"
#include "config_mgr.h"
#include "text_float.h"
#include "string_pair_drag.h"
#ifndef QT3
#include <QtGui/QApplication>
#include <QtGui/QInputDialog>
#else
#include <qapplication.h>
#include <qinputdialog.h>
#endif
volumeKnob::volumeKnob( int _knob_num, QWidget * _parent, const QString & _name,