Skip to content

Commit

Permalink
Remove instrument tracks (guitars???)
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Sep 22, 2019
1 parent 68d7161 commit 8a09087
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/Etterna/Models/Misc/AutoKeysounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ AutoKeysounds::LoadTracks(const Song* pSong,
RageSoundReader*& pShared,
RageSoundReader*& pPlayer1)
{
// If we have two players, prefer a three-track sound; otherwise prefer a
// two-track sound.
// bool bTwoPlayers = GAMESTATE->GetNumPlayersEnabled() == 2;

pPlayer1 = nullptr;
pShared = nullptr;

Expand All @@ -115,14 +111,6 @@ AutoKeysounds::LoadTracks(const Song* pSong,
if (!sMusicPath.empty())
vsMusicFile.push_back(sMusicPath);

FOREACH_ENUM(InstrumentTrack, it)
{
if (it == InstrumentTrack_Guitar)
continue;
if (pSong->HasInstrumentTrack(it))
vsMusicFile.push_back(pSong->GetInstrumentTrackPath(it));
}

vector<RageSoundReader*> vpSounds;
FOREACH(RString, vsMusicFile, s)
{
Expand Down Expand Up @@ -156,19 +144,6 @@ AutoKeysounds::LoadTracks(const Song* pSong,
pShared = pSongReader;
}

if (pSong->HasInstrumentTrack(InstrumentTrack_Guitar)) {
RString sError;
RageSoundReader* pGuitarTrackReader =
RageSoundReader_FileReader::OpenFile(
pSong->GetInstrumentTrackPath(InstrumentTrack_Guitar), sError);
// Load the buffering filter before the effects filters, so effects
// aren't delayed.
pGuitarTrackReader = new RageSoundReader_Extend(pGuitarTrackReader);
pGuitarTrackReader =
new RageSoundReader_ThreadedBuffer(pGuitarTrackReader);
pPlayer1 = pGuitarTrackReader;
}

return;
}

Expand Down

0 comments on commit 8a09087

Please sign in to comment.