• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
I tried but I can't...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I tried but I can't...


  • Subject: I tried but I can't...
  • From: ROUGE Alex <email@hidden>
  • Date: Sat, 13 Nov 2004 23:09:18 +0100

Hello,
I'm working on a project generating audio buffer.
I tried to get some help into the Core Audio mailing list without succes, so perhaps you can help me.


I generate a buffer needed by my app...

short shortBuffer[2][44100];

I use two buffer cause I need to do rotation later.

I read somewhere that I needed to use a floatBuffer so ...

float floatBuffer[2][44100];

Then I make a cast in a loop, ...

for...
{

floatBuffer[bufferToCalc][i] = (float)shortBuffer[bufferToCalc[i];

}

I don't enter the detail of the loop, every body know it :P

Now I must be able to send that buffer to the Core Audio, via a AU.

I tried to read the DefaultOutputUnit sample from the samples but it appear to be out of my understanding.

I understood part of it, begining and ending of the process, but between those points... it's all dark to me :(

So, if a generous person can provide me a very small sample of what to do...
How to set the Output Unit, and what settings are needed for my buffer(s).


At the moment, I'm able to make almost every thing my application is supposed to do, except that. :(

I tried my buffer by sending them to a file (wav) at the moment, and sound is ok.

Thank for your very kind help to a newbie of Core Audio.

Alex

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Using Cocoa to get UID
  • Next by Date: Re: Using Transitions
  • Previous by thread: Re: Using Cocoa to get UID
  • Next by thread: nubie attempt to use NSTableView with NSArrayController
  • Index(es):
    • Date
    • Thread