Re: Coreaudio-api Digest, Vol 10, Issue 299
Re: Coreaudio-api Digest, Vol 10, Issue 299
- Subject: Re: Coreaudio-api Digest, Vol 10, Issue 299
- From: Allison Newman <email@hidden>
- Date: Wed, 20 Nov 2013 23:10:56 +0100
Patrick,
There are quite a few bugs in the code examples in that book, so just copying straight from the pdf is no guarantee that the code is correct.
Your file has 3 problems. Two are linked to the autorelease pool. The autorelease pool is not needed now with Automatic Reference Counting, and you can just delete the two lines that deal with it.
When copying the code, you also grabbed some weird characters before the if statement immediately after the creation of the autorelease pool. Just delete the empty space at the start of the line. Your project should now compile. I make no promises about the correctness of the resulting application though - as I said, the book has numerous errors in the code even if you ignore errors due to updates in Xcode / Objective-C.
Hope that helps.
Allison Newman I have been reading the "Learning Core Audio" book and have copied and pasted the 'Writing a Sound Wave to File Sample by Sample' but it gives me 2 errors that are most likely because this book was written before Xcode 5 was released which is what I am programming with. |
_______________________________________________
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