updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / armstrong / lunar.patch
blob6a43ad491c8943ade43e8e0b8af7e9a5e5b14d1e
1 diff --git a/src/libzzub/libzzub.cpp b/src/libzzub/libzzub.cpp
2 index 643b02c..9b1d3ea 100644
3 --- a/src/libzzub/libzzub.cpp
4 +++ b/src/libzzub/libzzub.cpp
5 @@ -251,7 +251,7 @@ int zzub_player_get_pluginloader_count(zzub_player_t *player) {
8 zzub_plugincollection_t *zzub_plugincollection_get_by_uri(zzub_player_t *player, const char *uri) {
9 - return 0;//player->getPluginlibByUri(uri);
10 + return player->getPluginlibByUri(uri);
13 void zzub_plugincollection_configure(zzub_plugincollection_t *collection, const char *key, const char *value) {
14 diff --git a/src/libzzub/player.cpp b/src/libzzub/player.cpp
15 index fcc3302..dc6f848 100644
16 --- a/src/libzzub/player.cpp
17 +++ b/src/libzzub/player.cpp
18 @@ -550,6 +550,17 @@ void player::initialize_plugin_libraries() {
19 initialize_plugin_directory(plugin_folders[i]);
22 +/*! \brief Returns a plugin library by URI. */
23 +pluginlib* player::getPluginlibByUri(const std::string &uri) {
24 + for (size_t i=0; i<plugin_libraries.size(); i++) {
25 + pluginlib *lib = plugin_libraries[i];
26 + if (lib->collection && lib->collection->get_uri() && (uri == lib->collection->get_uri())) {
27 + return lib;
28 + }
29 + }
30 + return 0;
34 void player::set_state(player_state newstate) {
35 op_state_change* o = new op_state_change(newstate);
36 diff --git a/src/libzzub/player.h b/src/libzzub/player.h
37 index 748a5a0..4c51fc0 100644
38 --- a/src/libzzub/player.h
39 +++ b/src/libzzub/player.h
40 @@ -46,6 +46,7 @@ struct player : undo_manager, audioworker, midiworker {
41 void initialize_plugin_libraries();
42 void initialize_plugin_directory(string folder);
43 void load_plugin_library(const string &fullpath);
44 + pluginlib* getPluginlibByUri(const std::string &uri);
46 // audioworker
47 virtual void work_stereo(int sample_count);