OpenTTD Source  1.11.0-beta2
os2_m.cpp File Reference
#include "../stdafx.h"
#include "../openttd.h"
#include "os2_m.h"
#include "midifile.hpp"
#include "../base_media_base.h"
#include <stdarg.h>
#include <os2.h>
#include <os2me.h>
#include "../safeguards.h"

Go to the source code of this file.

Functions

static long CDECL MidiSendCommand (const char *cmd,...)
 Send a midi command. More...
 

Variables

static FMusicDriver_OS2 iFMusicDriver_OS2
 OS/2's music player's factory.
 

Detailed Description

Music playback on OS/2.

Definition in file os2_m.cpp.

Function Documentation

◆ MidiSendCommand()

static long CDECL MidiSendCommand ( const char *  cmd,
  ... 
)
static

Send a midi command.

Parameters
cmdThe command to send.
Returns
The result of sending it.

Definition at line 39 of file os2_m.cpp.

References lastof, and vseprintf().

Referenced by MusicDriver_OS2::PlaySong(), MusicDriver_OS2::SetVolume(), MusicDriver_OS2::Stop(), and MusicDriver_OS2::StopSong().