Jean-Marc Valin
2004-Aug-06 15:02 UTC
[speex-dev] [ANNOUNCE] PocketPC Port for speex-1.1.5 with samplecode
I understand that. I'm just saying that it should really be #ifdef HAS_INT64 ... Otherwise, you'll end up with 10 lines of #ifdefs Jean-Marc Le mar 01/06/2004 à 15:21, Kenji Chan a écrit :> It's the case now, MS's compilers don't support long long type > So in the arch.h file I posted. Since _WIN32_WCE is defined for every > Windows CE platform (including PocketPC), > we can be sure if the following are defined, then it's ms's eMbedded Visual > C++ compiler > > 1. _WIN32_WCE, meaning on Windows CE platform > 2. _MSC_VER, meaning ms's compiler > > // the code in arch.h > > /*long long is not recognized by > eMbedded Visual C++ compiler; > so use MS's __int64 instead of long long, > if compiling on that compiler > */ > #if defined(_WIN32_WCE) && defined(_MSC_VER) > typedef __int64 spx_word64_t; > #else > typedef long long spx_word64_t; > #endif > > > ------------------------------------ > Chan Kei Yuen (Kenji) > > > > Actually, the best thing do to would be to use __int64 > > *unless* it's not supported. So there needs to be a configure check... > > > > Jean-Marc > > > > Le mar 01/06/2004 à 14:50, Kenji Chan a écrit : > > > I emailed Jean-Marc the arch.h about one week ago, not quite sure > > > whether he actually received that email. > > > > > > > > > > > > Anyway, here I have an improved version of arch.h that I > > believe that > > > it would be better, to use __int64 only if compiling on eMbedded > > > Visual C++ compiler, so for any other compiler, keep it the > > same (use > > > long long) > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > Ogg project homepage: http://www.xiph.org/ogg/ > To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered.-- Jean-Marc Valin http://www.xiph.org/~jm/ LABORIUS Université de Sherbrooke, Québec, Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Ceci est une partie de message numériquement signée. Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040601/1a42f239/signature-0001.pgp
Kenji Chan
2004-Aug-06 15:02 UTC
[speex-dev] [ANNOUNCE] PocketPC Port for speex-1.1.5 with samplecode
It's the case now, MS's compilers don't support long long type So in the arch.h file I posted. Since _WIN32_WCE is defined for every Windows CE platform (including PocketPC), we can be sure if the following are defined, then it's ms's eMbedded Visual C++ compiler 1. _WIN32_WCE, meaning on Windows CE platform 2. _MSC_VER, meaning ms's compiler // the code in arch.h /*long long is not recognized by eMbedded Visual C++ compiler; so use MS's __int64 instead of long long, if compiling on that compiler */ #if defined(_WIN32_WCE) && defined(_MSC_VER) typedef __int64 spx_word64_t; #else typedef long long spx_word64_t; #endif <p>------------------------------------ Chan Kei Yuen (Kenji) <p>> Actually, the best thing do to would be to use __int64> *unless* it's not supported. So there needs to be a configure check... > > Jean-Marc > > Le mar 01/06/2004 à 14:50, Kenji Chan a écrit : > > I emailed Jean-Marc the arch.h about one week ago, not quite sure > > whether he actually received that email. > > > > > > > > Anyway, here I have an improved version of arch.h that I > believe that > > it would be better, to use __int64 only if compiling on eMbedded > > Visual C++ compiler, so for any other compiler, keep it the > same (use > > long long)--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Jean-Marc Valin
2004-Aug-06 15:02 UTC
[speex-dev] [ANNOUNCE] PocketPC Port for speex-1.1.5 with sample code
Actually, the best thing do to would be to use __int64 *unless* it's not supported. So there needs to be a configure check... Jean-Marc Le mar 01/06/2004 à 14:50, Kenji Chan a écrit :> I emailed Jean-Marc the arch.h about one week ago, not quite sure > whether he actually received that email. > > > > Anyway, here I have an improved version of arch.h that I believe that > it would be better, to use __int64 only if compiling on eMbedded > Visual C++ compiler, so for any other compiler, keep it the same (use > long long) > > > > > > ---------------------------------- > > Chan Kei Yuen (Kenji) > > > > > > -----Original Message----- > From: owner-speex-dev@xiph.org[mailto:owner-speex-dev@xiph.org] On > Behalf Of Asheesh Vashishtha > Sent: Monday, May 31, 2004 11:05 PM > To: speex-dev@xiph.org > Cc: Jean-Marc.Valin@USherbrooke.ca; Varun Sharma; Sanjeev Jagtap > Subject: [speex-dev] [ANNOUNCE] PocketPC Port for speex-1.1.5 with > sample code > > > > Hi Jean-Marc, > > Based on the wonderful Speex project, I've created SpeexOutLoud, > essentially a Speex codec port for Windows Mobile 2003 devices. > > I've included a sample project intended to show the usage of > SpeexOutLoud codec in a Pocket PC application based on .NET Compact > Framework. > > I'd request you to please go through the attached build, and include > it as a contribution to the ever-increasing group of people making use > of Speex. > > If you feel the code is OK; it should probably go somewhere beneath > the win32 directory within speex-1.1.x, and with the speex sample > code. > > Please let me know if you have any queries/comments/suggestions. The > attached README has compile/usage/bug-notes. > > Thanks & regards, > Asheesh > > (asheeshv@grapecity.com) > > <<PocketPCPortRelease.zip>> <<arch.h>>-- Jean-Marc Valin http://www.xiph.org/~jm/ LABORIUS Université de Sherbrooke, Québec, Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Ceci est une partie de message numériquement signée. Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040601/d9156db5/signature-0001.pgp
Maybe Matching Threads
- [ANNOUNCE] PocketPC Port for speex-1.1.5 with sample code
- [ANNOUNCE] PocketPC Port for speex-1.1.5 with sample code
- [ANNOUNCE] PocketPC Port for speex-1.1.5 with sample code
- What is the format of the PCM/WAV dataforspeex_encode & speex_decode?
- What is the format of the PCM/WAV dataforspeex_encode & speex_decode?