OpenTTD Source
20241121-master-g67a0fccfad
|
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>
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. | |
fluid_synth_t * synth | |
FluidSynth synthesizer handle. | |
fluid_player_t * player | |
FluidSynth MIDI player handle. | |
std::mutex synth_mutex | |
Guard mutex for synth access. | |
} | _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. More... | |
Playing music via the fluidsynth library.
Definition in file fluidsynth.cpp.
|
static |
List of sound fonts to try by default.
Definition at line 31 of file fluidsynth.cpp.