summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2007-10-19 13:58:48 +0000
committerCarl Hetherington <carl@carlh.net>2007-10-19 13:58:48 +0000
commita29a10c02ad52e69584e3a5d1a332e83a72dedc0 (patch)
treea3fc20e6c762cc3c92c5d8d690c4c01055de5c08
parent77f16522e0b396262bc272c1637753faa9da0ba7 (diff)
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
-rw-r--r--gtk2_ardour/engine_dialog.cc14
-rw-r--r--gtk2_ardour/engine_dialog.h1
2 files changed, 14 insertions, 1 deletions
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<string>& 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<string>& 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<string>
+EngineControl::enumerate_freebob_devices ()
+{
+ vector<string> devs;
+ return devs;
+}
+vector<string>
EngineControl::enumerate_oss_devices ()
{
vector<string> 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<std::string> enumerate_alsa_devices ();
std::vector<std::string> enumerate_oss_devices ();
std::vector<std::string> enumerate_netjack_devices ();
+ std::vector<std::string> enumerate_freebob_devices ();
std::vector<std::string> enumerate_ffado_devices ();
std::vector<std::string> enumerate_dummy_devices ();
#endif