Commit 403f9808 authored by Claudio Valerio's avatar Claudio Valerio

Merge branch 'Sankore-1.40' of github.com:Sankore/Sankore-3.1 into Sankore-1.40

parents 6307bcce 8066a99e
...@@ -162,14 +162,10 @@ QString UBAudioQueueRecorder::deviceNameFromDeviceID(AudioDeviceID id) ...@@ -162,14 +162,10 @@ QString UBAudioQueueRecorder::deviceNameFromDeviceID(AudioDeviceID id)
if (noErr == AudioDeviceGetProperty(id, 0, true, kAudioObjectPropertyName, &size, &name)) if (noErr == AudioDeviceGetProperty(id, 0, true, kAudioObjectPropertyName, &size, &name))
{ {
char *cname = new char[1024]; char cname[1024];
memset(cname,0,1024);
bool result = CFStringGetCString (name, cname, 1024, kCFStringEncodingUTF8); CFStringGetCString (name, cname, 1024, kCFStringEncodingUTF8);
int length = CFStringGetLength (name); deviceName = QString::fromUtf8(cname);
deviceName = QString::fromUtf8(cname, length);
delete cname;
} }
CFRelease(name); CFRelease(name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment