List Info

Thread: mediastreamer2 configure.ac patch for MacOS X.




mediastreamer2 configure.ac patch for MacOS X.
country flaguser name
Japan
2007-12-30 23:24:20
Hi

Enclose mediastreamer2 configure.ac patch for MacOS X
at lnphone 2.x.

Please check this. If this patch have no problem for other
platform please use patch and make configure script.

Regars,
Hiroki Mori




_______________________________________________
Linphone-developers mailing list
Linphone-developersnongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-de
velopers

  
Re: mediastreamer2 configure.ac patch for MacOS X.
user name
2007-12-31 07:08:42
On Mon, 31 Dec 2007, Hiroki Mori wrote:

> Hi
>
> Enclose mediastreamer2 configure.ac patch for MacOS X
> at lnphone 2.x.
>
> Please check this. If this patch have no problem for
other
> platform please use patch and make configure script.

I'm using mediastreamer2 on macosx and have several comments
about your 
patch:

* mac native sound is not working for me -> that's why I
disabled it by
   default: do you have any sucess with it???

* I don't understand your change about speex test: the
current stuff is
   working for me.

* You are trying to remove "MS_CHECK_VIDEO" ->
not a good idea! Video is
working on macosx since a few weeks/month. It's using
ffmpeg, SDL output, 
quicktime driver.


tks,
Aymeric MOIZARD / ANTISIP
amsip - http://www.antisip.com
osip2 - http://www.osip.org
eXosip2 - http://sa
vannah.nongnu.org/projects/exosip/



> Regars,
> Hiroki Mori
>
>



_______________________________________________
Linphone-developers mailing list
Linphone-developersnongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-de
velopers

Re: mediastreamer2 configure.ac patch for MacOS X.
country flaguser name
Japan
2008-01-01 00:23:58
Hi.

On 2007/12/31, at 22:08, Aymeric Moizard wrote:

>
> * I don't understand your change about speex test: the
current stuff is
>   working for me.
>

I don't install speex to my macosx. Only build local
dirctory. I do set
speex build directory path to CFLAGS. then do configure and
make
by mediastreamer2. Configure error and stop is very
inconvenience.
Do you have some idea in this case?


> * You are trying to remove "MS_CHECK_VIDEO"
-> not a good idea! Video 
> is
> working on macosx since a few weeks/month. It's using
ffmpeg, SDL 
> output, quicktime driver.
>


I'm very sorry. I didn't  know video support at macosx. by 
mediastreamer2,
I use "configure --disable-video". Becouse of my
system don't have ffmeg
and if no option then configure stop by FFMPEG check error.

Regards,

Hiroki Mori



_______________________________________________
Linphone-developers mailing list
Linphone-developersnongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-de
velopers

Re: mediastreamer2 configure.ac patch for MacOS X.
user name
2008-01-01 07:55:34
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://sa
vannah.nongnu.org/projects/exosip/



_______________________________________________
Linphone-developers mailing list
Linphone-developersnongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-de
velopers

Re: mediastreamer2 configure.ac patch for MacOS X.
country flaguser name
Japan
2008-01-01 09:09:53
Hi.

On 2008/01/01, at 22:55, Aymeric Moizard wrote:

>
> 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.
>

Oh. Good infomation for me.

> 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.
>

This patch is good for my Mac mini(PPC G4) XCode 1.1(gcc
3.3) on MacOS 
10.3.9.

> 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://sa
vannah.nongnu.org/projects/exosip/
>
>

Sorry addition one Mac issue. Now mscommon.c use
NSApplicationLoad().
I think not depend mediastreamer library on Cocoa. Becouse
of console
apprication (linphonec) is not Cocoa apprication. Can you
remove
NSApplicationLoad() and include from mscommon.c?

Regards,

Hiroki Mori



_______________________________________________
Linphone-developers mailing list
Linphone-developersnongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-de
velopers

Re: mediastreamer2 configure.ac patch for MacOS X.
user name
2008-01-02 04:39:49
Hello again,

First, I wish an happy new year to all of
linphone/mediastreamer2 users!

It seems now that the native mac sound is now working for
both intel & ppc
platform. However, it doesn't look enough good to me:

It must be possible to detect at run-time wheter we should
add the
kLinearPCMFormatFlagIsBigEndian flag so that the same code
should run
on both platform.

The second driver on mac (based on portaudio does not need
this...)

Does anybody have any idea about a solution?
Hiroki: do you have any idea?

tks
Aymeric



_______________________________________________
Linphone-developers mailing list
Linphone-developersnongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-de
velopers

Re: mediastreamer2 configure.ac patch for MacOS X.
country flaguser name
Japan
2008-01-02 21:23:50
Hi.

I think you build universal binaries dylib then you don't
need detect architecture at runtime. Because of if run
pcc, then use ppc dylib. or if run intel, then intel dylib.
Is this you issue help?

http://developer.apple.com/technotes/tn2005/tn2137.html

If this is help, hopefully you don't forget not support
universal
binaries xcode 1.x at MacOS 10.3. Please not depend
xcode 2.x.

My new year holiday is end.  I will slow response. Sorry.

Hiroki Mori

On 2008/01/02, at 19:39, Aymeric Moizard wrote:

>
> Hello again,
>
> First, I wish an happy new year to all of
linphone/mediastreamer2 
> users!
>
> It seems now that the native mac sound is now working
for both intel & 
> ppc
> platform. However, it doesn't look enough good to me:
>
> It must be possible to detect at run-time wheter we
should add the
> kLinearPCMFormatFlagIsBigEndian flag so that the same
code should run
> on both platform.
>
> The second driver on mac (based on portaudio does not
need this...)
>
> Does anybody have any idea about a solution?
> Hiroki: do you have any idea?
>
> tks
> Aymeric
>



_______________________________________________
Linphone-developers mailing list
Linphone-developersnongnu.org
http://lists.nongnu.org/mailman/listinfo/linphone-de
velopers

[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )