linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] mediastreamer2 configure.ac patch for MacOS X.


From: Aymeric Moizard
Subject: Re: [Linphone-developers] mediastreamer2 configure.ac patch for MacOS X.
Date: Tue, 1 Jan 2008 14:55:34 +0100 (CET)


Hiroki, simon,

good news: the native macosx stuff is working for me now. I had to remove the bigendian flags (kLinearPCMFormatFlagIsBigEndian) when compiling on
my intel.

However, I'm sure there is some way to get common code to work for both
platform without such #ifdef?

The below patch has been merged.

Tks Hiroki for your help.
Aymeric

Index: src/macsnd.c
===================================================================
RCS file: /cvsroot/linphone/linphone/mediastreamer2/src/macsnd.c,v
retrieving revision 1.1
diff -r1.1 macsnd.c
480c480,483
<               outASBD.mFormatFlags = kAudioFormatFlagIsSignedInteger | 
kAudioFormatFlagIsPacked | kLinearPCMFormatFlagIsBigEndian;
---
              outASBD.mFormatFlags = kAudioFormatFlagIsSignedInteger | 
kAudioFormatFlagIsPacked;
#if __BIG_ENDIAN__
              outASBD.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian;
#endif
525c528,531
<               inASBD.mFormatFlags = kAudioFormatFlagIsSignedInteger | 
kAudioFormatFlagIsPacked | kLinearPCMFormatFlagIsBigEndian;
---
              inASBD.mFormatFlags = kAudioFormatFlagIsSignedInteger | 
kAudioFormatFlagIsPacked;
#if __BIG_ENDIAN__
              inASBD.mFormatFlags |= kLinearPCMFormatFlagIsBigEndian;
#endif


Aymeric MOIZARD / ANTISIP
amsip - http://www.antisip.com
osip2 - http://www.osip.org
eXosip2 - http://savannah.nongnu.org/projects/exosip/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]