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
|