Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.1KB

  1. diff --git a/src/qjackctlInterfaceComboBox.cpp b/src/qjackctlInterfaceComboBox.cpp
  2. index b95f4c6..f7962c8 100644
  3. --- a/src/qjackctlInterfaceComboBox.cpp
  4. +++ b/src/qjackctlInterfaceComboBox.cpp
  5. @@ -212,7 +212,7 @@ private:
  6. const PaHostApiIndex iNumHostApi = Pa_GetHostApiCount();
  7. QString *hostNames = new QString[iNumHostApi];
  8. for (PaHostApiIndex i = 0; i < iNumHostApi; ++i)
  9. - hostNames[i] = QString(Pa_GetHostApiInfo(i)->name);
  10. + hostNames[i] = QString::fromUtf8(Pa_GetHostApiInfo(i)->name);
  11. // Fill device info...
  12. const PaDeviceIndex iNumDevice = Pa_GetDeviceCount();
  13. @@ -222,7 +222,7 @@ private:
  14. if (PortAudioProber::names.isEmpty()) {
  15. for (PaDeviceIndex i = 0; i < iNumDevice; ++i) {
  16. PaDeviceInfo *pDeviceInfo = const_cast<PaDeviceInfo *> (Pa_GetDeviceInfo(i));
  17. - const QString sName = hostNames[pDeviceInfo->hostApi] + "::" + QString(pDeviceInfo->name);
  18. + const QString sName = hostNames[pDeviceInfo->hostApi] + "::" + QString::fromUtf8(pDeviceInfo->name);
  19. PortAudioProber::names.push_back(sName);
  20. }
  21. }