Re: interruptionListener in iPhone
Re: interruptionListener in iPhone
- Subject: Re: interruptionListener in iPhone
- From: Doug Wyatt <email@hidden>
- Date: Mon, 9 Mar 2009 22:50:12 -0700
On Mar 9, 2009, at 6:59 , Sameera Benagal wrote:
Hi ,
My recording application has interruption listener handler that will
pause the recording on the incoming call and resume the recording
after ignoring the call.
interruptionlistener(...)
{
if(interruption begins)
//pause the recording
if(interruption ends)
AudioSessionSetActive(true);
//resume recording
}
This works well when i record for the first time(when interrupted,
ignored the call, resume recording). But next time when I do start
recording, using
AudioSessionSetProperty(kAudioQueueProperty_EnableLevelMetering,
true) returns 560030580(!act) error.
Kindly guide me on getting AudioQueueLevelMeterState?
Are you ever getting an interruption-ended callback? Are you calling
AudioSessionSetActive before starting to record?
To draw meters: Set kAudioQueueProperty_EnableLevelMetering to 1 on
the queue. Every 30-50 ms get kAudioQueueProperty_CurrentLevelMeter
from the queue and draw.
Doug
_______________________________________________
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