I manage to get the stack trace of the offending thread.
This is what I get when trying to run a very simple sample.
Thread 4 Crashed:
0 libSystem.B.dylib 0xffff0ed4 __memcpy + 1844
1 AudioToolbox 0x315f495f RemoteIOClient::EnqueueInput(XAudioTimeStamp const&, int, AudioBufferList const&) + 191
2 AudioToolbox 0x315e2536 AQMEDevice::IO_PerformInput(AudioBufferList const&, AudioTimeStamp const&, unsigned long) + 438
3 AudioToolbox 0x315e9557 AQMEIO_AU::InputIsAvailable(void*, unsigned long*, AudioTimeStamp const*, unsigned long, unsigned long, AudioBufferList*) + 103
4 AudioToolbox 0x31612f32 AUHAL::AUIOProc(unsigned long, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*) + 738
5 com.apple.audio.CoreAudio 0x000fdc88 HP_IOProc::Call(AudioTimeStamp const&, AudioTimeStamp const&, AudioBufferList const*, AudioTimeStamp const&, AudioBufferList*) + 322
6 com.apple.audio.CoreAudio 0x000fd970 IOA_Device::CallIOProcs(AudioTimeStamp const&, AudioTimeStamp const&, AudioTimeStamp const&) + 292
7 com.apple.audio.CoreAudio 0x00112d52 HP_IOThread::PerformIO(AudioTimeStamp const&, double) + 1186
8 com.apple.audio.CoreAudio 0x000fc762 HP_IOThread::WorkLoop() + 1518
9 com.apple.audio.CoreAudio 0x000fc16f HP_IOThread::ThreadEntry(HP_IOThread*) + 17
10 com.apple.audio.CoreAudio 0x000eca30 CAPThread::Entry(CAPThread*) + 96
11 libSystem.B.dylib 0x94ae46f5 _pthread_start + 321
12 libSystem.B.dylib 0x94ae45b2 thread_start + 34
Thread 4 crashed with X86 Thread State (32-bit):
eax: 0xffff07a0 ebx: 0x315f48b9 ecx: 0x00000000 edx: 0xfffbaa00
edi: 0x00046000 esi: 0xfffba600 ebp: 0xb02067d8 esp: 0xb02067d0
ss: 0x0000001f efl: 0x00010246 eip: 0xffff0ed4 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x0000001f gs: 0x00000037
cr2: 0xfff74ff0
On Sun, Sep 28, 2008 at 11:59 AM, Inca R
<email@hidden> wrote:
Hi;
Thanks William.
I'm trying to use Audio Units with remote IO but
is very frustrating. There is no documentation and
no sample code on how to use the Remote IO AudioUnit
I had write some code but after I call AudioOutputUnitStart( AudioUnit )
I get a bad access expection and I have no idea from where it comes.
If you have some sample code
or any pointer to documentation for iPhone will be grat.
Thanks
Inca
On Wed, Sep 24, 2008 at 11:54 PM, William Stewart
<email@hidden> wrote:
nope
for a VoIP client you should be using the AU Remote IO audio unit - you have one that you use for both input and output and it will give you a much lower latency than you can get from using audio queue for duplex I/O
On Sep 24, 2008, at 1:47 PM, Inca R wrote:
Hi;
Is Audio Queues for iPhone the best interface API to get
Audio Input ( mic ) samples for a real time App ? ( VoIP client )