Merge pull request #311 from paulfd/time-pos-atom
Stub for timePosition atoms
This commit is contained in:
commit
f23be6052b
1 changed files with 7 additions and 0 deletions
|
|
@ -46,6 +46,7 @@
|
||||||
#include <lv2/worker/worker.h>
|
#include <lv2/worker/worker.h>
|
||||||
#include <lv2/log/logger.h>
|
#include <lv2/log/logger.h>
|
||||||
#include <lv2/log/log.h>
|
#include <lv2/log/log.h>
|
||||||
|
#include <lv2/time/time.h>
|
||||||
|
|
||||||
#include <ardour/lv2_extensions.h>
|
#include <ardour/lv2_extensions.h>
|
||||||
|
|
||||||
|
|
@ -146,6 +147,7 @@ typedef struct
|
||||||
LV2_URID sfizz_oversampling_uri;
|
LV2_URID sfizz_oversampling_uri;
|
||||||
LV2_URID sfizz_log_status_uri;
|
LV2_URID sfizz_log_status_uri;
|
||||||
LV2_URID sfizz_check_modification_uri;
|
LV2_URID sfizz_check_modification_uri;
|
||||||
|
LV2_URID time_position_uri;
|
||||||
|
|
||||||
// Sfizz related data
|
// Sfizz related data
|
||||||
sfizz_synth_t *synth;
|
sfizz_synth_t *synth;
|
||||||
|
|
@ -220,6 +222,7 @@ sfizz_lv2_map_required_uris(sfizz_plugin_t *self)
|
||||||
self->sfizz_oversampling_uri = map->map(map->handle, SFIZZ__oversampling);
|
self->sfizz_oversampling_uri = map->map(map->handle, SFIZZ__oversampling);
|
||||||
self->sfizz_log_status_uri = map->map(map->handle, SFIZZ__logStatus);
|
self->sfizz_log_status_uri = map->map(map->handle, SFIZZ__logStatus);
|
||||||
self->sfizz_check_modification_uri = map->map(map->handle, SFIZZ__checkModification);
|
self->sfizz_check_modification_uri = map->map(map->handle, SFIZZ__checkModification);
|
||||||
|
self->time_position_uri = map->map(map->handle, LV2_TIME__Position);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
@ -742,6 +745,10 @@ run(LV2_Handle instance, uint32_t sample_count)
|
||||||
sfizz_lv2_send_file_path(self, self->sfizz_scala_file_uri, self->scala_file_path);
|
sfizz_lv2_send_file_path(self, self->sfizz_scala_file_uri, self->scala_file_path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (obj->body.otype == self->time_position_uri)
|
||||||
|
{
|
||||||
|
// TODO: Handle time position atom
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
lv2_log_warning(&self->logger, "[sfizz] Got an Object atom but it was not supported\n");
|
lv2_log_warning(&self->logger, "[sfizz] Got an Object atom but it was not supported\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue