12 #include "../stdafx.h" 13 #include "../openttd.h" 24 #include "../safeguards.h" 46 return mciSendString(buf, NULL, 0, NULL, 0);
56 if (
MidiSendCommand(
"open %s type sequencer alias song", filename) != 0) {
76 mciSendString(
"status song mode", buf,
sizeof(buf), NULL, 0);
77 return strcmp(buf,
"playing") == 0 || strcmp(buf,
"seeking") == 0;
Base for OS2 music playback.
int CDECL vseprintf(char *str, const char *last, const char *format, va_list ap)
Safer implementation of vsnprintf; same as vsnprintf except:
#define lastof(x)
Get the last element of an fixed size array.
Factory for OS/2's music player.
void PlaySong(const char *filename)
Play a particular song.
bool IsSongPlaying()
Are we currently playing a song?
const char * Start(const char *const *param)
Start this driver.
static long CDECL MidiSendCommand(const char *cmd,...)
Send a midi command.
void Stop()
Stop this driver.
void StopSong()
Stop playing the current song.
void SetVolume(byte vol)
Set the volume, if possible.
static FMusicDriver_OS2 iFMusicDriver_OS2
OS/2's music player's factory.