From a29a10c02ad52e69584e3a5d1a332e83a72dedc0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 19 Oct 2007 13:58:48 +0000 Subject: [PATCH] Patch from mantis user 'lincoln'; add support for FreeBoB in the audio settings, and pass the correct flag to JACK for using FFADO. git-svn-id: svn://localhost/ardour2/trunk@2562 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/engine_dialog.cc | 14 +++++++++++++- gtk2_ardour/engine_dialog.h | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index 5be28e9226..8a8f99f745 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -113,6 +113,7 @@ EngineControl::EngineControl () strings.push_back (X_("ALSA")); strings.push_back (X_("OSS")); strings.push_back (X_("FFADO")); + strings.push_back (X_("FreeBoB")); #endif strings.push_back (X_("NetJACK")); strings.push_back (X_("Dummy")); @@ -363,6 +364,7 @@ EngineControl::build_command_line (vector& cmd) bool using_coreaudio = false; bool using_netjack = false; bool using_ffado = false; + bool using_freebob = false; /* first, path to jackd */ @@ -424,7 +426,10 @@ EngineControl::build_command_line (vector& cmd) cmd.push_back ("netjack"); } else if (driver == X_("FFADO")) { using_ffado = true; - cmd.push_back ("ffado"); + cmd.push_back ("firewire"); + } else if (driver == X_("FreeBoB")) { + using_freebob = true; + cmd.push_back ("freebob"); } /* driver arguments */ @@ -567,6 +572,7 @@ EngineControl::enumerate_devices () #else devices["ALSA"] = enumerate_alsa_devices (); devices["FFADO"] = enumerate_ffado_devices (); + devices["FreeBoB"] = enumerate_freebob_devices (); devices["OSS"] = enumerate_oss_devices (); devices["Dummy"] = enumerate_dummy_devices (); devices["NetJACK"] = enumerate_netjack_devices (); @@ -712,6 +718,12 @@ EngineControl::enumerate_ffado_devices () return devs; } vector +EngineControl::enumerate_freebob_devices () +{ + vector devs; + return devs; +} +vector EngineControl::enumerate_oss_devices () { vector devs; diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h index 925d12acbb..c9851c89cc 100644 --- a/gtk2_ardour/engine_dialog.h +++ b/gtk2_ardour/engine_dialog.h @@ -91,6 +91,7 @@ class EngineControl : public Gtk::VBox { std::vector enumerate_alsa_devices (); std::vector enumerate_oss_devices (); std::vector enumerate_netjack_devices (); + std::vector enumerate_freebob_devices (); std::vector enumerate_ffado_devices (); std::vector enumerate_dummy_devices (); #endif