From d9d9bebf6143d55164b8d0a02462060425ea4551 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 19 Feb 2012 02:05:47 +0000 Subject: Clean up code, update copyright dates. --- plugins/eg-sampler.lv2/sampler_ui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/eg-sampler.lv2/sampler_ui.c') diff --git a/plugins/eg-sampler.lv2/sampler_ui.c b/plugins/eg-sampler.lv2/sampler_ui.c index 2c039a5..619db50 100644 --- a/plugins/eg-sampler.lv2/sampler_ui.c +++ b/plugins/eg-sampler.lv2/sampler_ui.c @@ -1,6 +1,6 @@ /* LV2 Sampler Example Plugin UI - Copyright 2011 David Robillard + Copyright 2011-2012 David Robillard Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -79,8 +79,8 @@ on_load_clicked(GtkWidget* widget, uint8_t obj_buf[OBJ_BUF_SIZE]; lv2_atom_forge_set_buffer(&ui->forge, obj_buf, OBJ_BUF_SIZE); - LV2_Atom* msg = write_set_filename_msg(&ui->forge, &ui->uris, - filename, strlen(filename)); + LV2_Atom* msg = write_set_file(&ui->forge, &ui->uris, + filename, strlen(filename)); ui->write(ui->controller, 0, lv2_atom_total_size(msg), ui->uris.atom_eventTransfer, @@ -158,7 +158,7 @@ port_event(LV2UI_Handle handle, LV2_Atom* atom = (LV2_Atom*)buffer; if (atom->type == ui->uris.atom_Blank) { LV2_Atom_Object* obj = (LV2_Atom_Object*)atom; - const LV2_Atom* file_uri = get_msg_file_path(&ui->uris, obj); + const LV2_Atom* file_uri = read_set_file(&ui->uris, obj); if (!file_uri) { fprintf(stderr, "Unknown message sent to UI.\n"); return; -- cgit v1.2.1