From 5e26e2ab1dadb1e4176d5a4cac03100a7d21c22f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 16 Oct 2013 21:09:19 +0200 Subject: system/ByteOrder: new library for byte ordering / endianess Replacing GLib macros. --- src/decoder/VorbisDecoderPlugin.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/decoder/VorbisDecoderPlugin.cxx') diff --git a/src/decoder/VorbisDecoderPlugin.cxx b/src/decoder/VorbisDecoderPlugin.cxx index 9ef5e2eea..52e0609b8 100644 --- a/src/decoder/VorbisDecoderPlugin.cxx +++ b/src/decoder/VorbisDecoderPlugin.cxx @@ -27,6 +27,7 @@ #include "util/Error.hxx" #include "util/UriUtil.hxx" #include "util/Macros.hxx" +#include "system/ByteOrder.hxx" #include "CheckAudioFormat.hxx" #include "tag/TagHandler.hxx" #include "Log.hxx" @@ -47,18 +48,10 @@ #define ov_time_seek_page(VF, S) (ov_time_seek_page(VF, (S)*1000)) #endif /* HAVE_TREMOR */ -#include - #include #include #include -#if G_BYTE_ORDER == G_BIG_ENDIAN -#define VORBIS_BIG_ENDIAN true -#else -#define VORBIS_BIG_ENDIAN false -#endif - struct vorbis_input_stream { struct decoder *decoder; @@ -248,7 +241,7 @@ vorbis_stream_decode(struct decoder *decoder, #ifdef HAVE_TREMOR long nbytes = ov_read(&vf, buffer, sizeof(buffer), - VORBIS_BIG_ENDIAN, 2, 1, + IsBigEndian(), 2, 1, ¤t_section); #else float **per_channel; -- cgit v1.2.3