mirror of
https://github.com/ZDoom/ZMusic.git
synced 2024-11-14 16:41:03 +00:00
- added ZMusic_GetDeviceType function to return the currently active MIDI synth.
This commit is contained in:
parent
b3c4b55dab
commit
ecad4aaf06
2 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue