Go to the documentation of this file.
10 #include "../stdafx.h"
11 #include "../openttd.h"
13 #include "../base_media_base.h"
14 #include "midifile.hpp"
17 #include <MidiSynthFile.h>
19 #include "../safeguards.h"
42 if (!filename.empty()) {
44 get_ref_for_path(filename.c_str(), &midiRef);
62 fprintf(stderr,
"BeMidi: Set volume not implemented\n");
static BMidiSynthFile midiSynthFile
The file we're playing.
static FMusicDriver_BeMidi iFMusicDriver_BeMidi
Factory for BeOS' midi player.
void StopSong() override
Stop playing the current song.
void PlaySong(const MusicSongInfo &song) override
Play a particular song.
Metadata about a music track.
std::vector< std::string > StringList
Type for a list of strings.
static std::string GetSMFFile(const MusicSongInfo &song)
Get the name of a Standard MIDI File for a given song.
bool IsSongPlaying() override
Are we currently playing a song?
void Stop() override
Stop this driver.
Factory for the BeOS midi player.
void SetVolume(byte vol) override
Set the volume, if possible.
const char * Start(const StringList ¶m) override
Start this driver.