• 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
Core Audio buffer... No idea how to play it.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Audio buffer... No idea how to play it.


  • Subject: Core Audio buffer... No idea how to play it.
  • From: Valken <email@hidden>
  • Date: Fri, 12 Nov 2004 01:31:26 +0100

Hello,
I'm going to make an audio app that generate a buffer...

short shortBuffer[44100];

I convert this one to float using this...

float floatBuffer[44100];

float scale = (1.0f / SHRT_MAX); // Permet de convertir un short en float

...
...

for (i=0;i<=44100;i++)
{
floatBuffer[i] = shortBuffer[i]* scale;
}

Of course, Core Audio will manage to rotate those buffer.

I hope until this it's correct, please correct me if I'm doing wrong.

Then, my Core Audio callback must manage to play it, but I absolutly don't know what size I must give to core audio nor the way to follow.
I'm a beginner on that stuffs and, CoreAudioServices sample, even if the comments are good, let me in trouble.

I begin crazy with core audio. :P

If anyone can provide me with a easy to understand sample and what I must absolutly do to make it work, it would be very kind.

Best regards

Valken
 _______________________________________________
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

  • Prev by Date: Re: Multichannel configs etc.
  • Next by Date: Re: Multichannel configs etc.
  • Previous by thread: Re: Is there an AudioUnit to normalise a recording?
  • Next by thread: inTimeStamp->mSampleTime in the InputProc is not reset
  • Index(es):
    • Date
    • Thread