• 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: 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


  • Follow-Ups:
    • Re: interruptionListener in iPhone
      • From: Sameera Benagal <email@hidden>
References: 
 >interruptionListener in iPhone (From: Sameera Benagal <email@hidden>)

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