Implement AudioBackend::driver_name() in PortaudioBackend

This was missing and is necessary for EngineControl dialog to work properly
This commit is contained in:
Tim Mayberry 2015-07-29 13:28:17 +10:00
parent 6a0e46352c
commit fe50d06876
4 changed files with 27 additions and 7 deletions

View file

@ -128,10 +128,22 @@ PortAudioBackend::enumerate_drivers () const
int
PortAudioBackend::set_driver (const std::string& name)
{
_pcmio->set_host_api (name);
DEBUG_AUDIO (string_compose ("Portaudio: set_driver %1 \n", name));
if (!_pcmio->set_host_api (name)) {
DEBUG_AUDIO (string_compose ("Portaudio: Unable to set_driver %1 \n", name));
return -1;
}
return 0;
}
std::string
PortAudioBackend::driver_name () const
{
std::string driver_name = _pcmio->get_host_api ();
DEBUG_AUDIO (string_compose ("Portaudio: driver_name %1 \n", driver_name));
return driver_name;
}
bool
PortAudioBackend::use_separate_input_and_output_devices () const
{