AudioDeviceManager initialise no such device


#1

Hi,
I used Juce as library for my audio app and I am facing the following problem:
I use raspberry 3 and here is how I initialise audio device :
AudioDeviceManager::AudioDeviceSetup AudioSetup;
AudioSetup.sampleRate = 44100;
AudioSetup.bufferSize = 2048;
AudioSetup.inputChannels = 2;
AudioSetup.inputDeviceName = device.name;
AudioSetup.outputChannels = 2;
AudioSetup.outputDeviceName = device.name;

juce::String status  = deviceManager.initialise (0, 2, nullptr, true, {}, &AudioSetup);

When I run the code I get the following error :
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM pulse
init:No such device: plughw:CARD=CODEC,DEV=0

Any idea? thank you for help