aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/WildmidiDecoderPlugin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/WildmidiDecoderPlugin.cxx')
-rw-r--r--src/decoder/WildmidiDecoderPlugin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder/WildmidiDecoderPlugin.cxx b/src/decoder/WildmidiDecoderPlugin.cxx
index 721229f87..832cabe76 100644
--- a/src/decoder/WildmidiDecoderPlugin.cxx
+++ b/src/decoder/WildmidiDecoderPlugin.cxx
@@ -60,9 +60,9 @@ wildmidi_finish(void)
static void
wildmidi_file_decode(struct decoder *decoder, const char *path_fs)
{
- static const struct audio_format audio_format = {
+ static constexpr AudioFormat audio_format = {
WILDMIDI_SAMPLE_RATE,
- SAMPLE_FORMAT_S16,
+ SampleFormat::S16,
2,
};
midi *wm;
@@ -79,7 +79,7 @@ wildmidi_file_decode(struct decoder *decoder, const char *path_fs)
return;
}
- decoder_initialized(decoder, &audio_format, true,
+ decoder_initialized(decoder, audio_format, true,
info->approx_total_samples / WILDMIDI_SAMPLE_RATE);
do {