Hi,

These are two good sources I think :
with an AUGraph :
http://timbolstad.com/2010/03/16/core-audio-getting-started-pt2/ 
<http://timbolstad.com/2010/03/16/core-audio-getting-started-pt2/>

without but with render functions and IAA :
http://blog.retronyms.com/2013/09/ios7-remoteio-inter-app-audiobus-and-you.html 
<http://blog.retronyms.com/2013/09/ios7-remoteio-inter-app-audiobus-and-you.html>

Both work fine.

HN


> Le 9 janv. 2015 à 21:00, [email protected] a écrit :
> 
> Send Coreaudio-api mailing list submissions to
>       [email protected]
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.apple.com/mailman/listinfo/coreaudio-api
> or, via email, send a message with subject or body 'help' to
>       [email protected]
> 
> You can reach the person managing the list at
>       [email protected]
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Coreaudio-api digest..."
> 
> 
> Today's Topics:
> 
>   1. AVAudioFormat Standard format with Core Audio AudioGraph
>      (Robert Carroll)
>   2. Re: AVAudioFormat Standard format with Core Audio AudioGraph
>      (Matt Hart)
>   3. Re: AVAudioFormat Standard format with Core Audio AudioGraph
>      (Robert Carroll)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 09 Jan 2015 10:38:08 -0500
> From: Robert Carroll <[email protected]>
> To: [email protected]
> Subject: AVAudioFormat Standard format with Core Audio AudioGraph
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi,
> 
> At the tail end of WWDC 2014 session 501, Doug Wyatt mentions in passing that 
> these new classes can be integrated into existing core audio code. Has anyone 
> found any examples/ documentation on how to accomplish this?
> 
> iOS 8 has broken the audio output of my audiograph code. I assume its has 
> something to do with the deprecated audiosampletype and audiounitsampletype. 
> On Mac OS I’ve changed these references to Float 32 and everything works as 
> expected. For iOS 7 and earlier float 32 resulted in dangerous full volume 
> white noise output. I found that Sint 32 worked, but apparently not for iOS8.
> 
> The developer session states that there is now a common audio format between 
> OS X and iOS, so hopefully Float 32 with the same flags I’m using for Mac 
> will solve the iOS 8 problem, but will require more branching code to 
> continue to support iOS 6 - 7.
> 
> thanks,
> 
> rob
> 
> 
> Robert Carroll
> RSM Records
> Toronto
> http://www.rsmrecords.com
> 
> 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <https://lists.apple.com/mailman/private/coreaudio-api/attachments/20150109/63f65312/attachment.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 09 Jan 2015 10:43:34 -0500
> From: Matt Hart <[email protected]>
> To: Robert Carroll <[email protected]>
> Cc: [email protected]
> Subject: Re: AVAudioFormat Standard format with Core Audio AudioGraph
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="windows-1252"
> 
> I know this doesn't really answer your question, but I avoid creating 
> AudioStreamFormatDescription structures. Instead, I grab the Info structure 
> from the destination and set that to source.
> 
> e.g. get a matrix mixer unit input description:
>    AudioStreamBasicDescription mxmx_Input_asbd = {0};
>    size = sizeof(mxmx_Input_asbd);
>    result = AudioUnitGetProperty(mxmx_unit[controllerIndex], 
> kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &mxmx_Input_asbd, 
> &size);
> 
> set that to the source conv unit output description:
>        result = AudioUnitSetProperty(conv_unit, 
> kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 0, &mxmx_Input_asbd, 
> sizeof(mxmx_Input_asbd));
> 
> 
> On Jan 9, 2015, at 10:38 AM, Robert Carroll <[email protected]> wrote:
> 
>> Hi,
>> 
>> At the tail end of WWDC 2014 session 501, Doug Wyatt mentions in passing 
>> that these new classes can be integrated into existing core audio code. Has 
>> anyone found any examples/ documentation on how to accomplish this?
>> 
>> iOS 8 has broken the audio output of my audiograph code. I assume its has 
>> something to do with the deprecated audiosampletype and audiounitsampletype. 
>> On Mac OS I’ve changed these references to Float 32 and everything works as 
>> expected. For iOS 7 and earlier float 32 resulted in dangerous full volume 
>> white noise output. I found that Sint 32 worked, but apparently not for iOS8.
>> 
>> The developer session states that there is now a common audio format between 
>> OS X and iOS, so hopefully Float 32 with the same flags I’m using for Mac 
>> will solve the iOS 8 problem, but will require more branching code to 
>> continue to support iOS 6 - 7.
>> 
>> thanks,
>> 
>> rob
>> 
>> 
>> Robert Carroll
>> RSM Records
>> Toronto
>> http://www.rsmrecords.com
>> 
>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Coreaudio-api mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/coreaudio-api/matt%40matthart.com
>> 
>> This email sent to [email protected]
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <https://lists.apple.com/mailman/private/coreaudio-api/attachments/20150109/e8d7704b/attachment.html>
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 09 Jan 2015 11:12:08 -0500
> From: Robert Carroll <[email protected]>
> To: Matt Hart <[email protected]>
> Cc: [email protected]
> Subject: Re: AVAudioFormat Standard format with Core Audio AudioGraph
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="windows-1252"
> 
> Thanks. That’s an interesting suggestion.
> 
> I’m just setting up to branch my existing code to set different 
> stereoStreamFormats for pre-ios 8 & iOS 8. My earlier email was incorrect 
> about the iOS 7 sample storage. I am using Uint 32, not SInt 32. 
> 
> The approach you suggest should avoid having to make that branch. I’ll have 
> to look into it.
> 
> regards,
> 
> rob
> 
> 
>> On Jan 9, 2015, at 10:43 AM, Matt Hart <[email protected]> wrote:
>> 
>> I know this doesn't really answer your question, but I avoid creating 
>> AudioStreamFormatDescription structures. Instead, I grab the Info structure 
>> from the destination and set that to source.
>> 
>> e.g. get a matrix mixer unit input description:
>>    AudioStreamBasicDescription mxmx_Input_asbd = {0};
>>    size = sizeof(mxmx_Input_asbd);
>>    result = AudioUnitGetProperty(mxmx_unit[controllerIndex], 
>> kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &mxmx_Input_asbd, 
>> &size);
>> 
>> set that to the source conv unit output description:
>>        result = AudioUnitSetProperty(conv_unit, 
>> kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 0, 
>> &mxmx_Input_asbd, sizeof(mxmx_Input_asbd));
>> 
>> 
>> On Jan 9, 2015, at 10:38 AM, Robert Carroll <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>>> Hi,
>>> 
>>> At the tail end of WWDC 2014 session 501, Doug Wyatt mentions in passing 
>>> that these new classes can be integrated into existing core audio code. Has 
>>> anyone found any examples/ documentation on how to accomplish this?
>>> 
>>> iOS 8 has broken the audio output of my audiograph code. I assume its has 
>>> something to do with the deprecated audiosampletype and 
>>> audiounitsampletype. On Mac OS I’ve changed these references to Float 32 
>>> and everything works as expected. For iOS 7 and earlier float 32 resulted 
>>> in dangerous full volume white noise output. I found that Sint 32 worked, 
>>> but apparently not for iOS8.
>>> 
>>> The developer session states that there is now a common audio format 
>>> between OS X and iOS, so hopefully Float 32 with the same flags I’m using 
>>> for Mac will solve the iOS 8 problem, but will require more branching code 
>>> to continue to support iOS 6 - 7.
>>> 
>>> thanks,
>>> 
>>> rob
>>> 
>>> 
>>> Robert Carroll
>>> RSM Records
>>> Toronto
>>> http://www.rsmrecords.com <http://www.rsmrecords.com/>
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Coreaudio-api mailing list      ([email protected] 
>>> <mailto:[email protected]>)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/coreaudio-api/matt%40matthart.com 
>>> <https://lists.apple.com/mailman/options/coreaudio-api/matt%40matthart.com>
>>> 
>>> This email sent to [email protected]
>> 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <https://lists.apple.com/mailman/private/coreaudio-api/attachments/20150109/5170eeaa/attachment.html>
> 
> ------------------------------
> 
> _______________________________________________
> Coreaudio-api mailing list
> [email protected]
> https://lists.apple.com/mailman/listinfo/coreaudio-api
> 
> End of Coreaudio-api Digest, Vol 12, Issue 6
> ********************************************

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to