diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2021-04-11 13:11:39 +0200 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2021-04-11 13:11:39 +0200 |
commit | 452c64c13d301e2697d8cbd689c12e03986d6d29 (patch) | |
tree | 4385871e39c002f616d9df57a12293858676f4b1 /src | |
parent | d4108005a7c79abc40061682c1428a27d24fd34a (diff) |
Read device names as Uft8.
This is a API change in Portaudio 19.7 introduced in https://github.com/PortAudio/portaudio/pull/391.
Since we use patched Portaudio 19.6 including this PR, we can't add a version guard.
Diffstat (limited to 'src')
-rw-r--r-- | src/soundio/sounddeviceportaudio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soundio/sounddeviceportaudio.cpp b/src/soundio/sounddeviceportaudio.cpp index d14cb8272f..68118c1ade 100644 --- a/src/soundio/sounddeviceportaudio.cpp +++ b/src/soundio/sounddeviceportaudio.cpp @@ -113,7 +113,7 @@ SoundDevicePortAudio::SoundDevicePortAudio(UserSettingsPointer config, m_deviceId.name = deviceInfo->name; } m_deviceId.portAudioIndex = devIndex; - m_strDisplayName = QString::fromLocal8Bit(deviceInfo->name); + m_strDisplayName = QString::fromUtf8(deviceInfo->name); m_iNumInputChannels = m_deviceInfo->maxInputChannels; m_iNumOutputChannels = m_deviceInfo->maxOutputChannels; |