bugfixes, GUI-improvements

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@35 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2005-12-15 10:04:24 +00:00
parent 0e7cb9a0c8
commit e1f5d4e13b
17 changed files with 320 additions and 92 deletions

View File

@@ -389,7 +389,6 @@ void audioFileProcessor::playNote( notePlayHandle * _n )
const float note_freq = getChannelTrack()->frequency( _n ) /
( mixer::inst()->sampleRate() /
DEFAULT_SAMPLE_RATE );
if( m_sampleBuffer.play( buf, _n->totalFramesPlayed(),
frames, note_freq,
m_loopButton->isChecked(),
@@ -586,8 +585,16 @@ void audioFileProcessor::endKnobChanged( float _new_value )
{
if( _new_value > m_startKnob->value() )
{
m_sampleBuffer.setEndFrame( static_cast<Uint32>( _new_value *
if( _new_value * m_sampleBuffer.frames() >= 1.0f )
{
m_sampleBuffer.setEndFrame( static_cast<Uint32>(
_new_value *
m_sampleBuffer.frames() ) - 1 );
}
else
{
m_sampleBuffer.setEndFrame( 0 );
}
}
else
{

View File

@@ -58,7 +58,7 @@
#include "tooltip.h"
#include "spc_bg_hndl_widget.h"
#include "vestige.h"
#include "text_float.h"
#include "embed.cpp"
@@ -190,9 +190,15 @@ void vestigeInstrument::setParameter( const QString & _param,
closePlugin();
m_pluginDLL = _value;
textFloat * tf = textFloat::displayMessage(
tr( "Loading plugin" ),
tr( "Please wait while loading VST-plugin..." ),
PLUGIN_NAME::getIconPixmap( "logo", 24, 24 ),
0 );
m_plugin = new remoteVSTPlugin( m_pluginDLL );
if( m_plugin->failed() )
{
delete tf;
QMessageBox::information( this,
tr( "Failed loading VST-plugin" ),
tr( "The VST-plugin %1 could not "
@@ -219,6 +225,7 @@ void vestigeInstrument::setParameter( const QString & _param,
}*/
m_plugin->showEditor();
update();
delete tf;
}
}