diff options
author | Max Kellermann <max@duempel.org> | 2013-10-15 22:04:17 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-15 22:47:39 +0200 |
commit | 509f8dab8946cfc311def89f62352c0881e73348 (patch) | |
tree | 913fbb714704bcffc0ca6b8f44cdfb293ec9ee24 /src/decoder/VorbisDecoderPlugin.cxx | |
parent | 77429b6dd35e23efac92630bab35d935b9496345 (diff) | |
download | mpd-509f8dab8946cfc311def89f62352c0881e73348.tar.gz mpd-509f8dab8946cfc311def89f62352c0881e73348.tar.xz mpd-509f8dab8946cfc311def89f62352c0881e73348.zip |
Util/Macros: replacement for GLib's G_N_ELEMENTS()
Diffstat (limited to 'src/decoder/VorbisDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/VorbisDecoderPlugin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decoder/VorbisDecoderPlugin.cxx b/src/decoder/VorbisDecoderPlugin.cxx index 55ce943e8..9ef5e2eea 100644 --- a/src/decoder/VorbisDecoderPlugin.cxx +++ b/src/decoder/VorbisDecoderPlugin.cxx @@ -26,6 +26,7 @@ #include "OggCodec.hxx" #include "util/Error.hxx" #include "util/UriUtil.hxx" +#include "util/Macros.hxx" #include "CheckAudioFormat.hxx" #include "tag/TagHandler.hxx" #include "Log.hxx" @@ -226,7 +227,7 @@ vorbis_stream_decode(struct decoder *decoder, #else float buffer[2048]; const int frames_per_buffer = - G_N_ELEMENTS(buffer) / audio_format.channels; + ARRAY_SIZE(buffer) / audio_format.channels; const unsigned frame_size = sizeof(buffer[0]) * audio_format.channels; #endif |