From 509f8dab8946cfc311def89f62352c0881e73348 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Oct 2013 22:04:17 +0200 Subject: Util/Macros: replacement for GLib's G_N_ELEMENTS() --- src/decoder/FluidsynthDecoderPlugin.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/decoder/FluidsynthDecoderPlugin.cxx') diff --git a/src/decoder/FluidsynthDecoderPlugin.cxx b/src/decoder/FluidsynthDecoderPlugin.cxx index 99f1598c8..5b8909492 100644 --- a/src/decoder/FluidsynthDecoderPlugin.cxx +++ b/src/decoder/FluidsynthDecoderPlugin.cxx @@ -23,10 +23,9 @@ #include "CheckAudioFormat.hxx" #include "util/Error.hxx" #include "util/Domain.hxx" +#include "util/Macros.hxx" #include "Log.hxx" -#include - #include static constexpr Domain fluidsynth_domain("fluidsynth"); @@ -171,7 +170,7 @@ fluidsynth_file_decode(struct decoder *decoder, const char *path_fs) DecoderCommand cmd; while (fluid_player_get_status(player) == FLUID_PLAYER_PLAYING) { int16_t buffer[2048]; - const unsigned max_frames = G_N_ELEMENTS(buffer) / 2; + const unsigned max_frames = ARRAY_SIZE(buffer) / 2; /* read samples from fluidsynth and send them to the MPD core */ -- cgit v1.2.3