mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 20:56:28 +01:00
UTF8 encode windows device names - potential fix for #6418
This commit is contained in:
parent
821cc80a35
commit
40c603c7e9
1 changed files with 2 additions and 1 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <glibmm.h>
|
||||||
#include "portaudio_io.h"
|
#include "portaudio_io.h"
|
||||||
|
|
||||||
#define INTERLEAVED_INPUT
|
#define INTERLEAVED_INPUT
|
||||||
|
|
@ -128,7 +129,7 @@ void
|
||||||
PortAudioIO::device_list (std::map<int, std::string> &devices) const {
|
PortAudioIO::device_list (std::map<int, std::string> &devices) const {
|
||||||
devices.clear();
|
devices.clear();
|
||||||
for (std::map<int, paDevice*>::const_iterator i = _devices.begin (); i != _devices.end(); ++i) {
|
for (std::map<int, paDevice*>::const_iterator i = _devices.begin (); i != _devices.end(); ++i) {
|
||||||
devices.insert (std::pair<int, std::string> (i->first, i->second->name));
|
devices.insert (std::pair<int, std::string> (i->first, Glib::locale_to_utf8(i->second->name)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue