shithub: choc

ref: 2f8ed99c11279ab932dbda6db0647f70c3280b7a
dir: /src/i_midirpc.h/

View raw version
//
// Copyright(C) 2013 James Haley et al.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// DESCRIPTION:
//     Client Interface to RPC Midi Server
//

#ifndef I_MIDIRPC_H__
#define I_MIDIRPC_H__

#ifdef EE_FEATURE_MIDIRPC

bool I_MidiRPCInitServer();
bool I_MidiRPCInitClient();
void I_MidiRPCClientShutDown();
bool I_MidiRPCReady();

bool I_MidiRPCRegisterSong(void *data, int size);
bool I_MidiRPCPlaySong(bool looping);
bool I_MidiRPCStopSong();
bool I_MidiRPCSetVolume(int volume);
bool I_MidiRPCPauseSong();
bool I_MidiRPCResumeSong();

#endif

#endif

// EOF