Hi Ming I made some further tests with #define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0 #define PJMEDIA_AUDIO_DEV_HAS_WMME 0 #define PJMEDIA_AUDIO_DEV_HAS_COREAUDIO 1 on the Mac Book Pro. I added a Polycom USB Speakerphone. When I start pjsua-app and then type cc 0 0 I always have loop on Polycom device regardless of the configuration of OS-X default device. See pictures. It seams that the application takes always a device where Input and Output has the same name. In addition my app works fine with Polycom. So there seams not to be a difference between Mac Mini and Mac Book because I have such a device on Mac Mini which probably was the reason that it worked on Mac Mini. When I disconnect Polycom it does not work anymore. Regards Michael. --- On Thu, 1/20/11, Ming <ming at teluu.com> wrote: > From: Ming <ming@xxxxxxxxx> > Subject: Re: OS-X coreaudio resample crash > To: "pjsip list" <pjsip at lists.pjsip.org> > Date: Thursday, January 20, 2011, 4:49 PM > Hi Michael, > > I am a bit confused here. So does it happen with PortAudio > as well or > just with CoreAudio? > Could you please attach the complete log (which should show > the list > of all audio devices on your Mac and the device that is > being opened)? > > Thanks, > Ming > > On Thu, Jan 20, 2011 at 11:12 PM, Michael <michael_zurich at yahoo.com> > wrote: > > Hi Ming > > > > I recompiled latest trunk and as it is per default > with PortAudio and this gave me the the errors: > > 14:53:45.260 ?pjsua_media.c ?Unable to open sound > device: Invalid number of channels [status=469997] > > 14:53:45.260 ?pjsua_media.c ?Error opening sound > device: Invalid number of channels [status=469997] > > on OSX. > > > > When I set in config_site.h > > ? ?#define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO ? ? 0 > > ? ?#define PJMEDIA_AUDIO_DEV_HAS_WMME ? ? ? ? > ?0 > > ? ?#define PJMEDIA_AUDIO_DEV_HAS_COREAUDIO ? ? 1 > > > > then it works fine with OSX 10.6.6 on a Mac Mini (USB > and internal sound device) but same software on a Mac Book > Pro with 10.6.6 does not take the audio from the input, > neither from internal mic nor from an USB device. > > > > Same code on Windows works fine. > > > > Regards > > Michael. > > --- On Thu, 1/20/11, Ming <ming at teluu.com> > wrote: > > > >> From: Ming <ming@xxxxxxxxx> > >> Subject: Re: OS-X coreaudio resample > crash > >> To: "pjsip list" <pjsip at lists.pjsip.org> > >> Date: Thursday, January 20, 2011, 3:36 AM > >> Hi Michael, > >> > >> I just committed the fix for the assertion problem > in > >> resampleProc > >> (for reference, please see ticket #1192: > >> http://trac.pjsip.org/repos/ticket/1192). > >> > >> Thanks a lot for the report and your cooperation > for the > >> patch testing. > >> > >> Best regards, > >> Ming > >> > >> > >> On Mon, Jan 17, 2011 at 12:51 AM, Michael <michael_zurich at yahoo.com> > >> wrote: > >> > Hi Benny > >> > Hi all > >> > > >> > I just tried latest svn trunk 3404 on 2 > different Mac > >> with coreaudio enabled. On Mac mini it seams to > work. On Mac > >> book it crashes when connecting call to conference > room. > >> > > >> > I have set the conference room to 48000Hz, > Stereo and > >> make or receive a G711 call with 8000 Hz, Mono. > >> > > >> > When adding the call to the room pjmedia > crashes > >> here: > >> > Exception Type: ?EXC_CRASH (SIGABRT) > >> > Exception Codes: 0x0000000000000000, > >> 0x0000000000000000 > >> > Crashed Thread: ?8 > >> > > >> > Application Specific Information: > >> > Assertion failed: (*ioNumberDataPackets == > >> strm->resample_buf_count), function > resampleProc, file > >> ../src/pjmedia-audiodev/coreaudio_dev.c, line > 658. > >> > > >> > Tell me if you need more information. > >> > Regards > >> > Michael > >> > > >> > > >> > > >> > > >> > > _______________________________________________ > >> > Visit our blog: http://blog.pjsip.org > >> > > >> > pjsip mailing list > >> > pjsip at lists.pjsip.org > >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >> > > >> > >> _______________________________________________ > >> Visit our blog: http://blog.pjsip.org > >> > >> pjsip mailing list > >> pjsip at lists.pjsip.org > >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >> > > > > > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > -------------- next part -------------- A non-text attachment was scrubbed... Name: Sound.png Type: image/png Size: 66603 bytes Desc: not available URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110120/4c3580bd/attachment-0002.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: Sound 2.png Type: image/png Size: 67379 bytes Desc: not available URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110120/4c3580bd/attachment-0003.png>