Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.   native_midi:  Hardware Midi support for the SDL_mixer library
  3.   Copyright (C) 2000  Florian 'Proff' Schulze <florian.proff.schulze@gmx.net>
  4.  
  5.   This software is provided 'as-is', without any express or implied
  6.   warranty.  In no event will the authors be held liable for any damages
  7.   arising from the use of this software.
  8.  
  9.   Permission is granted to anyone to use this software for any purpose,
  10.   including commercial applications, and to alter it and redistribute it
  11.   freely, subject to the following restrictions:
  12.  
  13.   1. The origin of this software must not be misrepresented; you must not
  14.      claim that you wrote the original software. If you use this software
  15.      in a product, an acknowledgment in the product documentation would be
  16.      appreciated but is not required.
  17.   2. Altered source versions must be plainly marked as such, and must not be
  18.      misrepresented as being the original software.
  19.   3. This notice may not be removed or altered from any source distribution.
  20. */
  21.  
  22. #ifndef _NATIVE_MIDI_H_
  23. #define _NATIVE_MIDI_H_
  24.  
  25. #include <SDL_rwops.h>
  26.  
  27. typedef struct _NativeMidiSong NativeMidiSong;
  28.  
  29. int native_midi_detect();
  30. NativeMidiSong *native_midi_loadsong_RW(SDL_RWops *rw, int freerw);
  31. void native_midi_freesong(NativeMidiSong *song);
  32. void native_midi_start(NativeMidiSong *song, int loops);
  33. void native_midi_stop();
  34. int native_midi_active();
  35. void native_midi_setvolume(int volume);
  36. const char *native_midi_error(void);
  37.  
  38. #endif /* _NATIVE_MIDI_H_ */
  39.