Re: iOS - AudioSession Category to play in sleep mode

2011-04-26 Thread Matt Neuburg
On Tue, 26 Apr 2011 10:08:50 +0530, Sasikumar JP jps...@gmail.com said: Hi, I am working on streaming audio player application for iOS. currently i am experimenting with AudioQueue and AudioUnit for playback. Both works fine in the normal condition. But AudioUnit playback stopped playing

Re: iOS - AudioSession Category to play in sleep mode

2011-04-26 Thread Hank Heijink (Mailinglists)
You're thinking of kAudioUnitProperty_MaximumFramesPerSlice (http://developer.apple.com/library/ios/#qa/qa1606/_index.html). You have to set that to 4096 frames per slice for every audio unit that's not the remoteIO unit. Hank On Apr 26, 2011, at 11:05 AM, Gregory Wieber wrote: In the iOS

Re: iOS - AudioSession Category to play in sleep mode

2011-04-26 Thread Sasikumar JP
Hank, I have tried with by setting kAudioUnitProperty_MaximumFramesPerSlice property as 4096 for Mixer and EQ Audio Units. Now audio playback did not stop when the device goes to sleep mode. But i hear glitches along with Audio. I have looked at apple sample code MixerHost. it plays

Re: iOS - AudioSession Category to play in sleep mode

2011-04-26 Thread Sasikumar JP
Hank, I have included the key methods which decodes and renders the audio data. i uses the following structures to hold the data typedef struct { UInt32 mDataByteSize; UInt32 mNumOfPackets; UInt32 mPacketOffset; UInt32 mNumOfChannels; UInt32 mBytesPerPacket; char

Re: iOS - AudioSession Category to play in sleep mode

2011-04-26 Thread Kyle Sluder
Please don't crosspost. coreaudio-api was the more appropriate list to post to. --Kyle Sluder On Mon, Apr 25, 2011 at 9:38 PM, Sasikumar JP jps...@gmail.com wrote: Hi,  I am working on streaming audio player application for iOS. currently i am experimenting with AudioQueue and AudioUnit for

iOS - AudioSession Category to play in sleep mode

2011-04-25 Thread Sasikumar JP
Hi, I am working on streaming audio player application for iOS. currently i am experimenting with AudioQueue and AudioUnit for playback. Both works fine in the normal condition. But AudioUnit playback stopped playing when device (ipod touch 2nd gen) goes to sleep mode, where as it works fine