native_midi.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. native_midi: Hardware Midi support for the SDL_mixer library
  3. Copyright (C) 2000 Florian 'Proff' Schulze
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public
  13. License along with this library; if not, write to the Free
  14. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  15. Florian 'Proff' Schulze
  16. florian.proff.schulze@gmx.net
  17. */
  18. #ifndef _NATIVE_MIDI_H_
  19. #define _NATIVE_MIDI_H_
  20. #include <SDL_rwops.h>
  21. typedef struct _NativeMidiSong NativeMidiSong;
  22. #ifdef __cplusplus
  23. extern "C"
  24. {
  25. #endif
  26. int native_midi_detect();
  27. NativeMidiSong *native_midi_loadsong(const char *midifile);
  28. NativeMidiSong *native_midi_loadsong_RW(SDL_RWops *rw);
  29. void native_midi_freesong(NativeMidiSong *song);
  30. void native_midi_start(NativeMidiSong *song);
  31. void native_midi_stop();
  32. int native_midi_active();
  33. void native_midi_setvolume(int volume);
  34. const char *native_midi_error(void);
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif /* _NATIVE_MIDI_H_ */