restore ability to create TOC and CUE files during export. this is an option in a...
[ardour.git] / libs / ardour / lv2_event_buffer.cc
index 6afd395a56580ae2e3eea99aef2edd0f87d0d744..f1e5e4d0d13e972f54ecc0fbcc9731de02a0f693 100644 (file)
@@ -1,27 +1,26 @@
 /*
-    Copyright (C) 2009 Paul Davis 
-    Author: Dave Robillard
+    Copyright (C) 2009 Paul Davis
+    Author: David Robillard
 
     This program is free software; you can redistribute it and/or modify it
     under the terms of the GNU General Public License as published by the Free
     Software Foundation; either version 2 of the License, or (at your option)
     any later version.
-    
+
     This program is distributed in the hope that it will be useful, but WITHOUT
     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
     for more details.
-    
+
     You should have received a copy of the GNU General Public License along
     with this program; if not, write to the Free Software Foundation, Inc.,
     675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#define __STDC_LIMIT_MACROS 1
 #include <stdint.h>
 #include <iostream>
-#include "lv2ext/lv2_event.h"
-#include "lv2ext/lv2_event_helpers.h"
+#include "lv2/lv2plug.in/ns/ext/event/event.h"
+#include "lv2/lv2plug.in/ns/ext/event/event-helpers.h"
 #include "ardour/lv2_event_buffer.h"
 
 using namespace std;
@@ -99,14 +98,14 @@ LV2EventBuffer::is_valid() const
 
 
 /** Read an event from the current position in the buffer
- * 
+ *
  * \return true if read was successful, or false if end of buffer reached
  */
 bool
 LV2EventBuffer::get_event(uint32_t* frames,
-                          uint32_t* subframes, 
-                          uint16_t* type, 
-                          uint16_t* size, 
+                          uint32_t* subframes,
+                          uint16_t* type,
+                          uint16_t* size,
                           uint8_t** data) const
 {
        if (lv2_event_is_valid(&_iter)) {
@@ -165,7 +164,7 @@ LV2EventBuffer::append(uint32_t       frames,
  * \return true on success
  */
 bool
-LV2EventBuffer::append(const LV2_Event_Buffer* buf)
+LV2EventBuffer::append(const LV2_Event_Buffer* /*buf*/)
 {
        uint8_t** data = NULL;
        bool      ret  = true;
@@ -188,7 +187,7 @@ LV2EventBuffer::append(const LV2_Event_Buffer* buf)
                _latest_frames = ev->frames;
                _latest_subframes = ev->subframes;
        }
-       
+
        return ret;
 }