bugfixes
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@100 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -189,7 +189,7 @@ void audioALSA::startProcessing( void )
|
||||
#ifdef QT4
|
||||
QThread::HighPriority
|
||||
#else
|
||||
#if QT_VERSION >= 0x030200
|
||||
#if QT_VERSION >= 0x030505
|
||||
QThread::HighestPriority
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -292,7 +292,7 @@ void audioOSS::startProcessing( void )
|
||||
#ifdef QT4
|
||||
QThread::HighPriority
|
||||
#else
|
||||
#if QT_VERSION >= 0x030200
|
||||
#if QT_VERSION >= 0x030505
|
||||
QThread::HighestPriority
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -295,7 +295,7 @@ arpAndChordsTabWidget::arpAndChordsTabWidget( channelTrack * _channel_track ) :
|
||||
m_arpTimeKnob = new tempoSyncKnob( knobBright_26, m_arpGroupBox,
|
||||
tr( "Arpeggio time" ), eng() );
|
||||
m_arpTimeKnob->setLabel( tr( "TIME" ) );
|
||||
m_arpTimeKnob->setRange( 10.0f, 1000.0f, 1.0f );
|
||||
m_arpTimeKnob->setRange( 25.0f, 2000.0f, 1.0f );
|
||||
m_arpTimeKnob->setInitValue( 100.0f );
|
||||
m_arpTimeKnob->move( 164, 70 );
|
||||
m_arpTimeKnob->setHintText( tr( "Arpeggio time:" ) + " ", " " +
|
||||
|
||||
@@ -66,6 +66,16 @@ int splash_alignment_flags = Qt::AlignTop | Qt::AlignLeft;
|
||||
|
||||
int main( int argc, char * * argv )
|
||||
{
|
||||
#ifdef HAVE_SCHED_H
|
||||
struct sched_param sparam;
|
||||
sparam.sched_priority = ( sched_get_priority_max( SCHED_FIFO ) +
|
||||
sched_get_priority_min( SCHED_FIFO ) ) / 2;
|
||||
if( sched_setscheduler( 0, SCHED_FIFO, &sparam ) == -1 )
|
||||
{
|
||||
printf( "could not set realtime priority.\n" );
|
||||
}
|
||||
#endif
|
||||
|
||||
QApplication app( argc, argv );
|
||||
|
||||
QString extension = "wav";
|
||||
@@ -244,17 +254,6 @@ int main( int argc, char * * argv )
|
||||
e->exportBtnClicked();
|
||||
}
|
||||
|
||||
#ifdef HAVE_SCHED_H
|
||||
struct sched_param sparam;
|
||||
sparam.sched_priority = ( sched_get_priority_max( SCHED_FIFO ) +
|
||||
sched_get_priority_min( SCHED_FIFO ) ) / 2;
|
||||
if( sched_setscheduler( 0, SCHED_FIFO, &sparam ) == -1 )
|
||||
{
|
||||
printf( "could not set realtime priority.\n" );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
return( app.exec() );
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ midiALSARaw::midiALSARaw( engine * _engine ) :
|
||||
snd_rawmidi_poll_descriptors( m_input, m_pfds, m_npfds );
|
||||
|
||||
start(
|
||||
#if QT_VERSION >= 0x030200
|
||||
#if QT_VERSION >= 0x030505
|
||||
QThread::LowPriority
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -102,7 +102,7 @@ midiALSASeq::midiALSASeq( engine * _engine ) :
|
||||
m_portListUpdateTimer.start( 1000 );
|
||||
|
||||
start(
|
||||
#if QT_VERSION >= 0x030200
|
||||
#if QT_VERSION >= 0x030505
|
||||
QThread::IdlePriority
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -71,7 +71,7 @@ midiOSS::midiOSS( engine * _engine ) :
|
||||
#endif
|
||||
{
|
||||
start(
|
||||
#if QT_VERSION >= 0x030200
|
||||
#if QT_VERSION >= 0x030505
|
||||
QThread::LowPriority
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -75,6 +75,7 @@ void fadeButton::activate( void )
|
||||
m_state = 1.1f;
|
||||
nextState();
|
||||
}
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
@@ -119,6 +120,12 @@ void fadeButton::paintEvent( QPaintEvent * _pe )
|
||||
// and blit all the drawn stuff on the screen...
|
||||
bitBlt( this, rect().topLeft(), &draw_pm );
|
||||
#endif
|
||||
if( m_state > 0.0f )
|
||||
{
|
||||
// we might be called out of another thread than the GUI-/
|
||||
// event-loop-thread, so let the timer update ourself
|
||||
QTimer::singleShot( 20, this, SLOT( update( void ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -130,9 +137,6 @@ void fadeButton::nextState( void )
|
||||
{
|
||||
m_state -= 0.1f;
|
||||
QTimer::singleShot( 20, this, SLOT( nextState( void ) ) );
|
||||
// we might be called out of another thread than the GUI-/
|
||||
// event-loop-thread, so let the timer update ourself
|
||||
QTimer::singleShot( 0, this, SLOT( update( void ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user