Core Audio buffer... No idea how to play it.
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