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