From f163b405c0a6fcf069e79d099ac7d7d64adc4471 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sat, 10 Sep 2011 20:35:04 +0000 Subject: Fully remove floating point code from libmusepack. Introduce two small const arrays for precalculated scalefactors, correct the integer type of scalefactors to unsigned, migrate some metadata calculations to fixed point. No impact to decoder output. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30497 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libmusepack/streaminfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/codecs/libmusepack/streaminfo.h') diff --git a/apps/codecs/libmusepack/streaminfo.h b/apps/codecs/libmusepack/streaminfo.h index 739d40a..52e9793 100644 --- a/apps/codecs/libmusepack/streaminfo.h +++ b/apps/codecs/libmusepack/streaminfo.h @@ -58,7 +58,7 @@ typedef struct mpc_streaminfo { mpc_uint32_t channels; ///< Number of channels in stream mpc_uint32_t stream_version; ///< Streamversion of stream mpc_uint32_t bitrate; ///< Bitrate of stream file (in bps) - double average_bitrate; ///< Average bitrate of stream (in bits/sec) + mpc_uint32_t average_bitrate; ///< Average bitrate of stream (in bits/sec) mpc_uint32_t max_band; ///< Maximum band-index used in stream (0...31) mpc_uint32_t ms; ///< Mid/side stereo (0: off, 1: on) mpc_uint32_t fast_seek; ///< True if stream supports fast-seeking (sv7) @@ -87,7 +87,7 @@ typedef struct mpc_streaminfo { char encoder[256]; ///< Encoder name */ mpc_bool_t pns; ///< pns used - float profile; ///< Quality profile of stream + mpc_uint32_t profile; ///< Quality profile of stream /* rockbox: not used const char* profile_name; ///< Name of profile used by stream */ -- cgit v1.1