structs.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. TiMidity -- Experimental MIDI to WAVE converter
  3. Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>
  4. In case you haven't heard, this program is free software;
  5. you can redistribute it and/or modify it under the terms of the
  6. GNU General Public License as published by the Free Software
  7. Foundation; either version 2 of the License, or (at your option)
  8. any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. structs.h
  17. */
  18. #ifndef TIMIDITY_STRUCTS_H
  19. #define TIMIDITY_STRUCTS_H
  20. #include <stdint.h>
  21. typedef struct {
  22. int32_t time;
  23. uint8_t channel, type, a, b;
  24. } MidiEvent;
  25. struct _MidiSong {
  26. int32_t samples;
  27. MidiEvent *events;
  28. };
  29. #endif