Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/MiniDexed/commit/4d2d79c0f5cb548ba0a799b87ebbe7fbeea5ea3d?style=unified&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
17 additions and
5 deletions
src/minidexed.cpp
src/userinterface.cpp
src/userinterface.h
@ -701,7 +701,10 @@ void CMiniDexed::setInsertFXType (unsigned nType, unsigned nTG)
}
m_InsertFXSpinLock [ nTG ] - > Acquire ( ) ;
if ( m_InsertFX [ nTG ] ! = NULL )
{
delete m_InsertFX [ nTG ] ;
}
m_InsertFX [ nTG ] = newAudioEffect ( nType , m_pConfig - > GetSampleRate ( ) ) ;
m_InsertFX [ nTG ] - > setTempo ( m_nTempo ) ;
m_InsertFXSpinLock [ nTG ] - > Release ( ) ;
@ -53,6 +53,7 @@ CUserInterface::~CUserInterface (void)
bool CUserInterface : : Initialize ( void )
{
assert ( m_pConfig ) ;
nLastLCDUpdateTime = 0 ;
if ( m_pConfig - > GetLCDEnabled ( ) )
{
@ -152,7 +153,7 @@ bool CUserInterface::Initialize (void)
}
assert ( m_pLCD ) ;
m_pLCDBuffered = new CWriteBufferDevice ( m_pLCD ) ;
m_pLCDBuffered = new CWriteBufferDevice ( m_pLCD , 256 ) ;
assert ( m_pLCDBuffered ) ;
LCDWrite ( " \x1B [?25l \x1B " " d+ " ) ; // cursor off, autopage mode
@ -202,9 +203,16 @@ bool CUserInterface::Initialize (void)
void CUserInterface : : Process ( void )
{
// Limit display updates to avoid glitches on sigle core RPis
unsigned nReadTime = CTimer : : GetClockTicks ( ) ;
if ( nReadTime - nLastLCDUpdateTime > 50000 )
{
if ( m_pLCDBuffered )
{
m_pLCDBuffered - > Update ( ) ;
// Limit updates to 16 bytes to avoid glitches on sigle core RPis
m_pLCDBuffered - > Update ( 16 ) ;
}
nLastLCDUpdateTime = nReadTime ;
}
if ( m_pUIButtons )
{
@ -89,6 +89,7 @@ private:
bool m_bSwitchPressed ;
unsigned m_nRotaryEncoderLastReadTime ;
int m_nRotaryEncoderCounter = 0 ;
unsigned nLastLCDUpdateTime ;
CUIMenu m_Menu ;
} ;