Playing Wave Buffer (1sec)
Playing Wave Buffer (1sec)
- Subject: Playing Wave Buffer (1sec)
- From: Alex ROUGE <email@hidden>
- Date: Fri, 22 Aug 2003 03:48:06 +0200
Hello,
First, I'm sorry for my bad english.
I need your help.
I want to play a wave buffer with Core Audio.
I really don't know how to do.
I used the CoreAudio Example from the developper site but many things
is obscur to me.
Below you will find a part of my code with my request.
OSStatus playWaveBuffer(AudioDeviceID inDevice,
const AudioTimeStamp *inNow,
const AudioBufferList *inInputData,
const AudioTimeStamp *inInputTime,
AudioBufferList *outOutputData,
const AudioTimeStamp *inOutputTime,
void *inClientData)
{
// I don't know how to use my wave buffer here.
// I think I will need to place it as a global variable.
}
I have another function that will generate my wave buffer...
- (void)ProcessingFunction
{
short wavebuf[MAX_RATE] ;
int t, play_time ;
for(t=0;t<play_time;t++)
{
/* Create WAV Data */
/* Create 1 sec wave block */
// Here I have a function that generate one second of wave data into
wavebuf.
// At this point I'm able to save it into a wave file.
// Now I need to send it to core audio at each iteration.
}
}
Thank a lot for all the help you can give to me.
Regards
Alex
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.