Skip to content

Commit 62d505b

Browse files
committed
Improve STK rawwave path encoding handling
Still incomplete on Windows due to an upstream issue
1 parent 3e538d5 commit 62d505b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/stk/mallets/mallets.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ malletsSynth::malletsSynth( const StkFloat _pitch,
620620
{
621621
Stk::setSampleRate( _sample_rate );
622622
Stk::setRawwavePath( QDir( ConfigManager::inst()->stkDir() ).absolutePath()
623-
.toLatin1().constData() );
623+
.toLocal8Bit().constData() );
624624
#ifndef LMMS_DEBUG
625625
Stk::showWarnings( false );
626626
#endif
@@ -670,7 +670,7 @@ malletsSynth::malletsSynth( const StkFloat _pitch,
670670
{
671671
Stk::setSampleRate( _sample_rate );
672672
Stk::setRawwavePath( QDir( ConfigManager::inst()->stkDir() ).absolutePath()
673-
.toLatin1().constData() );
673+
.toLocal8Bit().constData() );
674674
#ifndef LMMS_DEBUG
675675
Stk::showWarnings( false );
676676
#endif
@@ -718,7 +718,7 @@ malletsSynth::malletsSynth( const StkFloat _pitch,
718718
{
719719
Stk::setSampleRate( _sample_rate );
720720
Stk::setRawwavePath( QDir( ConfigManager::inst()->stkDir() ).absolutePath()
721-
.toLatin1().constData() );
721+
.toLocal8Bit().constData() );
722722
#ifndef LMMS_DEBUG
723723
Stk::showWarnings( false );
724724
#endif

0 commit comments

Comments
 (0)