timidity/timidity.h
author Sam Lantinga <slouken@libsdl.org>
Wed, 04 Jan 2012 00:16:03 -0500
changeset 542 3de4970b36d4
parent 521 565549e046b0
child 782 e7d3a8f73e88
permissions -rw-r--r--
Fixed bug 1252 - Added Mix_LoadMUSType_RW() so you can tell SDL_mixer what type the music is

This involved a complete refactoring of the music loading so it's entirely rwops based and has improved music type detection code.
slouken@0
     1
/*
slouken@0
     2
    TiMidity -- Experimental MIDI to WAVE converter
slouken@0
     3
    Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>
slouken@0
     4
slouken@518
     5
    This program is free software; you can redistribute it and/or modify
slouken@518
     6
    it under the terms of the Perl Artistic License, available in COPYING.
slouken@518
     7
 */
slouken@0
     8
slouken@0
     9
typedef struct _MidiSong MidiSong;
slouken@0
    10
slouken@0
    11
extern int Timidity_Init(int rate, int format, int channels, int samples);
slouken@421
    12
extern const char *Timidity_Error(void);
slouken@0
    13
extern void Timidity_SetVolume(int volume);
slouken@0
    14
extern int Timidity_PlaySome(void *stream, int samples);
slouken@521
    15
extern MidiSong *Timidity_LoadSong_RW(SDL_RWops *rw, int freerw);
slouken@0
    16
extern void Timidity_Start(MidiSong *song);
slouken@0
    17
extern int Timidity_Active(void);
slouken@0
    18
extern void Timidity_Stop(void);
slouken@0
    19
extern void Timidity_FreeSong(MidiSong *song);
patmandin@264
    20
extern void Timidity_Close(void);