Note that there are some explanatory texts on larger screens.

plurals
  1. PO(Edit: iOS Simulator 5.x bug) EXC_BAD_ACCESS when using AudioQueue for sound playback in iOS
    primarykey
    data
    text
    <p>[Edit: It is a confirmed iOS Simulator bug. Appeared in 5.0 and remains in 5.1. See link below in my own answer]. </p> <p>I guys. This is my first question. I'm really lost...</p> <p>I'm getting some troubles using AudioQueue to play a sound in iOS. I'm getting a EXC_BAD_ACCESS when I create a AudioQueue using AudioQueueNewOutput. It appears to happen in some audio thread (Xcode shows Thread 4).</p> <p>The AudioQueue is created like this:</p> <pre><code>AudioQueueNewOutput(&amp;desc, audioQueueCallback, this, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode, 0, &amp;audioQueue); </code></pre> <p>(desc contains the iOS canonical playback format).</p> <p>This is what the editor shows:</p> <pre><code>AudioToolbox`PowerMeter::PowerMeter(): 0x16ee92: pushl %ebp 0x16ee93: movl %esp, %ebp 0x16ee95: movl 8(%ebp), %eax 0x16ee98: movb $0, (%eax) 0x16ee9b: movl $0, 8(%eax) 0x16eea2: movl $0, 4(%eax) 0x16eea9: movl $1064866676, 24(%eax) 0x16eeb0: movl $3161095930, 20(%eax) 0x16eeb7: movl $1066426957, 40(%eax) 0x16eebe: movl $3539053052, 36(%eax) 0x16eec5: movl $0, 92(%eax) 0x16eecc: movl $0, 88(%eax) 0x16eed3: movl $0, 108(%eax) 0x16eeda: movl $0, 104(%eax) 0x16eee1: movl $0, 100(%eax) 0x16eee8: movl $0, 96(%eax) 0x16eeef: pxor %xmm0, %xmm0 0x16eef3: movaps %xmm0, 64(%eax) 0x16eef7: movl $0, 60(%eax) 0x16eefe: movl $0, 56(%eax) 0x16ef05: movb $0, 52(%eax) 0x16ef09: movb $0, 53(%eax) 0x16ef0d: movl $0, 48(%eax) 0x16ef14: movl $0, 80(%eax) 0x16ef1b: movl $4294967295, 44(%eax) 0x16ef22: movl $0, 84(%eax) 0x16ef29: popl %ebp 0x16ef2a: ret 0x16ef2b: nop 0x16ef2c: nop 0x16ef2d: nop 0x16ef2e: nop 0x16ef2f: nop </code></pre> <p>Xcode 4.3.1</p> <p>iOS Simulator 5.1</p> <p>Mac OS X Lion 10.7.3</p> <p>I really appreciate your help. Any thoughts?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload