native_midi/native_midi.h
author Ozkan Sezer <sezeroz@gmail.com>
Sun, 07 Oct 2018 03:07:33 +0300
branchSDL-1.2
changeset 885 dd251a0ec666
parent 542 3de4970b36d4
child 625 1d489d8ec2e0
permissions -rw-r--r--
backport fix for bug #2795. (from 2.0 branch commit b28b41b93ba7).
     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_ */