• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: interruptionListener in iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interruptionListener in iPhone


  • Subject: Re: interruptionListener in iPhone
  • From: Sameera Benagal <email@hidden>
  • Date: Tue, 10 Mar 2009 11:42:58 +0530

Yes, I am getting the interruption-ended callback. And also I'm setting the AudioSessionSetActive(true)  and   the kAudioQueueProperty_EnableLevelMetering to 1 on the audio queue before starting to record. But it is returning error 560030580( !act) when i set kAudioQueueProperty_EnableLevelMetering. So I'm not able to get the kAudioQueueProperty_CurrentLevelMeter parameter(0.05 interval). I get values of mAveragePower and mPeakPower as zero. But I can record the sound.



On 10-Mar-09, at 11:20 AM, Doug Wyatt wrote:


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

References: 
 >interruptionListener in iPhone (From: Sameera Benagal <email@hidden>)
 >Re: interruptionListener in iPhone (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: interruptionListener in iPhone
  • Next by Date: Re: Releasing AudioQueue stops RemoteIO callback?
  • Previous by thread: Re: interruptionListener in iPhone
  • Next by thread: Re: interruptionListener in iPhone
  • Index(es):
    • Date
    • Thread