Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Buffer and CoreAudio ?



Have a look in the SDK example code - /Developer/Examples/CoreAudio - there is a set of examples there in a SimpleSDK directory including DefaultOutputUnit that shows you how the various ASBD options need to be configured (as for linear PCM there are dependencies).

Also, there is a document available now on Apple's developer support site (developer.apple.com) that goes through some basic principles and introductions of the CA API set

Bill

On 28/11/2006, at 5:00 AM, Matthieu Renault wrote:

Hello,

i am totally new to Audio.
I am seeking to find the best way to make a very simple application :
- I need to record audio then to have that sound as buffer
- I need to get that buffer and send it to another function i made with parameters.

Format :
- WAVE
8000 Khz
- 16 bits

My questions are:
#1 what is best to use CoreAudio or Quicktime ?
#2 Why is it so hard to get AudioStreamBasicDescription gAACFormat = {8000, kAudioFormatLinearPCM, kLinearPCMFormatFlagIsPacked | kLinearPCMFormatFlagIsSignedInteger, 2, 1, 2, 1, 16, 0}; informations relative to format options. Exemple, if i change number of channels size i get a fail in the file creation.
#3 i need to Set buffer ize but without success (i based my first try on CoreAudio sample source on Apple website)

Maybe these questions were already treated but i cannot find explicit answers.

thanks for your help



 _______________________________________________
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

-- 
tel: +1 408 974 4056
__________________________________________________________________________
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
__________________________________________________________________________

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden

References: 
 >RE: Bug in CoreAudio, Channel Names property? (From: "Alex Sheh" <email@hidden>)
 >Buffer and CoreAudio ? (From: Matthieu Renault <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.