00001 /* 00002 Copyright (C) 2010 Karol Krizka <kkrizka@gmail.com> 00003 00004 URL: http://www.krizka.net/projects/libmidi/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 00020 $Id$ 00021 */ 00022 00023 #include "Event.h" 00024 00025 #include <iostream> 00026 using namespace std; 00027 00028 namespace MIDI 00029 { 00030 Event::Event() 00031 : _deltaTime(0) 00032 { } 00033 00034 Event::Event(const Event& o) 00035 : _deltaTime(o._deltaTime) 00036 { } 00037 00038 Event::Event(dword deltaTime) 00039 : _deltaTime(deltaTime) 00040 { } 00041 00042 dword Event::deltaTime() 00043 { 00044 return _deltaTime; 00045 } 00046 00047 DataBuffer Event::data() 00048 { 00049 DataBuffer data(10000); 00050 data.writeVariableLength(_deltaTime); 00051 return data; 00052 } 00053 00054 void Event::debug() 00055 { 00056 cout << "\tMIDI Event" << endl; 00057 } 00058 }