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:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user