ALSA device name for inputDeviceName and outputDeviceName

Hello,

 

What is the proper device name to put in a AudioDeviceManager::AudioDeviceSetup() to pass to an AudioDeviceManager object? Is it the name displayed by aplay -L and arecord -L? I've tried different names and I always get "No such device: " when AudioDeviceManager is initialized.

 

For example, if I have this:

$ aplay -L

null

    Discard all samples (playback) or generate zero samples (capture)

sysdefault:CARD=sndrpiwsp

    snd_rpi_wsp, 

    Default Audio Device

sysdefault:CARD=ALSA

    bcm2835 ALSA, bcm2835 ALSA

    Default Audio Device

 

Should I do this?

deviceSetupU = new AudioDeviceManager::AudioDeviceSetup();

deviceSetupU->outputDeviceName = "sndrpiwsp";

 

Thanks!

 

Hector

It would be one of the names that is returned by the AudioIODeviceType::getDeviceNames() method