AudioIODevice::getName() always returns an empty string


#1

This code

AudioIODeviceType* type = m_deviceManager->getCurrentDeviceTypeObject();
const StringArray deviceNames (type->getDeviceNames (false));

Gives me device names like

AirPlay
Ausgang (integriert)

Which can be used to create a device like this:

ScopedPointer<AudioIODevice> device(type->createDevice (deviceNames[i], ""));

But recently device->getName() always returns an empty string. This seems to have changed from earlier this year. I no longer can use device->getName() to set the outputDeviceName of a AudioDeviceManager::AudioDeviceSetup structure.

Is it possible that this a bug?

 


#2

Oh, I see now, it was related to this problem: http://www.juce.com/forum/topic/simple-bug-coreaudio-audioiodevicetypecreatedevice

And its fixed already. Sorry about reporting problems while not working on the current tip.