native_midi.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. int native_midi_detect();
  23. NativeMidiSong *native_midi_loadsong(const char *midifile);
  24. NativeMidiSong *native_midi_loadsong_RW(SDL_RWops *rw);
  25. void native_midi_freesong(NativeMidiSong *song);
  26. void native_midi_start(NativeMidiSong *song);
  27. void native_midi_stop();
  28. int native_midi_active();
  29. void native_midi_setvolume(int volume);
  30. const char *native_midi_error(void);
  31. #endif /* _NATIVE_MIDI_H_ */