Compilation failure with portaudio
While revamping my package, I’ve tried to enable portaudio but:
../jami-daemon/src/media/audio/portaudio/portaudiolayer.cpp: In member function ‘PaDeviceIndex jami::PortAudioLayer::PortAudioLayerImpl::getApiIndexByType(jami::AudioDeviceType)’:
../jami-daemon/src/media/audio/portaudio/portaudiolayer.cpp:482:55: error: ‘Pa_GetDefaultCommInputDevice’ was not declared in this scope; did you mean ‘Pa_GetDefaultInputDevice’?
482 | return type == AudioDeviceType::CAPTURE ? Pa_GetDefaultCommInputDevice()
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Pa_GetDefaultInputDevice
../jami-daemon/src/media/audio/portaudio/portaudiolayer.cpp:483:55: error: ‘Pa_GetDefaultCommOutputDevice’ was not declared in this scope; did you mean ‘Pa_GetDefaultOutputDevice’?
483 | : Pa_GetDefaultCommOutputDevice();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Pa_GetDefaultOutputDevice
../jami-daemon/src/media/audio/portaudio/portaudiolayer.cpp: In member function ‘std::string jami::PortAudioLayer::PortAudioLayerImpl::getApiDefaultDeviceName(jami::AudioDeviceType, bool) const’:
../jami-daemon/src/media/audio/portaudio/portaudiolayer.cpp:501:36: error: ‘Pa_GetDefaultCommInputDevice’ was not declared in this scope; did you mean ‘Pa_GetDefaultInputDevice’?
501 | deviceIndex = commDevice ? Pa_GetDefaultCommInputDevice() : Pa_GetDefaultInputDevice();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Pa_GetDefaultInputDevice
../jami-daemon/src/media/audio/portaudio/portaudiolayer.cpp:503:36: error: ‘Pa_GetDefaultCommOutputDevice’ was not declared in this scope; did you mean ‘Pa_GetDefaultOutputDevice’?
503 | deviceIndex = commDevice ? Pa_GetDefaultCommOutputDevice() : Pa_GetDefaultOutputDevice();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Pa_GetDefaultOutputDevice