Re: Coreaudio-api Digest, Vol 11, Issue 139
Re: Coreaudio-api Digest, Vol 11, Issue 139
- Subject: Re: Coreaudio-api Digest, Vol 11, Issue 139
- From: Clement Prem <email@hidden>
- Date: Tue, 19 Aug 2014 16:30:59 +0530
Audio stops playing on sleep button call issue
I found the solution at
The issue is related to sample rate changing in sleep mode to reduce power consumption (not sure :().
You need to set kAudioUnitProperty_MaximumFramesPerSlice to 4096 in all you nodes.
UInt32 maxFPS = 4096;
AudioUnitSetProperty(player->filePlayerUnit, kAudioUnitProperty_MaximumFramesPerSlice, kAudioUnitScope_Global, 0, &maxFPS, sizeof(maxFPS));
AudioUnitSetProperty(player->mxUnit, kAudioUnitProperty_MaximumFramesPerSlice, kAudioUnitScope_Global, 0, &maxFPS, sizeof(maxFPS));
AUGraphInitialize(player->graph);
_______________________________________________
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