use the corrected named functions of Synth_Dexed

https://codeberg.org/dcoredump/Synth_Dexed/pulls/12
pull/871/head
Gergo Koteles 5 months ago
parent a3fcd03a72
commit 72bd332253
  1. 4
      src/minidexed.cpp

@ -1236,7 +1236,7 @@ std::string CMiniDexed::GetVoiceName (unsigned nTG)
if (nTG < m_nToneGenerators) if (nTG < m_nToneGenerators)
{ {
assert (m_pTG[nTG]); assert (m_pTG[nTG]);
m_pTG[nTG]->setName (VoiceName); m_pTG[nTG]->getName (VoiceName);
} }
std::string Result (VoiceName); std::string Result (VoiceName);
return Result; return Result;
@ -2077,7 +2077,7 @@ void CMiniDexed::SetVoiceName (const std::string &VoiceName, unsigned nTG)
char Name[11]; char Name[11];
strncpy(Name, VoiceName.c_str(),10); strncpy(Name, VoiceName.c_str(),10);
Name[10] = '\0'; Name[10] = '\0';
m_pTG[nTG]->getName (Name); m_pTG[nTG]->setName (Name);
} }
bool CMiniDexed::DeletePerformance(unsigned nID) bool CMiniDexed::DeletePerformance(unsigned nID)

Loading…
Cancel
Save