- added ZMusic_GetDeviceType function to return the currently active MIDI synth.

This commit is contained in:
Christoph Oelckers 2021-03-13 23:53:07 +01:00
parent b3c4b55dab
commit ecad4aaf06
2 changed files with 7 additions and 0 deletions

View file

@ -314,6 +314,7 @@ extern "C"
DLL_IMPORT void ZMusic_Close(ZMusic_MusicStream song);
DLL_IMPORT zmusic_bool ZMusic_SetSubsong(ZMusic_MusicStream song, int subsong);
DLL_IMPORT zmusic_bool ZMusic_IsLooping(ZMusic_MusicStream song);
DLL_IMPORT int ZMusic_GetDeviceType(ZMusic_MusicStream song);
DLL_IMPORT zmusic_bool ZMusic_IsMIDI(ZMusic_MusicStream song);
DLL_IMPORT void ZMusic_VolumeChanged(ZMusic_MusicStream song);
DLL_IMPORT zmusic_bool ZMusic_WriteSMF(ZMusic_MidiSource source, const char* fn, int looplimit);

View file

@ -440,6 +440,12 @@ DLL_EXPORT zmusic_bool ZMusic_IsLooping(MusInfo *song)
return song->m_Looping;
}
DLL_EXPORT int ZMusic_GetDeviceType(MusInfo* song)
{
if (!song) return false;
return song->GetDeviceType();
}
DLL_EXPORT zmusic_bool ZMusic_IsMIDI(MusInfo *song)
{
if (!song) return false;