summaryrefslogtreecommitdiff
path: root/common/JackAudioAdapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/JackAudioAdapter.cpp')
-rw-r--r--common/JackAudioAdapter.cpp84
1 files changed, 0 insertions, 84 deletions
diff --git a/common/JackAudioAdapter.cpp b/common/JackAudioAdapter.cpp
index 005df3cf..270bcc4a 100644
--- a/common/JackAudioAdapter.cpp
+++ b/common/JackAudioAdapter.cpp
@@ -188,87 +188,3 @@ fail:
}
} //namespace
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-#include "driver_interface.h"
-
-#ifdef __linux__
-#include "JackAlsaAdapter.h"
-#endif
-
-#ifdef __APPLE__
-#include "JackCoreAudioAdapter.h"
-#endif
-
-#ifdef WIN32
-#include "JackPortAudioAdapter.h"
-#endif
-
- using namespace Jack;
-
- EXPORT int jack_internal_initialize(jack_client_t* jack_client, const JSList* params)
- {
- jack_log("Loading audioadapter");
-
- Jack::JackAudioAdapter* adapter;
- jack_nframes_t buffer_size = jack_get_buffer_size(jack_client);
- jack_nframes_t sample_rate = jack_get_sample_rate(jack_client);
-
-#ifdef __linux__
- adapter = new Jack::JackAudioAdapter(jack_client, new Jack::JackAlsaAdapter(buffer_size, sample_rate, params));
-#endif
-
-#ifdef WIN32
- adapter = new Jack::JackAudioAdapter(jack_client, new Jack::JackPortAudioAdapter(buffer_size, sample_rate, params));
-#endif
-
-#ifdef __APPLE__
- adapter = new Jack::JackAudioAdapter(jack_client, new Jack::JackCoreAudioAdapter(buffer_size, sample_rate, params));
-#endif
-
- assert(adapter);
-
- if (adapter->Open() == 0)
- return 0;
- else
- {
- delete adapter;
- return 1;
- }
- }
-
- EXPORT int jack_initialize(jack_client_t* jack_client, const char* load_init)
- {
- JSList* params = NULL;
- jack_driver_desc_t *desc = jack_get_descriptor();
-
- JackArgParser parser(load_init);
-
- if (parser.GetArgc() > 0)
- {
- if (parser.ParseParams(desc, &params) != 0)
- jack_error("Internal client : JackArgParser::ParseParams error.");
- }
-
- return jack_internal_initialize(jack_client, params);
- }
-
- EXPORT void jack_finish(void* arg)
- {
- Jack::JackAudioAdapter* adapter = static_cast<Jack::JackAudioAdapter*>(arg);
-
- if (adapter)
- {
- jack_log("Unloading audioadapter");
- adapter->Close();
- delete adapter;
- }
- }
-
-#ifdef __cplusplus
-}
-#endif