|
OpenTTD Source 20251117-master-g7398d2e290
|
Playing music via the fluidsynth library. More...
#include "../stdafx.h"#include "../openttd.h"#include "../sound_type.h"#include "../debug.h"#include "fluidsynth.h"#include "midifile.hpp"#include "../mixer.h"#include <mutex>#include "../safeguards.h"Go to the source code of this file.
Functions | |
| static void | RenderMusicStream (int16_t *buffer, size_t samples) |
Variables | ||
| struct { | ||
| fluid_settings_t * settings | ||
| FluidSynth settings handle. More... | ||
| fluid_synth_t * synth | ||
| FluidSynth synthesizer handle. More... | ||
| fluid_player_t * player | ||
| FluidSynth MIDI player handle. More... | ||
| std::mutex synth_mutex | ||
| Guard mutex for synth access. More... | ||
| } | _midi | |
| Metadata about the midi we're playing. | ||
| static FMusicDriver_FluidSynth | iFMusicDriver_FluidSynth | |
| Factory for the FluidSynth driver. | ||
| static const char * | default_sf [] | |
| List of sound fonts to try by default. | ||
Playing music via the fluidsynth library.
Definition in file fluidsynth.cpp.
|
static |
Definition at line 54 of file fluidsynth.cpp.
|
static |
List of sound fonts to try by default.
Definition at line 32 of file fluidsynth.cpp.
Referenced by MusicDriver_FluidSynth::Start().
|
static |
Factory for the FluidSynth driver.
Definition at line 29 of file fluidsynth.cpp.
| fluid_player_t* player |
FluidSynth MIDI player handle.
Definition at line 24 of file fluidsynth.cpp.
| fluid_settings_t* settings |
FluidSynth settings handle.
Definition at line 22 of file fluidsynth.cpp.
Referenced by CmdBuildAircraft(), CmdBuildRailVehicle(), CmdBuildRoadVehicle(), CmdBuildShip(), CmdChangeCompanySetting(), DemandCalculator::DemandCalculator(), FontProviderManager::FindFallbackFont(), GetFontCacheFontName(), GetSaveLoadFromSettingTable(), GetSettingFromName(), GetSettingsDesc(), PATSChunkHandler::LoadCheck(), FreeTypeFontCacheFactory::LoadFont(), CoreTextFontCacheFactory::LoadFont(), Win32FontCacheFactory::LoadFont(), LoadSettings(), VideoDriver_Win32Base::MakeWindow(), ReplaceVehicleWindow::OnClick(), Packet::Recv_string(), SaveSettings(), LanguagePackGlyphSearcher::SetFontNames(), TextfileWindow::SetFontNames(), SlStdString(), StrMakeValid(), StrMakeValid(), StrMakeValidInPlace(), and StrMakeValidInPlace().
| fluid_synth_t* synth |
FluidSynth synthesizer handle.
Definition at line 23 of file fluidsynth.cpp.
| std::mutex synth_mutex |
Guard mutex for synth access.
Definition at line 25 of file fluidsynth.cpp.