Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[mb-commits] r7311 - in libtunepimp/trunk: . plugins/mpc: msg#00200

audio.musicbrainz.cvs

Subject: [mb-commits] r7311 - in libtunepimp/trunk: . plugins/mpc

Author: luks
Date: 2006-04-21 18:02:58 +0000 (Fri, 21 Apr 2006)
New Revision: 7311

Modified:
libtunepimp/trunk/configure.in
libtunepimp/trunk/plugins/mpc/mpcdecode.cpp
Log:
BE -> LE conversion

Modified: libtunepimp/trunk/configure.in
===================================================================
--- libtunepimp/trunk/configure.in 2006-04-21 17:15:50 UTC (rev 7310)
+++ libtunepimp/trunk/configure.in 2006-04-21 18:02:58 UTC (rev 7311)
@@ -208,7 +208,7 @@
TP_PLUGINS="$TP_PLUGINS wma mpc"
with_wma=yes
if test "x$have_mpcdec" = "xyes"; then
- AC_C_BIGENDIAN(AC_DEFINE(BIG_ENDIAN, 1, [Define to 1 on big-endian
architectures.]))
+ AC_C_BIGENDIAN
with_mpc="yes"
else
with_mpc="yes (without decoder)"

Modified: libtunepimp/trunk/plugins/mpc/mpcdecode.cpp
===================================================================
--- libtunepimp/trunk/plugins/mpc/mpcdecode.cpp 2006-04-21 17:15:50 UTC (rev
7310)
+++ libtunepimp/trunk/plugins/mpc/mpcdecode.cpp 2006-04-21 18:02:58 UTC (rev
7311)
@@ -217,8 +217,11 @@
val = -32768;
else if (val > 32767)
val = 32767;
- // FIXME: convert to LE
+#ifdef WORDS_BIGENDIAN
+ *data++ = ((val & 0x00FF) << 8) | ((val & 0xFF00) >> 8);
+#else
*data++ = val;
+#endif
}

return samples * 2 * ds->info.channels;


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation