iPhone "SpeakHere" sample and kAudioFormatMPEG4AAC
iPhone "SpeakHere" sample and kAudioFormatMPEG4AAC
- Subject: iPhone "SpeakHere" sample and kAudioFormatMPEG4AAC
- From: "Roni Music" <email@hidden>
- Date: Mon, 17 May 2010 19:18:40 +0200
Hello,
I'm trying to use the "SpeakHere" iPhone sample as a starting point for a
small recording application but had to give up because it occasionally
deadlocks when stopping recording.
So I got back to the "SpeakHere" sample app which also occasionally hangs
when stopping the recording.
The only change I've made in the "SpeakHere" sample is changing the
recording format from KAudioFormatLinearPCM into kAudioFormatMPEG4AAC.
// specify the recording format
SetupAudioFormat(kAudioFormatMPEG4AAC/*kAudioFormatLinearPCM*/);
The device is an iPhone 3GS with OS 3.1.3
The debugger console displays the following message after the app has
deadlocked for about 15 seconds:
2010-05-15 11:00:15.454 SpeakHere[87:207] [11:00:15.453 <0x385242d8>]
AudioQueueStop posting message to kill mediaserverd (17)
and if I pause the app at that point, the call stack is as below:
#0 0x328c186c in semaphore_timedwait_signal_trap
#1 0x328ebdac in semaphore_timedwait_signal
#2 0x328eb19e in _pthread_cond_wait
#3 0x328ebd98 in pthread_cond_timedwait_relative_np
#4 0x30b5c920 in CAGuard::WaitFor
#5 0x30b795c2 in ClientAudioQueue::ServicePendingCallbacks
#6 0x30b839a8 in AudioQueueStop
#7 0x00006438 in AQRecorder::StopRecord at AQRecorder.mm:213
#8 0x00002a2a in -[SpeakHereController stopRecord] at
SpeakHereController.mm:110
#9 0x00003072 in -[SpeakHereController record:] at
SpeakHereController.mm:154
#10 0x3358cee4 in -[NSObject
performSelector:withObject:withObject:]
#11 0x31c59064 in -[UIApplication sendAction:to:from:forEvent:]
#12 0x31cabd54 in -[UIBarButtonItem(Internal)
_sendAction:withEvent:]
#13 0x3358cee4 in -[NSObject
performSelector:withObject:withObject:]
#14 0x31c59064 in -[UIApplication sendAction:to:from:forEvent:]
#15 0x31c59004 in -[UIApplication
sendAction:toTarget:fromSender:forEvent:]
#16 0x31c58fd6 in -[UIControl sendAction:to:forEvent:]
#17 0x31c58d30 in -[UIControl(Internal)
_sendActionsForEvents:withEvent:]
#18 0x31c59644 in -[UIControl touchesEnded:withEvent:]
#19 0x31c5865c in -[UIWindow _sendTouchesForEvent:]
#20 0x31c58038 in -[UIWindow sendEvent:]
#21 0x31c5492e in -[UIApplication sendEvent:]
#22 0x31c543a6 in _UIApplicationHandleEvent
#23 0x3352c9ec in PurpleEventCallback
#24 0x3352ca74 in PurpleEventSignalCallback
#25 0x3358aa9c in CFRunLoopRunSpecific
#26 0x3358a35c in CFRunLoopRunInMode
#27 0x3352bb32 in GSEventRunModal
#28 0x3352bbde in GSEventRun
#29 0x31c1976e in -[UIApplication _run]
#30 0x31c18472 in UIApplicationMain
#31 0x0000271e in main at main.m:55
So my question is if this is a known problem with using AudioQueue for
recording kAudioFormatMPEG4AAC files on the iPhone? The problem appears
quite seldom but still.
Should I file a bug report?
Thanks,
Rolf Nilsson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden