Skip to content

Commit

Permalink
Switch to dual core mode for more responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
KinoMyu committed Feb 1, 2018
1 parent e1137c6 commit 5ec1c28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HCADecoder
4 changes: 2 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
dec()
dec(2)
{
ui->setupUi(this);

Expand Down Expand Up @@ -190,7 +190,7 @@ void MainWindow::setBGM(const QString& qStr)
std::string name = qStr.toUtf8().constData();
currSong = readablesong_to_filename[name];
BASS_ChannelPause(mix_stream);
dec.wait_for_finish();
//dec.wait_for_finish();
BASS_Mixer_ChannelRemove(bgm->get_decode_channel());
bgm->unload();
bgm->load("res/" + currSong + "/bgm.hca");
Expand Down

0 comments on commit 5ec1c28

Please sign in to comment.