- renamed a few functions in the public interface of ZMusic.
This commit is contained in:
parent
02507effe8
commit
2bc72f38cc
6 changed files with 20 additions and 19 deletions
|
|
@ -156,7 +156,7 @@ CDDAFile::CDDAFile (MusicIO::FileInterface* reader)
|
|||
uint32_t discid;
|
||||
auto endpos = reader->tell() + reader->filelength() - 8;
|
||||
|
||||
// I_RegisterSong already identified this as a CDDA file, so we
|
||||
// ZMusic_OpenSong already identified this as a CDDA file, so we
|
||||
// just need to check the contents we're interested in.
|
||||
reader->seek(12, SEEK_CUR);
|
||||
|
||||
|
|
|
|||
|
|
@ -54,25 +54,25 @@ struct Dummy
|
|||
MiscConfig miscConfig;
|
||||
Callbacks musicCallbacks;
|
||||
|
||||
void SetCallbacks(const Callbacks* cb)
|
||||
void ZMusic_SetCallbacks(const Callbacks* cb)
|
||||
{
|
||||
dumb_decode_vorbis = cb->DumbVorbisDecode;
|
||||
musicCallbacks = *cb;
|
||||
}
|
||||
|
||||
void SetGenMidi(const uint8_t* data)
|
||||
void ZMusic_SetGenMidi(const uint8_t* data)
|
||||
{
|
||||
memcpy(oplConfig.OPLinstruments, data, 175 * 36);
|
||||
oplConfig.genmidiset = true;
|
||||
}
|
||||
|
||||
void SetWgOpn(const void* data, unsigned len)
|
||||
void ZMusic_SetWgOpn(const void* data, unsigned len)
|
||||
{
|
||||
opnConfig.default_bank.resize(len);
|
||||
memcpy(opnConfig.default_bank.data(), data, len);
|
||||
}
|
||||
|
||||
void SetDmxGus(const void* data, unsigned len)
|
||||
void ZMusic_SetDmxGus(const void* data, unsigned len)
|
||||
{
|
||||
gusConfig.dmxgus.resize(len);
|
||||
memcpy(gusConfig.dmxgus.data(), data, len);
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ static bool ungzip(uint8_t *data, int complen, std::vector<uint8_t> &newdata)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
MusInfo *I_RegisterSong (MusicIO::FileInterface *reader, EMidiDevice device, const char *Args)
|
||||
MusInfo *ZMusic_OpenSong (MusicIO::FileInterface *reader, EMidiDevice device, const char *Args)
|
||||
{
|
||||
MusInfo *info = nullptr;
|
||||
StreamSource *streamsource = nullptr;
|
||||
|
|
@ -304,7 +304,7 @@ MusInfo *I_RegisterSong (MusicIO::FileInterface *reader, EMidiDevice device, con
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
MusInfo *I_RegisterCDSong (int track, int id)
|
||||
MusInfo *ZMusic_OpenCDSong (int track, int id)
|
||||
{
|
||||
MusInfo *info = CD_OpenSong (track, id);
|
||||
|
||||
|
|
|
|||
|
|
@ -141,13 +141,13 @@ struct Callbacks
|
|||
};
|
||||
|
||||
// Sets callbacks for functionality that the client needs to provide.
|
||||
void SetCallbacks(const Callbacks *callbacks);
|
||||
void ZMusic_SetCallbacks(const Callbacks *callbacks);
|
||||
// Sets GenMidi data for OPL playback. If this isn't provided the OPL synth will not work.
|
||||
void SetGenMidi(const uint8_t* data);
|
||||
void ZMusic_SetGenMidi(const uint8_t* data);
|
||||
// Set default bank for OPN. Without this OPN only works with custom banks.
|
||||
void SetWgOpn(const void* data, unsigned len);
|
||||
void ZMusic_SetWgOpn(const void* data, unsigned len);
|
||||
// Set DMXGUS data for running the GUS synth in actual GUS mode.
|
||||
void SetDmxGus(const void* data, unsigned len);
|
||||
void ZMusic_SetDmxGus(const void* data, unsigned len);
|
||||
|
||||
// These exports are needed by the MIDI dumpers which need to remain on the client side.
|
||||
class MIDISource; // abstract for the client
|
||||
|
|
@ -156,8 +156,8 @@ EMIDIType IdentifyMIDIType(uint32_t *id, int size);
|
|||
MIDISource *CreateMIDISource(const uint8_t *data, size_t length, EMIDIType miditype);
|
||||
void MIDIDumpWave(MIDISource* source, EMidiDevice devtype, const char* devarg, const char* outname, int subsong, int samplerate);
|
||||
|
||||
MusInfo *I_RegisterSong (MusicIO::FileInterface *reader, EMidiDevice device, const char *Args);
|
||||
MusInfo *I_RegisterCDSong (int track, int cdid = 0);
|
||||
MusInfo *ZMusic_OpenSong (MusicIO::FileInterface *reader, EMidiDevice device, const char *Args);
|
||||
MusInfo *ZMusic_OpenCDSong (int track, int cdid = 0);
|
||||
|
||||
void ZMusic_Shutdown();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue