mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
Implement AudioBackend::driver_name() in PortaudioBackend
This was missing and is necessary for EngineControl dialog to work properly
This commit is contained in:
parent
6a0e46352c
commit
fe50d06876
4 changed files with 27 additions and 7 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue